From 3dfd39792d1e79bb4723bbfe531a4c81625439a6 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 23 Feb 2021 18:55:57 -0600 Subject: [PATCH] revert: "sds: fix length check. OSS-Fuzz 6227554268741632 (#3116)" This reverts commit 55b265a4a70a6b0a020f7cd59dfd0a02ed725747. --- src/flb_sds.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/flb_sds.c b/src/flb_sds.c index 1430089eb75..179a2c01a6f 100644 --- a/src/flb_sds.c +++ b/src/flb_sds.c @@ -284,9 +284,6 @@ flb_sds_t flb_sds_cat_utf8 (flb_sds_t *sds, const char *str, int str_len) } else if (c >= 0x80) { hex_bytes = flb_utf8_len(str + i); - if (hex_bytes + i >= str_len) { - return NULL; - } state = FLB_UTF8_ACCEPT; cp = 0; for (b = 0; b < hex_bytes; b++) {