parser.c: bugfix: malformed trace files could've caused out-of-index array reads.