summaryrefslogtreecommitdiff
path: root/src/common/string.c
diff options
context:
space:
mode:
authorAndres Freund2017-10-09 22:20:42 +0000
committerAndres Freund2017-10-09 22:20:42 +0000
commit82c117cb90e6b6b79f06d61eb1ddf06e94e75b60 (patch)
tree9157fe6d998ef40cadd2aa6392b42d1d7a6ba22f /src/common/string.c
parent8a241792f968ed5be6cf4d41e32c0d264f6c0c65 (diff)
Fix pnstrdup() to not memcpy() the maximum allowed length.
The previous behaviour was dangerous if the length passed wasn't the size of the underlying buffer, but the maximum size of the underlying buffer. Author: Andres Freund Discussion: https://postgr.es/m/20161003215524.mwz5p45pcverrkyk@alap3.anarazel.de
Diffstat (limited to 'src/common/string.c')
0 files changed, 0 insertions, 0 deletions