ssplit(): Remove an assertion
authorFabian Keil <fk@fabiankeil.de>
Wed, 3 Feb 2021 18:08:20 +0000 (19:08 +0100)
committerFabian Keil <fk@fabiankeil.de>
Thu, 25 Feb 2021 14:03:59 +0000 (15:03 +0100)
... that could be triggered with a crafted CGI request.

This reverts dc4e311bcf.

OVE-20210203-0001.

Reported by: Joshua Rogers (Opera)

ssplit.c

index ef40e64..ec0f1db 100644 (file)
--- 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);