[Parrot] #162: Parrot segfaults if specifying a non-sensical namespace

Parrot parrot-tickets at lists.parrot.org
Sun Jan 11 22:46:41 UTC 2009


#162: Parrot segfaults if specifying a non-sensical namespace
-------------------+--------------------------------------------------------
 Reporter:  kjs    |       Owner:     
     Type:  bug    |      Status:  new
 Priority:  major  |   Milestone:     
Component:  none   |     Version:     
 Severity:  fatal  |    Keywords:     
     Lang:         |       Patch:     
 Platform:         |  
-------------------+--------------------------------------------------------
 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.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/162>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development


More information about the parrot-dev mailing list