Skip to content
Snippets Groups Projects
Commit 1bf6c404 authored by Tobias S. Josefowitz's avatar Tobias S. Josefowitz
Browse files

Merge branch 'tobij/fix-image-xwd-decoding' into 8.0

* tobij/fix-image-xwd-decoding:
  Image.XWD: Improve size checks to better detect malformed images
  Image.XWD: Remove $Id$
parents 8bb959d8 5ad63e5d
No related branches found
No related tags found
No related merge requests found
...@@ -302,7 +302,7 @@ void img_xwd__decode(INT32 args,int header_only,int skipcmap) ...@@ -302,7 +302,7 @@ void img_xwd__decode(INT32 args,int header_only,int skipcmap)
n++; n++;
push_text("image"); push_text("image");
if (s->len-(int)(header.header_size+header.ncolors*12)<0) if (s->len-(unsigned int)(header.header_size+header.ncolors*12)<0)
push_empty_string(); push_empty_string();
else else
push_string(make_shared_binary_string( push_string(make_shared_binary_string(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment