diff options
| author | Paul Eggert | 2011-06-18 09:15:19 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-18 09:15:19 -0700 |
| commit | ebc96716caba6515eb7bd74cca252e1a36d6c99b (patch) | |
| tree | c7a9ff3bd6a689bffcac0956522b0a95775f5c69 | |
| parent | 85461888af64b0a2edd1405714892a67c7a4b925 (diff) | |
| download | emacs-ebc96716caba6515eb7bd74cca252e1a36d6c99b.tar.gz emacs-ebc96716caba6515eb7bd74cca252e1a36d6c99b.zip | |
* font.c (Ffont_shape_gstring): Don't assume glyph len fits in 'int'.
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/font.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e2683795934..360027cfa4d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-06-18 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-06-18 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * font.c (Ffont_shape_gstring): Don't assume glyph len fits in 'int'. | ||
| 4 | |||
| 3 | * fns.c (Ffillarray): Don't assume bool vector size fits in 'int'. | 5 | * fns.c (Ffillarray): Don't assume bool vector size fits in 'int'. |
| 4 | Use much-faster test for byte-length change. | 6 | Use much-faster test for byte-length change. |
| 5 | Don't assume string byte-length fits in 'int'. | 7 | Don't assume string byte-length fits in 'int'. |
diff --git a/src/font.c b/src/font.c index ecb61ab6a53..4619ed68913 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -4294,7 +4294,7 @@ created glyph-string. Otherwise, the value is nil. */) | |||
| 4294 | { | 4294 | { |
| 4295 | struct font *font; | 4295 | struct font *font; |
| 4296 | Lisp_Object font_object, n, glyph; | 4296 | Lisp_Object font_object, n, glyph; |
| 4297 | int i, j, from, to; | 4297 | EMACS_INT i, j, from, to; |
| 4298 | 4298 | ||
| 4299 | if (! composition_gstring_p (gstring)) | 4299 | if (! composition_gstring_p (gstring)) |
| 4300 | signal_error ("Invalid glyph-string: ", gstring); | 4300 | signal_error ("Invalid glyph-string: ", gstring); |