[macruby-changes] [2022] MacRuby/branches/experimental
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jul 14 13:14:45 PDT 2009
Revision: 2022
http://trac.macosforge.org/projects/ruby/changeset/2022
Author: pthomson at apple.com
Date: 2009-07-14 13:14:45 -0700 (Tue, 14 Jul 2009)
Log Message:
-----------
IO#gets now returns tainted strings.
Modified Paths:
--------------
MacRuby/branches/experimental/io.c
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/gets_tags.txt
Modified: MacRuby/branches/experimental/io.c
===================================================================
--- MacRuby/branches/experimental/io.c 2009-07-13 23:22:26 UTC (rev 2021)
+++ MacRuby/branches/experimental/io.c 2009-07-14 20:14:45 UTC (rev 2022)
@@ -1307,6 +1307,7 @@
}
CFDataSetLength(data, data_read);
}
+ OBJ_TAINT(bstr);
io_struct->lineno += 1;
ARGF.lineno = INT2FIX(io_struct->lineno);
return bstr;
Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/gets_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/gets_tags.txt 2009-07-13 23:22:26 UTC (rev 2021)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/gets_tags.txt 2009-07-14 20:14:45 UTC (rev 2022)
@@ -1,4 +1,3 @@
-fails:IO#gets returns tainted strings
fails:IO#gets updates lineno with each invocation
fails:IO#gets assigns the returned line to $_
fails:IO#gets returns the entire content if the separator is nil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090714/e27896fd/attachment.html>
More information about the macruby-changes
mailing list