- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit969ab9d
committed
Follow-up fixes for SHA-2 patch (commit749a9e2).
This changes the check for valid characters in the salt string toonly allow plain ASCII letters and digits. The previous coding waslocale-dependent which doesn't really seem like a great idea here;moreover it could not work correctly in multibyte encodings.This fixes a careless pointer-use-after-pfree, too.Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Reported-by: Andres Freund <andres@anarazel.de>Author: Bernd Helmle <mailings@oopsware.de>Discussion:https://postgr.es/m/6fab35422df6b6b9727fdcc243c5fa1c667dd3b5.camel@oopsware.de1 parentb73e6d7 commit969ab9d
1 file changed
+7
-5
lines changedLines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| 49 | + | |
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
| |||
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
61 |
| - | |
| 62 | + | |
62 | 63 |
| |
63 | 64 |
| |
64 | 65 |
| |
| |||
321 | 322 |
| |
322 | 323 |
| |
323 | 324 |
| |
324 |
| - | |
| 325 | + | |
325 | 326 |
| |
326 | 327 |
| |
327 |
| - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
328 | 332 |
| |
329 | 333 |
| |
330 | 334 |
| |
| |||
602 | 606 |
| |
603 | 607 |
| |
604 | 608 |
| |
605 |
| - | |
606 |
| - | |
607 | 609 |
| |
608 | 610 |
| |
609 | 611 |
| |
|
0 commit comments
Comments
(0)