From 4646ba6b2a8ff08a989a4c761a9b621343da9671 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 6 Nov 2003 01:17:59 +0000 Subject: * ext/stringio/stringio.c (strio_set_string, strio_reopen): check tainted. * ext/stringio/stringio.c (strio_copy, strio_ungetc, strio_write, strio_putc): add infection. * ext/stringio/stringio.c (strio_path): just nil. [ruby-dev:21846] * ruby.c (proc_options): reserve searched script path in the source file name table. [ruby-list:38765] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 344007b5a0..2f0dceb697 100644 --- a/ruby.c +++ b/ruby.c @@ -429,6 +429,7 @@ proc_options(argc, argv) char *argv0 = argv[0]; int do_search; char *s; + NODE *volatile script_node = 0; int version = 0; int copyright = 0; @@ -751,6 +752,8 @@ proc_options(argc, argv) script = dln_find_file(argv[0], getenv(PATH_ENV)); } if (!script) script = argv[0]; + script = ruby_sourcefile = rb_source_filename(script); + script_node = NEW_NEWLINE(0); } #ifdef DOSISH translate_char(script, '\\', '/'); -- cgit v1.2.3