1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 23:10:47 -08:00

(coding_restore_composition): Check invalid

composition data more rigidly.
This commit is contained in:
Kenichi Handa 2004-02-02 12:09:36 +00:00
parent c14dc0edf2
commit 09721b316c
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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