aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeRecursiveunion.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2015-07-28 17:54:13 -0400
committerAndrew Dunstan <andrew@dunslane.net>2015-07-28 17:54:13 -0400
commit6d10f4e9d7f0051afb60c42409f2fe61cf4da348 (patch)
tree4db7a8ed0088b5d6614caab678d54737661a50f5 /src/backend/executor/nodeRecursiveunion.c
parentd8f15c95bec50f552ad0b13ea6eafb6975126184 (diff)
downloadpostgresql-6d10f4e9d7f0051afb60c42409f2fe61cf4da348.tar.gz
postgresql-6d10f4e9d7f0051afb60c42409f2fe61cf4da348.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/backend/executor/nodeRecursiveunion.c')
0 files changed, 0 insertions, 0 deletions