Commit ac57159
authored
ZJIT: Don't attempt to disassemble code when there's a compilation error (rubyGH-16251)
After a compilation error, the write pointer may point into unmapped JIT memory. Passing that address as the end of the disassembly range to capstone causes a segfault when it reads past the boundary of the mapped region.1 parent 7b3207e commit ac57159
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2202 | 2202 | | |
2203 | 2203 | | |
2204 | 2204 | | |
2205 | | - | |
| 2205 | + | |
2206 | 2206 | | |
2207 | 2207 | | |
2208 | 2208 | | |
| |||
0 commit comments