Mercurial > emacs
diff src/coding.c @ 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 | 58de40c3a5c1 |
| children | 5256a4b9366f |
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
