aboutsummaryrefslogtreecommitdiff
path: root/src/port/win32error.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:07 -0500
commite1f7173ea19ad8977311dc72fe50492fae5c078d (patch)
treef6e703ad9363d51c8413df279220d4d9fabe057c /src/port/win32error.c
parent92a752151fa9c279595ab6f896534e49a5625920 (diff)
downloadpostgresql-e1f7173ea19ad8977311dc72fe50492fae5c078d.tar.gz
postgresql-e1f7173ea19ad8977311dc72fe50492fae5c078d.zip
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/port/win32error.c')
0 files changed, 0 insertions, 0 deletions