[parrot/parrot] 5779c3: imcc: Be more strict in parsing FixedIntegerArrays

GitHub noreply at github.com
Wed Mar 14 02:18:11 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/parrot/parrot
  Commit: 5779c32e68a94926d69f49ece4836edf7e7b352f
      https://github.com/parrot/parrot/commit/5779c32e68a94926d69f49ece4836edf7e7b352f
  Author: Brian Gernhardt <brian.gernhardt at mail.rit.edu>
  Date:   2012-03-13 (Tue, 13 Mar 2012)

  Changed paths:
    M compilers/imcc/pbc.c
  M t/compilers/imcc/syn/const.t

  Log Message:
  -----------
  imcc: Be more strict in parsing FixedIntegerArrays

The previous implementation would sit and spin on strtoul when handed
invalid input.

This version performs more sanity checks as it parses, although it
doesn't require the presence of surrounding parenthesis due to the
parser giving it just '0' while parsing
compilers/pct/src/PCT/HLLCompiler.pir





More information about the parrot-commits mailing list