forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit22b9141
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 parentbfd5c6e commit22b9141
1 file changed
+2
-2
lines changed| 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)