Commit 09721b31 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(coding_restore_composition): Check invalid

composition data more rigidly.
parent c14dc0ed
2004-02-02 Kenichi Handa <handa@m17n.org>
* coding.c (coding_restore_composition): Check invalid
composition data more rigidly.
2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
* fileio.c (Fread_file_name_internal): Correctly handle the case
......
......@@ -5458,6 +5458,9 @@ coding_restore_composition (coding, obj)
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment