Skip to content

Commit

Permalink
revert: "sds: fix length check. OSS-Fuzz 6227554268741632 (fluent#3116)"
Browse files Browse the repository at this point in the history
This reverts commit 55b265a.
  • Loading branch information
edsiper committed Feb 24, 2021
1 parent f23dfb1 commit 3dfd397
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/flb_sds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 3dfd397

Please sign in to comment.