diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-01-29 23:50:13 +0100 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-01-29 23:50:13 +0100 |
commit | 8ffa0a10d1b86a7a03bbaa97d824634827f8d119 (patch) | |
tree | c12820c5cdad584aeb17c73ef676522da57a1313 | |
parent | b78e24a19272415a1a0244d0a13676baece55bd7 (diff) | |
download | libmicrohttpd-8ffa0a10d1b86a7a03bbaa97d824634827f8d119.tar.gz libmicrohttpd-8ffa0a10d1b86a7a03bbaa97d824634827f8d119.zip |
Fuzz tests: muted undefined behaviour signal
-rw-r--r-- | src/testzzuf/test_get.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testzzuf/test_get.c b/src/testzzuf/test_get.c index a687555a..ef5a098b 100644 --- a/src/testzzuf/test_get.c +++ b/src/testzzuf/test_get.c | |||
@@ -704,7 +704,8 @@ ahc_check (void *cls, | |||
704 | /* Check that all 'upload_data' is addressable */ | 704 | /* Check that all 'upload_data' is addressable */ |
705 | size_t pos; | 705 | size_t pos; |
706 | for (pos = 0; pos < *upload_data_size; ++pos) | 706 | for (pos = 0; pos < *upload_data_size; ++pos) |
707 | data_sum += (unsigned char) upload_data[pos]; | 707 | data_sum = |
708 | (unsigned char) (data_sum + (unsigned char) upload_data[pos]); | ||
708 | if (0 != *upload_data_size) | 709 | if (0 != *upload_data_size) |
709 | { | 710 | { |
710 | if (3 >= *upload_data_size) | 711 | if (3 >= *upload_data_size) |