- Notifications
You must be signed in to change notification settings - Fork5
Commit5f95521
committed
Fix unsafe use of strtol() on a non-null-terminated Text datum.
jsonb_set() could produce wrong answers or incorrect error reports, or inthe worst case even crash, when trying to convert a path-array element intoan integer for use as an array subscript. Per report from Vitaly Burovoy.Back-patch to 9.5 where the faulty code was introduced (in commitc694701).Michael Paquier1 parent147112d commit5f95521
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3873 | 3873 |
| |
3874 | 3874 |
| |
3875 | 3875 |
| |
3876 |
| - | |
| 3876 | + | |
3877 | 3877 |
| |
3878 | 3878 |
| |
3879 | 3879 |
| |
|
0 commit comments
Comments
(0)