diff options
| author | Kenichi Handa | 2004-02-02 12:09:36 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-02-02 12:09:36 +0000 |
| commit | 09721b316cebc6dca2a6148f38de6c96b31cdea6 (patch) | |
| tree | 90ebcd12382ea1886dec8fb8b13e2bcbb1243542 /src | |
| parent | c14dc0edf230d5e9757ec3197313b67dde4d46b3 (diff) | |
| download | emacs-09721b316cebc6dca2a6148f38de6c96b31cdea6.tar.gz emacs-09721b316cebc6dca2a6148f38de6c96b31cdea6.zip | |
(coding_restore_composition): Check invalid
composition data more rigidly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/coding.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 98584a9b324..9a93ac894ca 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-02-02 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * coding.c (coding_restore_composition): Check invalid | ||
| 4 | composition data more rigidly. | ||
| 5 | |||
| 1 | 2004-01-30 Luc Teirlinck <teirllm@auburn.edu> | 6 | 2004-01-30 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 7 | ||
| 3 | * fileio.c (Fread_file_name_internal): Correctly handle the case | 8 | * fileio.c (Fread_file_name_internal): Correctly handle the case |
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 |