diff options
author | John Naylor <john.naylor@postgresql.org> | 2022-07-12 11:13:41 +0700 |
---|---|---|
committer | John Naylor <john.naylor@postgresql.org> | 2022-07-12 11:25:47 +0700 |
commit | d3117fc1a3e87717a57be0153408e5387e265e1b (patch) | |
tree | d5054f87f409950725fd304332186a68825a53ef /src/backend/utils/adt/jsonpath.c | |
parent | 3b00a944a9b3847fb02dae7c9ea62fe0b211b396 (diff) | |
download | postgresql-d3117fc1a3e87717a57be0153408e5387e265e1b.tar.gz postgresql-d3117fc1a3e87717a57be0153408e5387e265e1b.zip |
Fix out-of-bounds read in json_lex_string
Commit 3838fa269 added a lookahead loop to allow building strings multiple
bytes at a time. This loop could exit because it reached the end of input,
yet did not check for that before checking if we reached the end of a
valid string. To fix, put the end of string check back in the outer loop.
Per Valgrind animal skink
Diffstat (limited to 'src/backend/utils/adt/jsonpath.c')
0 files changed, 0 insertions, 0 deletions