forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2271d00
committed
Fix "path" infrastructure bug affecting jsonb_set()
jsonb_set() and other clients of the setPathArray() utility functioncould get spurious results when an array integer subscript is providedthat is not within the range of int.To fix, ensure that the value returned by strtol() within setPathArray()is within the range of int; when it isn't, assume an invalid input inline with existing, similar cases. The path-orientated operators thatappeared in PostgreSQL 9.3 and 9.4 do not call setPathArray(), andalready independently take this precaution, so no change there.Peter Geoghegan1 parentae58f14 commit2271d00
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3814 | 3814 |
| |
3815 | 3815 |
| |
3816 | 3816 |
| |
| 3817 | + | |
3817 | 3818 |
| |
3818 | 3819 |
| |
3819 |
| - | |
3820 |
| - | |
| 3820 | + | |
| 3821 | + | |
3821 | 3822 |
| |
| 3823 | + | |
| 3824 | + | |
3822 | 3825 |
| |
3823 | 3826 |
| |
3824 | 3827 |
| |
|
0 commit comments
Comments
(0)