From bda74db01d6a1b338cc40af111a10a693d14b66f Mon Sep 17 00:00:00 2001 From: yhirose Date: Thu, 5 Sep 2024 12:50:05 -0400 Subject: [PATCH] Fix fuzzing test error --- httplib.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/httplib.h b/httplib.h index f339475..6c2a6f6 100644 --- a/httplib.h +++ b/httplib.h @@ -342,8 +342,7 @@ inline unsigned char to_lower(int c) { 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, }; - assert(0 <= c && c < 256); - return table[c]; + return table[(unsigned char)(char)c]; } struct case_ignore_equal {