Repository navigation
Commit a924c85
committed
Add hir_c_init_end_inlined() for inline_depth=-1 enforcement
EndInlinedFunction::inline_depth_ defaults to -1 in C++ but calloc
gives 0. This was identified as the sole remaining unprotected non-zero
default (Pythia python#73, calloc-zero audit D-1776289329).
Add hir_c_init_end_inlined() following the same pattern as
hir_c_init_deopt (nonce=-1) and hir_c_alloc_instr (bytecode_offset=-1).
Any future C factory for EndInlinedFunction must use this init function.1 parent 9ff7359 commit a924c85
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
| 159 | + | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
659 | 667 | | |
660 | 668 | | |
661 | 669 | | |
| |||
0 commit comments