forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb0b6196
committed
Remove dependency to system calls for memory allocation in refint
Failures in allocations could lead to crashes with NULL pointerdereferences . Memory context TopMemoryContext is used instead to keepalive the plans allocated in the session. A more specific context couldbe used here, but this is left for later.Reported-by: Jian ZhangAuthor: Michael PaquierReviewed-by: Tom Lane, Andres FreundDiscussion:https://postgr.es/m/16190-70181c803641c3dc@postgresql.org1 parentb175bd5 commitb0b6196
1 file changed
+20
-6
lines changedLines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
| |||
186 | 187 |
| |
187 | 188 |
| |
188 | 189 |
| |
189 |
| - | |
| 190 | + | |
190 | 191 |
| |
191 | 192 |
| |
192 | 193 |
| |
193 | 194 |
| |
194 |
| - | |
| 195 | + | |
| 196 | + | |
195 | 197 |
| |
196 | 198 |
| |
197 | 199 |
| |
| |||
417 | 419 |
| |
418 | 420 |
| |
419 | 421 |
| |
420 |
| - | |
| 422 | + | |
| 423 | + | |
421 | 424 |
| |
422 | 425 |
| |
423 | 426 |
| |
| |||
614 | 617 |
| |
615 | 618 |
| |
616 | 619 |
| |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
617 | 627 |
| |
618 | 628 |
| |
619 | 629 |
| |
| |||
623 | 633 |
| |
624 | 634 |
| |
625 | 635 |
| |
| 636 | + | |
| 637 | + | |
626 | 638 |
| |
627 |
| - | |
| 639 | + | |
| 640 | + | |
628 | 641 |
| |
629 | 642 |
| |
630 | 643 |
| |
631 | 644 |
| |
632 |
| - | |
| 645 | + | |
633 | 646 |
| |
634 | 647 |
| |
635 | 648 |
| |
636 |
| - | |
| 649 | + | |
637 | 650 |
| |
638 | 651 |
| |
639 | 652 |
| |
640 | 653 |
| |
| 654 | + | |
641 | 655 |
| |
642 | 656 |
|
0 commit comments
Comments
(0)