git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2583e3a
)
fixed bad memory access problem with some jpeg images
author
kramm
<kramm>
Thu, 19 Jun 2008 20:31:40 +0000
(20:31 +0000)
committer
kramm
<kramm>
Thu, 19 Jun 2008 20:31:40 +0000
(20:31 +0000)
src/swfextract.c
patch
|
blob
|
history
diff --git
a/src/swfextract.c
b/src/swfextract.c
index
863faf5
..
b2e049c
100644
(file)
--- a/
src/swfextract.c
+++ b/
src/swfextract.c
@@
-618,7
+618,7
@@
int findjpegboundary(U8*data, int len)
{
int t;
int pos=-1;
- for(t=0;t<len;t++) {
+ for(t=0;t<len-4;t++) {
if(data[t ]==0xff &&
data[t+1]==0xd9 &&
data[t+2]==0xff &&