- Notifications
You must be signed in to change notification settings - Fork5
Commit9a3f530
committed
Fix possible buffer overrun and/or unportable behavior in pg_md5_encrypt()
if salt_len == 0. This seems to be mostly academic, since nearly all callingcode paths guarantee nonempty salt; the only case that doesn't isPQencryptPassword where the caller could mistakenly pass an empty username.So, fix it but don't bother backpatching. Per ljb.1 parentc82fdb6 commit9a3f530
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| |||
314 | 314 |
| |
315 | 315 |
| |
316 | 316 |
| |
317 |
| - | |
| 317 | + | |
| 318 | + | |
318 | 319 |
| |
319 | 320 |
| |
320 | 321 |
| |
| |||
324 | 325 |
| |
325 | 326 |
| |
326 | 327 |
| |
327 |
| - | |
| 328 | + | |
328 | 329 |
| |
329 | 330 |
| |
330 | 331 |
| |
|
0 commit comments
Comments
(0)