forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitde5afdd
committed
Fix overflow in bsearch_arg() with more than INT_MAX elements
This was introduced in commitbfa2cee, which replaced the oldbsearch_cmp() function we had in extended_stats.c with the currentimplementation. The original discussion or commit message ofbfa2cee didn't mention where the new implementation came from, butbased on some googling, I'm guessing *BSD or libiberty, all of whichshare this same code, with or without this fix.Author: Ranier VilelaReviewed-by: Nathan BossartBackpatch-through: 14Discussion:https://www.postgresql.org/message-id/CAEudQAp34o_8u6sGSVraLwuMv9F7T9hyHpePXHmRaxR2Aboi%2Bw%40mail.gmail.com1 parent22bb889 commitde5afdd
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
62 |
| - | |
| 61 | + | |
| 62 | + | |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
|
0 commit comments
Comments
(0)