aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c
index d9620b90722..7880e439e9d 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -5458,6 +5458,9 @@ coding_restore_composition (coding, obj)
5458 if (method == COMPOSITION_WITH_RULE_ALTCHARS 5458 if (method == COMPOSITION_WITH_RULE_ALTCHARS
5459 && len % 2 == 0) 5459 && len % 2 == 0)
5460 len --; 5460 len --;
5461 if (len < 1)
5462 /* Invalid composition data. */
5463 break;
5461 for (j = 0; j < len; j++) 5464 for (j = 0; j < len; j++)
5462 args[j] = make_number (data[4 + j]); 5465 args[j] = make_number (data[4 + j]);
5463 components = (method == COMPOSITION_WITH_ALTCHARS 5466 components = (method == COMPOSITION_WITH_ALTCHARS