Ticket #162 (closed bug: fixed)
Parrot segfaults if specifying a non-sensical namespace
Reported by: | kjs | Owned by: | plobsing |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | imcc | Version: | |
Severity: | fatal | Keywords: | |
Cc: | parrot-dev@… | Language: | |
Patch status: | Platform: |
Description
while inspecting imcc's parser, I noticed that a key, in a keylist, is in fact a <var>. A var can be a target, which is just a register.
So, this is allowed: .namespace [$P0]
which doesn't make sense *at all*.
Parrot will segfault on this.
I think the simplest solution is to fix this in the parser (imcc.y); by changing some rules, we can fully disallow writing $P0 (registers in general) as namespace keys.
Change History
Note: See
TracTickets for help on using
tickets.