[Privoxy-commits] [privoxy] 03/13: decompress_iob(): Fix detection of insufficient data
    User Git 
    git at git.privoxy.org
       
    Sat Jan 30 17:10:02 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 f5c1a886b7ae20da7eafb77926252eb521260728
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Thu Jan 28 16:26:45 2021 +0100
    decompress_iob(): Fix detection of insufficient data
    
    Instead of checking the size of the iob we have to
    check the size of the actual data.
    
    Previously Privoxy could try to work on uninitialized data.
---
 parsers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/parsers.c b/parsers.c
index 14aa99ea..3b195300 100644
--- a/parsers.c
+++ b/parsers.c
@@ -540,7 +540,7 @@ jb_err decompress_iob(struct client_state *csp)
 
    cur = csp->iob->cur;
 
-   if (bufsize < (size_t)10)
+   if (old_size < (size_t)10)
    {
       /*
        * This is to protect the parsing of gzipped data,
-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
    
    
More information about the Privoxy-commits
mailing list