Browse Source

[core] quiet coverity noise

master
Glenn Strauss 7 months ago
parent
commit
22e8f600f5
  1. 4
      src/h2.c
  2. 4
      src/t/test_buffer.c

4
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)*/

4
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();
}

Loading…
Cancel
Save