mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (string_content): get rid of segfault at empty evstr.
fixed: [ruby-dev:25113] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ec8d7f3672
commit
e41a1c0f10
3 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Dec 8 11:46:26 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (string_content): get rid of segfault at empty evstr.
|
||||
fixed: [ruby-dev:25113]
|
||||
|
||||
Wed Dec 8 03:26:51 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* ext/openssl/ossl_bio.c (ossl_obj2bio): should not use fptr->f.
|
||||
|
|
2
parse.y
2
parse.y
|
@ -3599,7 +3599,7 @@ string_content : tSTRING_CONTENT
|
|||
COND_LEXPOP();
|
||||
CMDARG_LEXPOP();
|
||||
/*%%%*/
|
||||
$3->flags &= ~NODE_NEWLINE;
|
||||
if ($3) $3->flags &= ~NODE_NEWLINE;
|
||||
$$ = new_evstr($3);
|
||||
/*%
|
||||
$$ = dispatch1(string_embexpr, $3);
|
||||
|
|
|
@ -60,4 +60,8 @@ class TestSystem < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_empty_evstr # [ruby-dev:25113]
|
||||
assert_equal("", eval('"#{}"', nil, __FILE__, __LINE__))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue