pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() 6+ messages / 1 participants [nested] [flat]
* pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() @ 2026-11-19 10:37 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 6+ messages in thread From: Heikki Linnakangas @ 2026-11-19 10:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <horikyota.ntt@gmail.com> Discussion: https://www.postgresql.org/message-id/20261119.162206.639378539262920864.horikyota.ntt@gmail.com Backpatch-through: 15 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/504953029af3008c18bafef2381662848cb547ad Modified Files -------------- src/interfaces/ecpg/pgtypeslib/dt_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() @ 2026-11-19 10:37 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 6+ messages in thread From: Heikki Linnakangas @ 2026-11-19 10:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <horikyota.ntt@gmail.com> Discussion: https://www.postgresql.org/message-id/20261119.162206.639378539262920864.horikyota.ntt@gmail.com Backpatch-through: 15 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/15c7a700654ecc745ca541e49b38c06dc3eb88d3 Modified Files -------------- src/interfaces/ecpg/pgtypeslib/dt_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() @ 2026-11-19 10:37 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 6+ messages in thread From: Heikki Linnakangas @ 2026-11-19 10:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <horikyota.ntt@gmail.com> Discussion: https://www.postgresql.org/message-id/20261119.162206.639378539262920864.horikyota.ntt@gmail.com 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(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() @ 2026-11-19 10:37 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 6+ messages in thread From: Heikki Linnakangas @ 2026-11-19 10:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <horikyota.ntt@gmail.com> Discussion: https://www.postgresql.org/message-id/20261119.162206.639378539262920864.horikyota.ntt@gmail.com Backpatch-through: 15 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/6ec71e1ad8c26b3a93e7c5739e797a2d353dc5d6 Modified Files -------------- src/interfaces/ecpg/pgtypeslib/dt_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() @ 2026-11-19 10:37 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 6+ messages in thread From: Heikki Linnakangas @ 2026-11-19 10:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <horikyota.ntt@gmail.com> Discussion: https://www.postgresql.org/message-id/20261119.162206.639378539262920864.horikyota.ntt@gmail.com Backpatch-through: 15 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/35255e56d4ae41c64401b4446c4d9fc88601fde9 Modified Files -------------- src/interfaces/ecpg/pgtypeslib/dt_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() @ 2026-11-19 10:37 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 6+ messages in thread From: Heikki Linnakangas @ 2026-11-19 10:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <horikyota.ntt@gmail.com> Discussion: https://www.postgresql.org/message-id/20261119.162206.639378539262920864.horikyota.ntt@gmail.com Backpatch-through: 15 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0c806e75dabcac1f97bc4aca1d6bba3c58f26b6d Modified Files -------------- src/interfaces/ecpg/pgtypeslib/dt_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2026-11-19 10:37 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-19 10:37 pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() Heikki Linnakangas <heikki.linnakangas@iki.fi> 2026-11-19 10:37 pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() Heikki Linnakangas <heikki.linnakangas@iki.fi> 2026-11-19 10:37 pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() Heikki Linnakangas <heikki.linnakangas@iki.fi> 2026-11-19 10:37 pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() Heikki Linnakangas <heikki.linnakangas@iki.fi> 2026-11-19 10:37 pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() Heikki Linnakangas <heikki.linnakangas@iki.fi> 2026-11-19 10:37 pgsql: Fix incorrect pointer increment in pgtypes_defmt_scan() Heikki Linnakangas <heikki.linnakangas@iki.fi>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox