summaryrefslogtreecommitdiff
path: root/src/backend/regex/regc_lex.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2013-11-23 07:25:37 -0500
committerPeter Eisentraut <peter_e@gmx.net>2013-11-23 07:31:53 -0500
commit240766a6ecbb2e523fe0a2a43feb949f6fe6521d (patch)
tree0be6dc92dda2820a1c1a6d88ace32a25e354f8ba /src/backend/regex/regc_lex.c
parent122ba5dadf93c04d29828c9e533938e9b0ca31a7 (diff)
Avoid potential buffer overflow crash
A pointer to a C string was treated as a pointer to a "name" datum and passed to SPI_execute_plan(). This pointer would then end up being passed through datumCopy(), which would try to copy the entire 64 bytes of name data, thus running past the end of the C string. Fix by converting the string to a proper name structure. Found by LLVM AddressSanitizer.
Diffstat (limited to 'src/backend/regex/regc_lex.c')
0 files changed, 0 insertions, 0 deletions