projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3449638
)
gif_deanimate(): Confirm that that we have enough data
author
Fabian Keil
<fk@fabiankeil.de>
Tue, 9 Feb 2021 10:19:08 +0000
(11:19 +0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 21 Feb 2021 16:30:16 +0000
(17:30 +0100)
... before doing any work.
Fixes a crash when fuzzing with an empty document.
Reported by: Joshua Rogers (Opera).
deanimate.c
patch
|
blob
|
history
diff --git
a/deanimate.c
b/deanimate.c
index
bc64de6
..
a6759da
100644
(file)
--- a/
deanimate.c
+++ b/
deanimate.c
@@
-333,6
+333,10
@@
int gif_deanimate(struct binbuffer *src, struct binbuffer *dst, int get_first_im
{
return 1;
}
+ if (src->size <= 10)
+ {
+ return 1;
+ }
c = buf_getbyte(src, 10);