[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/02: Fuzz tests: muted undefined behaviour signal
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/02: Fuzz tests: muted undefined behaviour signal |
Date: |
Mon, 29 Jan 2024 23:51:17 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 8ffa0a10d1b86a7a03bbaa97d824634827f8d119
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jan 29 23:50:13 2024 +0100
Fuzz tests: muted undefined behaviour signal
---
src/testzzuf/test_get.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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,
/* Check that all 'upload_data' is addressable */
size_t pos;
for (pos = 0; pos < *upload_data_size; ++pos)
- data_sum += (unsigned char) upload_data[pos];
+ data_sum =
+ (unsigned char) (data_sum + (unsigned char) upload_data[pos]);
if (0 != *upload_data_size)
{
if (3 >= *upload_data_size)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.