summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog13
1 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 44b90606c3..ac1273c03d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+Tue Dec 27 19:51:43 2016 Kazuki Yamaguchi <k@rhe.jp>
+
+ * encoding.c (rb_enc_ascget): handle needmore error from
+ rb_enc_precise_mbclen().
+
+ rb_enc_ascget() erroneously reports success even if the given byte
+ sequence is incomplete, for non-ASCII compatible encoding strings.
+
+ rb_enc_precise_mbclen() may return a negative value on error, and thus
+ rb_enc_ascget() must not store the return value in 'unsigned int';
+ otherwise the subsequent MBCLEN_CHARFOUND_P() check won't catch the
+ error. [Bug #13034]
+
Tue Dec 27 19:49:01 2016 Shugo Maeda <shugo@ruby-lang.org>
* cont.c, eval.c, eval_error.c, thread.c, vm_eval.c, vm_trace.c: add