diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | io.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Jun 12 10:02:26 2010 Yukihiro Matsumoto <[email protected]> + + * io.c (rb_f_syscall): should check argument string taint before + invoking system calls. + Thu Jun 10 14:45:28 2010 KOSAKI Motohiro <[email protected]> * ext/dl/dl.c (rb_dl_strdup): strdup() only allocates a buffer of @@ -5250,7 +5250,7 @@ rb_f_syscall(argc, argv) VALUE v = rb_check_string_type(*argv); if (!NIL_P(v)) { - StringValue(v); + SafeStringValue(v); rb_str_modify(v); arg[i] = (unsigned long)StringValueCStr(v); } |