pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Fix overflow in bsearch_arg() with more than INT_MAX elements
Дата
Msg-id E1t5Ocb-002q7R-1z@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.gmail.com

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(-)


В списке pgsql-committers по дате отправления: