pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements
5+ messages / 1 participants
[nested] [flat]

* pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements
@ 2024-10-28 12:13 Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 5+ messages in thread

From: Heikki Linnakangas @ 2024-10-28 12:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix overflow in bsearch_arg() with more than INT_MAX elements

This was introduced in commit bfa2cee784, which replaced the old
bsearch_cmp() function we had in extended_stats.c with the current
implementation. The original discussion or commit message of
bfa2cee784 didn't mention where the new implementation came from, but
based on some googling, I'm guessing *BSD or libiberty, all of which
share this same code, with or without this fix.

Author: Ranier Vilela
Reviewed-by: Nathan Bossart
Backpatch-through: 14
Discussion: https://www.postgresql.org/message-id/CAEudQAp34o_8u6sGSVraLwuMv9F7T9hyHpePXHmRaxR2Aboi%2Bw%40mail.g...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/de5afddc3ba4aa41f341f62347ce40bb9ea9d78b

Modified Files
--------------
src/port/bsearch_arg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements
@ 2024-10-28 12:13 Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 5+ messages in thread

From: Heikki Linnakangas @ 2024-10-28 12:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix overflow in bsearch_arg() with more than INT_MAX elements

This was introduced in commit bfa2cee784, which replaced the old
bsearch_cmp() function we had in extended_stats.c with the current
implementation. The original discussion or commit message of
bfa2cee784 didn't mention where the new implementation came from, but
based on some googling, I'm guessing *BSD or libiberty, all of which
share this same code, with or without this fix.

Author: Ranier Vilela
Reviewed-by: Nathan Bossart
Backpatch-through: 14
Discussion: https://www.postgresql.org/message-id/CAEudQAp34o_8u6sGSVraLwuMv9F7T9hyHpePXHmRaxR2Aboi%2Bw%40mail.g...

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/22b914121ad898cd2f5f935240f9e1334479e25f

Modified Files
--------------
src/port/bsearch_arg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements
@ 2024-10-28 12:13 Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 5+ messages in thread

From: Heikki Linnakangas @ 2024-10-28 12:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix overflow in bsearch_arg() with more than INT_MAX elements

This was introduced in commit bfa2cee784, which replaced the old
bsearch_cmp() function we had in extended_stats.c with the current
implementation. The original discussion or commit message of
bfa2cee784 didn't mention where the new implementation came from, but
based on some googling, I'm guessing *BSD or libiberty, all of which
share this same code, with or without this fix.

Author: Ranier Vilela
Reviewed-by: Nathan Bossart
Backpatch-through: 14
Discussion: https://www.postgresql.org/message-id/CAEudQAp34o_8u6sGSVraLwuMv9F7T9hyHpePXHmRaxR2Aboi%2Bw%40mail.g...

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/211e6a5b2b26ce99098146f67cd89220429b3613

Modified Files
--------------
src/port/bsearch_arg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements
@ 2024-10-28 12:13 Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 5+ messages in thread

From: Heikki Linnakangas @ 2024-10-28 12:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix overflow in bsearch_arg() with more than INT_MAX elements

This was introduced in commit bfa2cee784, which replaced the old
bsearch_cmp() function we had in extended_stats.c with the current
implementation. The original discussion or commit message of
bfa2cee784 didn't mention where the new implementation came from, but
based on some googling, I'm guessing *BSD or libiberty, all of which
share this same code, with or without this fix.

Author: Ranier Vilela
Reviewed-by: Nathan Bossart
Backpatch-through: 14
Discussion: https://www.postgresql.org/message-id/CAEudQAp34o_8u6sGSVraLwuMv9F7T9hyHpePXHmRaxR2Aboi%2Bw%40mail.g...

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/07ca2d4110d474669fa03203782b5dae24f1c5c6

Modified Files
--------------
src/port/bsearch_arg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements
@ 2024-10-28 12:13 Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 5+ messages in thread

From: Heikki Linnakangas @ 2024-10-28 12:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix overflow in bsearch_arg() with more than INT_MAX elements

This was introduced in commit bfa2cee784, which replaced the old
bsearch_cmp() function we had in extended_stats.c with the current
implementation. The original discussion or commit message of
bfa2cee784 didn't mention where the new implementation came from, but
based on some googling, I'm guessing *BSD or libiberty, all of which
share this same code, with or without this fix.

Author: Ranier Vilela
Reviewed-by: Nathan Bossart
Backpatch-through: 14
Discussion: https://www.postgresql.org/message-id/CAEudQAp34o_8u6sGSVraLwuMv9F7T9hyHpePXHmRaxR2Aboi%2Bw%40mail.g...

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/55327256a049e3926d4d1cda39a7bb5886cbe03c

Modified Files
--------------
src/port/bsearch_arg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2024-10-28 12:13 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-10-28 12:13 pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-10-28 12:13 pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-10-28 12:13 pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-10-28 12:13 pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-10-28 12:13 pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements 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