forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit24a36f9
committed
Fix strsep() use for SCRAM secrets parsing
The previous code (from commit5d2e1cc) did not detect end ofstring correctly, so it would fail to error out if fewer than theexpected number of fields were present, which could then later lead toa crash when NULL string pointers are accessed.Reported-by: Alexander Lakhin <exclusion@gmail.com>Reported-by: Ranier Vilela <ranier.vf@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/79692bf9-17d3-41e6-b9c9-fc8c3944222a@eisentraut.org1 parent9272bde commit24a36f9
1 file changed
+8
-4
lines changedLines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
608 | 608 |
| |
609 | 609 |
| |
610 | 610 |
| |
611 |
| - | |
| 611 | + | |
| 612 | + | |
612 | 613 |
| |
613 |
| - | |
| 614 | + | |
| 615 | + | |
614 | 616 |
| |
615 |
| - | |
| 617 | + | |
| 618 | + | |
616 | 619 |
| |
617 |
| - | |
| 620 | + | |
| 621 | + | |
618 | 622 |
| |
619 | 623 |
| |
620 | 624 |
| |
|
0 commit comments
Comments
(0)