summaryrefslogtreecommitdiff
path: root/src/tutorial/complex.source
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-02-19 11:38:52 +0900
committerMichael Paquier <michael@paquier.xyz>2024-02-19 11:38:52 +0900
commitc031ce97b561e79d3d91de9334ced561cc6c2571 (patch)
tree797329cd50423e2649e4b0b2d98ac34830690dd5 /src/tutorial/complex.source
parent150ac3695f31f8cd489cd0d6d4d42a29787d5a46 (diff)
ecpg: Fix zero-termination of string generated by intoasc()
intoasc(), a wrapper for PGTYPESinterval_to_asc that converts an interval to its textual representation, used a plain memcpy() when copying its result. This could miss a zero-termination in the result string, leading to an incorrect result. The routines in informix.c do not provide the length of their result buffer, which would allow a replacement of strcpy() to safer strlcpy() calls, but this requires an ABI breakage and that cannot happen in back-branches. Author: Oleg Tselebrovskiy Reviewed-by: Ashutosh Bapat Discussion: https://postgr.es/m/bf47888585149f83b276861a1662f7e4@postgrespro.ru Backpatch-through: 12
Diffstat (limited to 'src/tutorial/complex.source')
0 files changed, 0 insertions, 0 deletions