From 8b8cce322b3ddaa4d2449215224110e8367b1854 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 12 Jul 2013 07:28:40 +0000 Subject: encoding.c: refill terminator at associating encoding * encoding.c (rb_enc_associate_index): refill the terminator if it becomes longer than before. [ruby-dev:47500] [Bug #8624] * string.c (str_null_char, str_fill_term): get rid of out of bound access. * string.c (rb_str_fill_terminator): add a parameter for the length of new terminator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index bac60fd767..f3ecf8be9f 100644 --- a/internal.h +++ b/internal.h @@ -441,7 +441,7 @@ VALUE rb_str_quote_unprintable(VALUE); VALUE rb_id_quote_unprintable(ID); #define QUOTE(str) rb_str_quote_unprintable(str) #define QUOTE_ID(id) rb_id_quote_unprintable(id) -void rb_str_fill_terminator(VALUE str); +void rb_str_fill_terminator(VALUE str, const int termlen); /* struct.c */ VALUE rb_struct_init_copy(VALUE copy, VALUE s); -- cgit v1.2.3