Commit 7c06020
authored
[mini] Fix the bounds check in GET_BBLOCK (#73493)
If the target IP is out of bounds, but `cfg->cil_offset_to_bb` has
some non-zero data before or after it, then `tblock` will be some
non-NULL pointer that we will treat as a good basic block.
Related to #73474 (but doesn't
fix the underlying issue there - it will just make the whole
offending method throw a BadImageFormatException when it's called)
This may have some performance overhead for the mono JIT.1 parent d8dbd95 commit 7c06020
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
470 | 471 | | |
471 | 472 | | |
472 | | - | |
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| |||
0 commit comments