[Privoxy-commits] [privoxy] 01/06: ssplit(): Remove an assertion

User Git git at git.privoxy.org
Thu Feb 25 14:05:37 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 2256d7b4d67dd9c364386877d5af59943433458b
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Wed Feb 3 19:08:20 2021 +0100

    ssplit(): Remove an assertion
    
    ... that could be triggered with a crafted CGI request.
    
    This reverts dc4e311bcf.
    
    OVE-20210203-0001.
    
    Reported by: Joshua Rogers (Opera)
---
 ssplit.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/ssplit.c b/ssplit.c
index ef40e644..ec0f1db2 100644
--- a/ssplit.c
+++ b/ssplit.c
@@ -36,7 +36,6 @@
 
 #include <string.h>
 #include <stdlib.h>
-#include <assert.h>
 
 #include "ssplit.h"
 #include "miscutil.h"
@@ -150,8 +149,6 @@ int ssplit(char *str, const char *delim, char *vec[], size_t vec_len)
       }
    }
    /* null terminate the substring */
-   /* XXX: this shouldn't be necessary, so assert that it isn't. */
-   assert(*str == '\0');
    *str = '\0';
 
    return(vec_count);

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


More information about the Privoxy-commits mailing list