aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/coding.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5ced4734bc9..d46e34c8525 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12015-01-21 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix coding.c subscript error
4 * coding.c (CODING_ISO_INVOKED_CHARSET):
5 Avoid undefined behavior if CODING_ISO_INVOCATION returns negative.
6
12015-01-17 Eli Zaretskii <eliz@gnu.org> 72015-01-17 Eli Zaretskii <eliz@gnu.org>
2 8
3 * xdisp.c (produce_image_glyph): Fix display of images in R2L 9 * xdisp.c (produce_image_glyph): Fix display of images in R2L
diff --git a/src/coding.c b/src/coding.c
index 54811588c6a..a7128ee3e73 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -350,7 +350,8 @@ static Lisp_Object Vbig5_coding_system;
350#define CODING_ISO_BOL(coding) \ 350#define CODING_ISO_BOL(coding) \
351 ((coding)->spec.iso_2022.bol) 351 ((coding)->spec.iso_2022.bol)
352#define CODING_ISO_INVOKED_CHARSET(coding, plane) \ 352#define CODING_ISO_INVOKED_CHARSET(coding, plane) \
353 CODING_ISO_DESIGNATION ((coding), CODING_ISO_INVOCATION ((coding), (plane))) 353 (CODING_ISO_INVOCATION (coding, plane) < 0 ? -1 \
354 : CODING_ISO_DESIGNATION (coding, CODING_ISO_INVOCATION (coding, plane)))
354#define CODING_ISO_CMP_STATUS(coding) \ 355#define CODING_ISO_CMP_STATUS(coding) \
355 (&(coding)->spec.iso_2022.cmp_status) 356 (&(coding)->spec.iso_2022.cmp_status)
356#define CODING_ISO_EXTSEGMENT_LEN(coding) \ 357#define CODING_ISO_EXTSEGMENT_LEN(coding) \