[Privoxy-commits] [privoxy] 04/06: gif_deanimate(): Confirm that that we have enough data
User Git
git at git.privoxy.org
Sun Feb 21 16:27:07 UTC 2021
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 88d5b57a4a639f88c937e7b22f6fe976b4380ce9
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Tue Feb 9 11:19:08 2021 +0100
gif_deanimate(): Confirm that that we have enough data
... before doing any work.
Fixes a crash when fuzzing with an empty document.
Reported by: Joshua Rogers (Opera).
---
deanimate.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/deanimate.c b/deanimate.c
index bc64de63..a6759da4 100644
--- 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);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list