[svn:parrot] r45385 - trunk/compilers/imcc
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Fri Apr 2 17:22:48 UTC 2010
Author: NotFound
Date: Fri Apr 2 17:22:48 2010
New Revision: 45385
URL: https://trac.parrot.org/parrot/changeset/45385
Log:
off-by-one array dim in build_key, fix TT #641
Modified:
trunk/compilers/imcc/pbc.c
Modified: trunk/compilers/imcc/pbc.c
==============================================================================
--- trunk/compilers/imcc/pbc.c Fri Apr 2 15:42:43 2010 (r45384)
+++ trunk/compilers/imcc/pbc.c Fri Apr 2 17:22:48 2010 (r45385)
@@ -1540,7 +1540,7 @@
SymReg *reg;
char s_key[KEYLEN * 10];
- opcode_t key[KEYLEN];
+ opcode_t key[KEYLEN + 1]; /* [0] -> length, [1..] -> keys */
opcode_t size;
int key_length; /* P0["hi;there"; S0; 2] has length 3 */
int k;
More information about the parrot-commits
mailing list