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:54:13 -0400 |
commit | 6d10f4e9d7f0051afb60c42409f2fe61cf4da348 (patch) | |
tree | 4db7a8ed0088b5d6614caab678d54737661a50f5 /src/backend/executor/nodeBitmapIndexscan.c | |
parent | d8f15c95bec50f552ad0b13ea6eafb6975126184 (diff) | |
download | postgresql-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/nodeBitmapIndexscan.c')
0 files changed, 0 insertions, 0 deletions