#641: Crash when loading PIR file
------------------------+---------------------------------------------------
Reporter: jonathand | Type: bug
Status: closed | Priority: normal
Milestone: | Component: none
Version: 1.0.0 | Severity: medium
Resolution: fixed | Keywords: parrot, malformed, crash
Lang: | Patch:
Platform: linux |
------------------------+---------------------------------------------------
Changes (by coke):
* status: new => closed
* resolution: => fixed
Comment:
This appears to be covered by the KEYLEN in compilers/imcc/pbc.c:
{{{
.sub main
.local pmc bfdata
bfdata = new [0;0;0;0;0;0;0;0;0;0;0;0] # <-- 10 zeros
.end
}}}
now dies with
{{{
error:imcc:build_key:key too complex increase KEYLEN
in file 'foo.pir' line 4
}}}
but no segfault.
Added a test in r45305.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/641#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets