[Privoxy-commits] [privoxy] 03/19: redirect_url(): Silence a bogus use-after-free warning

User Git git at git.privoxy.org
Sun Jan 10 15:50:42 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 9476a25ff5683725af2d86a83735395208e4d961
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Tue Jan 5 01:03:25 2021 +0100

    redirect_url(): Silence a bogus use-after-free warning
    
    ... emitted by ccc-analyzer from llvm80.
---
 filters.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/filters.c b/filters.c
index 95fbe8d7..91c98549 100644
--- a/filters.c
+++ b/filters.c
@@ -1246,8 +1246,9 @@ struct http_response *redirect_url(struct client_state *csp)
          }
          new_url = rewrite_url(requested_url, redirection_string);
 #ifdef FEATURE_HTTPS_INSPECTION
-         if (client_use_ssl(csp))
+         if (requested_url != csp->http->url)
          {
+            assert(client_use_ssl(csp));
             freez(requested_url);
          }
 #endif

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list