diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2015-07-28 17:54:13 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2015-07-28 17:59:13 -0400 |
commit | 40a50a17b905dae233ddb8bb36b7deff9e3abb16 (patch) | |
tree | 2faf357d77851302f7b87cd29d5ee1e10dbd7a79 /src/tutorial/funcs.c | |
parent | 116be6c17102a4b300037d3c565694cac0bcba90 (diff) | |
download | postgresql-40a50a17b905dae233ddb8bb36b7deff9e3abb16.tar.gz postgresql-40a50a17b905dae233ddb8bb36b7deff9e3abb16.zip |
Only adjust negative indexes in json_get up to the length of the path.
The previous code resulted in memory access beyond the path bounds. The
cure is to move it into a code branch that checks the value of lex_level
is within the correct bounds.
Bug reported and diagnosed by Piotr Stefaniak.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions