forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9e7432f
committed
Fix integer-overflow problem in intarray's g_int_decompress().
An array element equal to INT_MAX gave this code indigestion,causing an infinite loop that surely ended in SIGSEGV. We fixedsome nearby problems awhile ago (cf757c518) but missed this.Report and diagnosis by Alexander Lakhin (bug #18273); patch by meDiscussion:https://postgr.es/m/18273-9a832d1da122600c@postgresql.org1 parent60de25c commit9e7432f
File tree
4 files changed
+27
-22
lines changed- contrib/intarray
- data
- expected
- sql
4 files changed
+27
-22
lines changedLines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
293 |
| - | |
294 |
| - | |
| 293 | + | |
295 | 294 |
| |
296 | 295 |
| |
297 | 296 |
| |
| |||
335 | 334 |
| |
336 | 335 |
| |
337 | 336 |
| |
338 |
| - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
339 | 340 |
| |
340 |
| - | |
| 341 | + | |
| 342 | + | |
341 | 343 |
| |
342 | 344 |
| |
343 | 345 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6998 | 6998 |
| |
6999 | 6999 |
| |
7000 | 7000 |
| |
| 7001 | + |
Lines changed: 17 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
464 | 464 |
| |
465 | 465 |
| |
466 | 466 |
| |
467 |
| - | |
| 467 | + | |
468 | 468 |
| |
469 | 469 |
| |
470 | 470 |
| |
471 | 471 |
| |
472 | 472 |
| |
473 |
| - | |
| 473 | + | |
474 | 474 |
| |
475 | 475 |
| |
476 | 476 |
| |
| |||
538 | 538 |
| |
539 | 539 |
| |
540 | 540 |
| |
541 |
| - | |
| 541 | + | |
542 | 542 |
| |
543 | 543 |
| |
544 | 544 |
| |
545 | 545 |
| |
546 | 546 |
| |
547 |
| - | |
| 547 | + | |
548 | 548 |
| |
549 | 549 |
| |
550 | 550 |
| |
| |||
620 | 620 |
| |
621 | 621 |
| |
622 | 622 |
| |
623 |
| - | |
| 623 | + | |
624 | 624 |
| |
625 | 625 |
| |
626 | 626 |
| |
627 | 627 |
| |
628 | 628 |
| |
629 |
| - | |
| 629 | + | |
630 | 630 |
| |
631 | 631 |
| |
632 | 632 |
| |
| |||
700 | 700 |
| |
701 | 701 |
| |
702 | 702 |
| |
703 |
| - | |
| 703 | + | |
704 | 704 |
| |
705 | 705 |
| |
706 | 706 |
| |
707 | 707 |
| |
708 | 708 |
| |
709 |
| - | |
| 709 | + | |
710 | 710 |
| |
711 | 711 |
| |
712 | 712 |
| |
| |||
774 | 774 |
| |
775 | 775 |
| |
776 | 776 |
| |
777 |
| - | |
| 777 | + | |
778 | 778 |
| |
779 | 779 |
| |
780 | 780 |
| |
781 | 781 |
| |
782 | 782 |
| |
783 |
| - | |
| 783 | + | |
784 | 784 |
| |
785 | 785 |
| |
786 | 786 |
| |
| |||
848 | 848 |
| |
849 | 849 |
| |
850 | 850 |
| |
851 |
| - | |
| 851 | + | |
852 | 852 |
| |
853 | 853 |
| |
854 | 854 |
| |
855 | 855 |
| |
856 | 856 |
| |
857 |
| - | |
| 857 | + | |
858 | 858 |
| |
859 | 859 |
| |
860 | 860 |
| |
| |||
870 | 870 |
| |
871 | 871 |
| |
872 | 872 |
| |
873 |
| - | |
| 873 | + | |
874 | 874 |
| |
875 |
| - | |
| 875 | + | |
| 876 | + | |
876 | 877 |
| |
877 | 878 |
| |
878 | 879 |
| |
| |||
939 | 940 |
| |
940 | 941 |
| |
941 | 942 |
| |
942 |
| - | |
| 943 | + | |
943 | 944 |
| |
944 | 945 |
| |
945 | 946 |
| |
946 | 947 |
| |
947 | 948 |
| |
948 |
| - | |
| 949 | + | |
949 | 950 |
| |
950 | 951 |
| |
951 | 952 |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 |
| - | |
| 197 | + | |
198 | 198 |
| |
199 |
| - | |
| 199 | + | |
| 200 | + | |
200 | 201 |
| |
201 | 202 |
| |
202 | 203 |
| |
|
0 commit comments
Comments
(0)