Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
45aebb64
Commit
45aebb64
authored
Jun 18, 2011
by
Paul Eggert
Browse files
* image.c (xbm_image_p): Don't assume stated width and height fit in int.
parent
f2ed8a70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/ChangeLog
src/ChangeLog
+2
-0
src/image.c
src/image.c
+2
-2
No files found.
src/ChangeLog
View file @
45aebb64
2011-06-18 Paul Eggert <eggert@cs.ucla.edu>
* image.c (xbm_image_p): Don't assume stated width and height fit in int.
* lisp.h (lint_assume): New macro.
* composite.c (composition_gstring_put_cache):
* ftfont.c (ftfont_shape_by_flt): Use it to pacify GCC 4.6.0.
...
...
src/image.c
View file @
45aebb64
...
...
@@ -2308,7 +2308,7 @@ xbm_image_p (Lisp_Object object)
else
{
Lisp_Object data;
int
width, height;
EMACS_INT
width, height;
/* Entries for `:width', `:height' and `:data' must be present. */
if (!kw[XBM_WIDTH].count
...
...
@@ -2324,7 +2324,7 @@ xbm_image_p (Lisp_Object object)
data. */
if (VECTORP (data))
{
int
i;
EMACS_INT
i;
/* Number of elements of the vector must be >= height. */
if (ASIZE (data) < height)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment