aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/syscat.source
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2015-06-12 19:26:03 -0400
committerAndrew Dunstan <andrew@dunslane.net>2015-06-12 19:26:03 -0400
commit2271d002d5c305441398e8f7a295f18ec3c132a9 (patch)
tree350d417c4ebb8581dc9fab556d3cdda55161e8aa /src/tutorial/syscat.source
parentae58f1430abb4b0c309c40b377f91bf9d080334b (diff)
downloadpostgresql-2271d002d5c305441398e8f7a295f18ec3c132a9.tar.gz
postgresql-2271d002d5c305441398e8f7a295f18ec3c132a9.zip
Fix "path" infrastructure bug affecting jsonb_set()
jsonb_set() and other clients of the setPathArray() utility function could get spurious results when an array integer subscript is provided that 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 in line with existing, similar cases. The path-orientated operators that appeared in PostgreSQL 9.3 and 9.4 do not call setPathArray(), and already independently take this precaution, so no change there. Peter Geoghegan
Diffstat (limited to 'src/tutorial/syscat.source')
0 files changed, 0 insertions, 0 deletions