Commit 670a110
committed
Fix incorrect faulting instruction update in BNDCHK implicit null check
When a BNDCHK has a foldedImplicitNULLCHK, the function
setImplicitNULLCHKExceptionInfo attempts to correctly identify the faulting
instruction. The condition checked for both CMP4MemReg and CMP4RegMem, but
CMP4RegMem loads from an object field rather than the array, so it cannot be
the faulting instruction for a null array access. This caused the stack
walker to fail to find the stack map, hitting a fatal assertion in jswalk.c.
The fix removes CMP4RegMem from the condition, keeping only CMP4MemReg which
correctly identifies a cmp that loads array length from the array.1 parent 82f4830 commit 670a110
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3065 | 3065 | | |
3066 | 3066 | | |
3067 | 3067 | | |
3068 | | - | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
3069 | 3078 | | |
3070 | 3079 | | |
3071 | 3080 | | |
| |||
0 commit comments