mirror of
https://github.com/postgres/postgres.git
synced 2025-06-22 00:01:33 -04:00
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
21 lines
230 B
Plaintext
21 lines
230 B
Plaintext
/charfuncs
|
|
/charfuncs.c
|
|
/dec_test
|
|
/dec_test.c
|
|
/describe
|
|
/describe.c
|
|
/intoasc
|
|
/intoasc.c
|
|
/rfmtdate
|
|
/rfmtdate.c
|
|
/rfmtlong
|
|
/rfmtlong.c
|
|
/rnull
|
|
/rnull.c
|
|
/sqlda
|
|
/sqlda.c
|
|
/test_informix
|
|
/test_informix.c
|
|
/test_informix2
|
|
/test_informix2.c
|