Commit d74adbf
committed
Fail rdump_set_oom_dump() loudly when the path copy fails
strdup() can fail right when callers reach for this API -- near the
memory_limit. Previously its NULL return went unchecked while the override
was still marked set, so the OOM auto-dump was silently disabled with no
fallback to the rdump.oom_dump INI default. Now return false with an
E_WARNING and leave the override cleared; return true on success.
https://claude.ai/code/session_017skw8BsHkF8wur7Pf4G9W51 parent c6a7588 commit d74adbf
2 files changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
| 605 | + | |
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| 613 | + | |
| 614 | + | |
613 | 615 | | |
614 | 616 | | |
615 | 617 | | |
| |||
633 | 635 | | |
634 | 636 | | |
635 | 637 | | |
636 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
637 | 649 | | |
638 | 650 | | |
639 | 651 | | |
| 652 | + | |
| 653 | + | |
640 | 654 | | |
641 | 655 | | |
642 | 656 | | |
| |||
0 commit comments