[svn:parrot] r38282 - trunk/src/pmc

cotto at svn.parrot.org cotto at svn.parrot.org
Thu Apr 23 09:36:17 UTC 2009


Author: cotto
Date: Thu Apr 23 09:36:16 2009
New Revision: 38282
URL: https://trac.parrot.org/parrot/changeset/38282

Log:
[PMC] use a properly-sized string when freezing RBA, fixing an OpenBSD segfault
patch courtesy of darbelo++

Modified:
   trunk/src/pmc/resizablebooleanarray.pmc

Modified: trunk/src/pmc/resizablebooleanarray.pmc
==============================================================================
--- trunk/src/pmc/resizablebooleanarray.pmc	Thu Apr 23 07:49:21 2009	(r38281)
+++ trunk/src/pmc/resizablebooleanarray.pmc	Thu Apr 23 09:36:16 2009	(r38282)
@@ -435,7 +435,7 @@
         VTABLE_push_integer(INTERP, io, head_pos);
         VTABLE_push_integer(INTERP, io, tail_pos);
 
-        s = Parrot_str_new(INTERP, (char*)bit_array, tail_pos);
+        s = Parrot_str_new(INTERP, (char*)bit_array, rounded_size);
 
         VTABLE_push_string(INTERP, io, s);
     }


More information about the parrot-commits mailing list