[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: -tighten test further
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: -tighten test further |
Date: |
Mon, 25 Sep 2023 21:50:05 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new 64d90a1a -tighten test further
64d90a1a is described below
commit 64d90a1a85091c8aaa707dd84e47e8b0b990b767
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Sep 25 21:49:57 2023 +0200
-tighten test further
---
src/microhttpd/test_str_token_remove.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/test_str_token_remove.c
b/src/microhttpd/test_str_token_remove.c
index 3e9b61ef..dc9d7fae 100644
--- a/src/microhttpd/test_str_token_remove.c
+++ b/src/microhttpd/test_str_token_remove.c
@@ -63,7 +63,7 @@ expect_result_n (const char *str, size_t str_len,
buf_out, &result_len);
if (buf_len < expected_len)
{ /* The result should not fit into the buffer */
- if (res || (0 < result_len))
+ if (res || (0 <= result_len))
{
fprintf (stderr,
"MHD_str_remove_token_caseless_() FAILED:\n"
@@ -78,6 +78,7 @@ expect_result_n (const char *str, size_t str_len,
else
{ /* The result should fit into the buffer */
if ( (expected_removed != res) ||
+ (result_len < 0) ||
(expected_len != (size_t) result_len) ||
((0 != result_len) && (0 != memcmp (expected, buf_out,
(size_t) result_len))) ||
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: -tighten test further,
gnunet <=