Fix incorrect pointer increment in pgtypes_defmt_scan() The function incorrectly increments pstr instead of *pstr when skipping leading spaces. This bug has remained hidden because the caller already skips leading spaces. There are more redundant leading-space skipping loops in the function and in find_end_token(), but I didn't try to clean those up, this commit just fixes the clear latent bug.
Author: Kyotaro Horiguchi <[email protected]> Discussion: https://www.postgresql.org/message-id/[email protected] Backpatch-through: 15 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/adcdb09895e98a55adbc1108d24f04f9c964c754 Modified Files -------------- src/interfaces/ecpg/pgtypeslib/dt_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
