diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-24 21:55:11 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-24 21:55:11 -0700 |
| commit | e70b2721a627dee19349431619ec13693095c7e0 (patch) | |
| tree | a590ebd658921df124cdcd671602f14f7ad71fa6 /test | |
| parent | 62ca4c17385e0018767b20badcb92a9002166ef0 (diff) | |
| parent | b1114489ef84b644c2524cd8bc5c9db67185a7ee (diff) | |
| download | mruby-e70b2721a627dee19349431619ec13693095c7e0.tar.gz mruby-e70b2721a627dee19349431619ec13693095c7e0.zip | |
Merge pull request #1210 from iij/pr-inspect-many-non-printables
String#inspec & String#dump may raise an "arena overflow" error
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/string.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/t/string.rb b/test/t/string.rb index 5f5f664cf..945ef890c 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -415,3 +415,10 @@ assert('String#each_byte') do bytes1 == bytes2 end +assert('String#dump') do + ("\1" * 100).dump # should not raise an exception - regress #1210 +end + +assert('String#inspect') do + ("\1" * 100).inspect # should not raise an exception - regress #1210 +end |
