From 22e8f600f5388ac7dda5855f2bea6e04c7c7d807 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 8 May 2021 18:32:14 -0400 Subject: [PATCH] [core] quiet coverity noise --- src/h2.c | 4 +++- src/t/test_buffer.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/h2.c b/src/h2.c index 141f1915..9c60e189 100644 --- a/src/h2.c +++ b/src/h2.c @@ -2111,7 +2111,9 @@ h2_send_headers_block (request_st * const r, connection * const con, const char "oversized response-header"); hoff[0] = 1; hoff[1] = 0; - http_header_parse_hoff(CONST_STR_LEN(":status: 500\r\n\r\n"), hoff); + if (http_header_parse_hoff(CONST_STR_LEN(":status: 500\r\n\r\n"),hoff)){ + /*(ignore for coverity; static string is successfully parsed)*/ + } } /*(h2_init_con() resized h2r->tmp_buf to 64k; shared with r->tmp_buf)*/ diff --git a/src/t/test_buffer.c b/src/t/test_buffer.c index 90cfa291..c18dd633 100644 --- a/src/t/test_buffer.c +++ b/src/t/test_buffer.c @@ -20,7 +20,7 @@ static void run_buffer_path_simplify(buffer *psrc, buffer *pdest, const char *in __LINE__, in, out, - pdest->ptr ? pdest->ptr : ""); + pdest->ptr); fflush(stderr); abort(); } else { @@ -33,7 +33,7 @@ static void run_buffer_path_simplify(buffer *psrc, buffer *pdest, const char *in __LINE__, in, out, - pdest->ptr ? pdest->ptr : ""); + pdest->ptr); fflush(stderr); abort(); }