hefeix / szl

Automatically exported from code.google.com/p/szl
Other
0 stars 0 forks source link

Array overrun in IR::OpcodeFor #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
OpcodeFor in ir.cc scans a static array (opcodetab) looking for a sentinel that 
isn't there. The upshot is memory corruption in --nonative mode.

I have no specific test for this, but the memory corruption problems suddenly 
went away when I noticed and fixed this bug.

The patched code respects a proper array bound on the loop control variable.

Original issue reported on code.google.com by aecolley on 13 Oct 2013 at 9:09

Attachments: