aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/test_str.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-07 21:28:01 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-07 21:28:01 +0300
commitb1a5840766481d9b1ce3836a176681367897cf1f (patch)
tree80a686c47d97d94f6cfb49785a28aa98578c267a /src/microhttpd/test_str.c
parentabe138ee3aaadea496fbdddd23d79fbe40113171 (diff)
downloadlibmicrohttpd-b1a5840766481d9b1ce3836a176681367897cf1f.tar.gz
libmicrohttpd-b1a5840766481d9b1ce3836a176681367897cf1f.zip
test_str: added extra check to see why Coverity gives strange reports
Diffstat (limited to 'src/microhttpd/test_str.c')
-rw-r--r--src/microhttpd/test_str.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/microhttpd/test_str.c b/src/microhttpd/test_str.c
index 2d256dd9..fbe06270 100644
--- a/src/microhttpd/test_str.c
+++ b/src/microhttpd/test_str.c
@@ -3661,6 +3661,14 @@ check_strx_from_uint32 (void)
3661 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size, 3661 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size,
3662 (intptr_t) rs, get_current_locale_str ()); 3662 (intptr_t) rs, get_current_locale_str ());
3663 } 3663 }
3664 else if (sizeof(buf) <= rs)
3665 {
3666 fprintf (stderr,
3667 "ERROR: dstrs_w_values[%u] has string with too many"
3668 "(%u) digits, size of 'buf' should be increased.\n",
3669 (unsigned int) i, (unsigned int) rs);
3670 return -1;
3671 }
3664 else if (0 != memcmp (buf + rs, erase + rs, sizeof(buf) - rs)) 3672 else if (0 != memcmp (buf + rs, erase + rs, sizeof(buf) - rs))
3665 { 3673 {
3666 if (0 == c_failed[i]) 3674 if (0 == c_failed[i])