fix uninitialized memory in http stream, when chunked transfer encoding is used

Wed, 07 Jun 2023 15:59:00 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 07 Jun 2023 15:59:00 +0200
changeset 500
077aa138e8fb
parent 499
ef77854a91f3
child 501
2aa6bd9f166f

fix uninitialized memory in http stream, when chunked transfer encoding is used

src/server/util/io.c file | annotate | diff | comparison | revisions
--- a/src/server/util/io.c	Mon Jun 05 19:03:23 2023 +0200
+++ b/src/server/util/io.c	Wed Jun 07 15:59:00 2023 +0200
@@ -266,6 +266,7 @@
     st->chunk_buf_pos = 0;
     st->current_chunk_length = 0;
     st->current_chunk_pos = 0;
+    st->current_trailer = 0;
     st->write_chunk_buf_len = 0;
     st->write_chunk_buf_pos = 0;
     st->chunked_enc = WS_FALSE;

mercurial