* 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
@ -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>
|
Wed Dec 8 03:26:51 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
* ext/openssl/ossl_bio.c (ossl_obj2bio): should not use fptr->f.
|
* 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();
|
COND_LEXPOP();
|
||||||
CMDARG_LEXPOP();
|
CMDARG_LEXPOP();
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
$3->flags &= ~NODE_NEWLINE;
|
if ($3) $3->flags &= ~NODE_NEWLINE;
|
||||||
$$ = new_evstr($3);
|
$$ = new_evstr($3);
|
||||||
/*%
|
/*%
|
||||||
$$ = dispatch1(string_embexpr, $3);
|
$$ = dispatch1(string_embexpr, $3);
|
||||||
|
@ -60,4 +60,8 @@ class TestSystem < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_empty_evstr # [ruby-dev:25113]
|
||||||
|
assert_equal("", eval('"#{}"', nil, __FILE__, __LINE__))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user