Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
20ce5912
Commit
20ce5912
authored
Jun 08, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* image.c (gif_load): Rename local to avoid shadowing.
parent
a3dd1c67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/ChangeLog
src/ChangeLog
+2
-0
src/image.c
src/image.c
+3
-3
No files found.
src/ChangeLog
View file @
20ce5912
2011-06-08 Paul Eggert <eggert@cs.ucla.edu>
* image.c (gif_load): Rename local to avoid shadowing.
* lisp.h (SAFE_ALLOCA_LISP): Check for integer overflow.
(struct Lisp_Save_Value): Use ptrdiff_t, not int, for 'integer' member.
* alloc.c (make_save_value): Integer argument is now of type
...
...
src/image.c
View file @
20ce5912
...
...
@@ -7146,12 +7146,12 @@ gif_load (struct frame *f, struct image *img)
/* Which sub-image are we to display? */
{
Lisp_Object i
ndex
= image_spec_value (img->spec, QCindex, NULL);
idx = INTEGERP (i
ndex
) ? XFASTINT (i
ndex
) : 0;
Lisp_Object i
mage_number
= image_spec_value (img->spec, QCindex, NULL);
idx = INTEGERP (i
mage_number
) ? XFASTINT (i
mage_number
) : 0;
if (idx < 0 || idx >= gif->ImageCount)
{
image_error ("Invalid image number `%s' in image `%s'",
i
ndex
, img->spec);
i
mage_number
, img->spec);
fn_DGifCloseFile (gif);
return 0;
}
...
...
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