git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
multiply overflow fixes
[swftools.git]
/
src
/
swfextract.c
diff --git
a/src/swfextract.c
b/src/swfextract.c
index
47bcbe7
..
c341f5f
100644
(file)
--- a/
src/swfextract.c
+++ b/
src/swfextract.c
@@
-741,7
+741,7
@@
int handlejpeg(TAG*tag)
memmove(&tag->data[pos], &tag->data[pos+4], end-(pos+4));
}
unsigned char*image;
memmove(&tag->data[pos], &tag->data[pos+4], end-(pos+4));
}
unsigned char*image;
- int width=0, height=0;
+ unsigned width=0, height=0;
jpeg_load_from_mem(&tag->data[6], end-6, &image, &width, &height);
uLongf datalen = width*height;
jpeg_load_from_mem(&tag->data[6], end-6, &image, &width, &height);
uLongf datalen = width*height;