From e4c2ae4ffa70780f40413573c2c26201e5a49dbf Mon Sep 17 00:00:00 2001 From: Alex Baines Date: Wed, 7 Apr 2021 18:50:35 +0100 Subject: [PATCH] remove branch condition that could never be false fuzzer gets 100% branch coverage now, no crashes/hangs --- hmmlib2/hmmlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hmmlib2/hmmlib.h b/hmmlib2/hmmlib.h index 8183023..b3079eb 100644 --- a/hmmlib2/hmmlib.h +++ b/hmmlib2/hmmlib.h @@ -599,7 +599,7 @@ static size_t _hmml_parse_text(struct _hmml_parser* p, HMML_Annotation* anno) } // trim trailing whitespace - while(out > text_mem && out[-1] && (uint8_t)(out[-1]) <= ' ') { + while(out > text_mem && (uint8_t)(out[-1]) <= ' ') { out[-1] = '\0'; --out; }