diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-13 02:06:35 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-13 02:06:35 +0000 |
| commit | 7dbb035ba85215a39725d8a4922bff06a35cab3e (patch) | |
| tree | 352888fcc4baa6f57c2f990737afb75085b92c4d /test | |
| parent | 9003572081d67126782efccf5467d60f935af13b (diff) | |
* ext/nkf/nkf-utf8/nkf.c (numchar_getc): get rid of buffer
overflow. [ruby-dev:40606]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/nkf/test_nkf.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/nkf/test_nkf.rb b/test/nkf/test_nkf.rb index 279ad59e1a..496bb1da0f 100644 --- a/test/nkf/test_nkf.rb +++ b/test/nkf/test_nkf.rb @@ -13,4 +13,9 @@ Ruby" assert_equal(::NKF::EUC, NKF.guess(str_euc)) end + def test_numchar_input + bug2953 = '[ruby-dev:40606]' + assert_equal("A", NKF.nkf("-w --numchar-input", "A"), bug2953) + assert_equal("B", NKF.nkf("-w --numchar-input", "B"), bug2953) + end end |
