[macruby-changes] [3779] MacRuby/trunk/pack.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 16 17:26:47 PDT 2010


Revision: 3779
          http://trac.macosforge.org/projects/ruby/changeset/3779
Author:   lsansonetti at apple.com
Date:     2010-03-16 17:26:47 -0700 (Tue, 16 Mar 2010)
Log Message:
-----------
#pack: fixed tainting of resulted string

Modified Paths:
--------------
    MacRuby/trunk/pack.c

Modified: MacRuby/trunk/pack.c
===================================================================
--- MacRuby/trunk/pack.c	2010-03-17 00:26:14 UTC (rev 3778)
+++ MacRuby/trunk/pack.c	2010-03-17 00:26:47 UTC (rev 3779)
@@ -1019,7 +1019,7 @@
 	OBJ_TAINT(data);
     }
     else {
-	for (long i = 0; i < items; i++) {
+	for (long i = 0, count = RARRAY_LEN(ary); i < count; i++) {
 	    if (OBJ_TAINTED(RARRAY_AT(ary, i))) {
 		OBJ_TAINT(data);
 		break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100316/9c6d4063/attachment.html>


More information about the macruby-changes mailing list