Skip to content

Commit f1ab0d3

Browse files
committed
* process.c (rb_f_system): fixed lack of security check before
calling do_spawn() on win32. [ruby-talk:84555] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 525336f commit f1ab0d3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Thu Oct 30 09:32:26 2003 NAKAMURA Usaku <usa@ruby-lang.org>
2+
3+
* process.c (rb_f_system): fixed lack of security check before
4+
calling do_spawn() on win32. [ruby-talk:84555]
5+
16
Thu Oct 30 02:46:35 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
27

38
* eval.c (proc_invoke): single array value to normal Proc#call

process.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ rb_f_system(argc, argv)
976976

977977
if (argc == 1 && prog == 0) {
978978
#if defined(_WIN32)
979+
SafeStringValue(argv[0]);
979980
status = do_spawn(P_WAIT, RSTRING(argv[0])->ptr);
980981
#else
981982
status = proc_spawn(argv[0]);

0 commit comments

Comments
 (0)