Mercurial > emacs
changeset 53775:68f86fa2b022
(coding_restore_composition): Check invalid
composition data more rigidly.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 02 Feb 2004 12:06:47 +0000 |
parents | 51a648ff0fe0 |
children | a87135c92afb |
files | src/coding.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Sun Feb 01 16:40:34 2004 +0000 +++ b/src/coding.c Mon Feb 02 12:06:47 2004 +0000 @@ -5458,6 +5458,9 @@ if (method == COMPOSITION_WITH_RULE_ALTCHARS && len % 2 == 0) len --; + if (len < 1) + /* Invalid composition data. */ + break; for (j = 0; j < len; j++) args[j] = make_number (data[4 + j]); components = (method == COMPOSITION_WITH_ALTCHARS