summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-30 00:34:30 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-30 00:34:30 +0000
commit40ad68f672c01c2393b92e670dcce3a53e2ae78d (patch)
tree7bcfeccc3d57d423bbfccffa4bee4f5fc3f3e447
parentd2793811f3e876139260960672db494b2e287098 (diff)
downloadruby-40ad68f672c01c2393b92e670dcce3a53e2ae78d.tar.gz
ruby-40ad68f672c01c2393b92e670dcce3a53e2ae78d.tar.xz
ruby-40ad68f672c01c2393b92e670dcce3a53e2ae78d.zip
* process.c (rb_f_system): fixed lack of security check before
calling do_spawn() on win32. [ruby-talk:84555] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--process.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 311869401..df62afbc4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 30 09:32:26 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (rb_f_system): fixed lack of security check before
+ calling do_spawn() on win32. [ruby-talk:84555]
+
Thu Oct 30 02:46:35 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (proc_invoke): single array value to normal Proc#call
diff --git a/process.c b/process.c
index 1920da2c4..ed7ae86dc 100644
--- a/process.c
+++ b/process.c
@@ -976,6 +976,7 @@ rb_f_system(argc, argv)
if (argc == 1 && prog == 0) {
#if defined(_WIN32)
+ SafeStringValue(argv[0]);
status = do_spawn(P_WAIT, RSTRING(argv[0])->ptr);
#else
status = proc_spawn(argv[0]);