Branch: Tag:

2014-12-04

2014-12-04 19:25:35 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Revert "decode_value: check validity of refno"

The test looked at limits for the wrong program (the refno relates
to the program at depth depth).

Revert it for now as it breaks working code.

This reverts commit c88883e028a5182d0e0e8c668f2d672a9cc7e367.

4615:    /* refno */    decode_number(refno, data);    -  if (refno < 0 || refno >= p->num_identifier_references) -  decode_error(data, NULL, "Bad identifier reference %d\n", refno); -  +     /* FIXME: -  * Verify validity of depth. +  * Verify validity of depth and refno.    */       /* Expected identifier number. */