diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-02 08:22:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-02 08:22:19 +0000 |
commit | aa1acf1d4282d44ddfa677d24b7c3c1e951467d6 (patch) | |
tree | 24f9cbcf9aa83bd8a13279706c46d7977769f4c6 /ChangeLog | |
parent | 263ce88f9f2f713273e628bcef64e5f13cdbc2ff (diff) |
encoding.c: validate index
* encoding.c (rb_enc_set_index, rb_enc_associate_index): validate
argument encoding index.
* include/ruby/encoding.h (ENCODING_SET): use rb_enc_set_index()
instead of setting inlined bits directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,10 @@ -Tue Jul 2 17:22:12 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> +Tue Jul 2 17:22:16 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * encoding.c (rb_enc_set_index, rb_enc_associate_index): validate + argument encoding index. + + * include/ruby/encoding.h (ENCODING_SET): use rb_enc_set_index() + instead of setting inlined bits directly. * encoding.c (rb_enc_init): register preserved indexes. |