forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd3117fc
committed
Fix out-of-bounds read in json_lex_string
Commit3838fa2 added a lookahead loop to allow building strings multiplebytes at a time. This loop could exit because it reached the end of input,yet did not check for that before checking if we reached the end of avalid string. To fix, put the end of string check back in the outer loop.Per Valgrind animal skink1 parent3b00a94 commitd3117fc
1 file changed
+10
-8
lines changedLines changed: 10 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
686 | 686 |
| |
687 | 687 |
| |
688 | 688 |
| |
| 689 | + | |
| 690 | + | |
689 | 691 |
| |
690 | 692 |
| |
691 | 693 |
| |
| |||
870 | 872 |
| |
871 | 873 |
| |
872 | 874 |
| |
873 |
| - | |
874 |
| - | |
875 |
| - | |
876 |
| - | |
877 |
| - | |
878 |
| - | |
879 |
| - | |
880 |
| - | |
881 | 875 |
| |
882 | 876 |
| |
883 | 877 |
| |
884 | 878 |
| |
885 | 879 |
| |
886 | 880 |
| |
887 | 881 |
| |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
888 | 890 |
| |
889 | 891 |
| |
890 | 892 |
| |
|
0 commit comments
Comments
(0)