aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonpath_exec.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-02-19 11:38:54 +0900
committerMichael Paquier <michael@paquier.xyz>2024-02-19 11:38:54 +0900
commit771240f972ee7a3da8bbc3fa247e698144ecea15 (patch)
tree3d1d6d1989f73851a9b82ccfa828ee01bd0cd63f /src/backend/utils/adt/jsonpath_exec.c
parent88cbdcafdb742f39ea8f1613481421f9425be1e5 (diff)
downloadpostgresql-771240f972ee7a3da8bbc3fa247e698144ecea15.tar.gz
postgresql-771240f972ee7a3da8bbc3fa247e698144ecea15.zip
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/backend/utils/adt/jsonpath_exec.c')
0 files changed, 0 insertions, 0 deletions