Skip to content

Commit 414778d

Browse files
committed
Initialize QPACK buffers to 0 before encoding
1 parent de68594 commit 414778d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qpack.c

+2
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,8 @@ int imquic_qpack_encode(imquic_qpack_context *ctx, GList *headers, uint8_t *byte
589589
* encoder instructions to send on our encoder stream as well */
590590
imquic_qpack_entry *entry = NULL, *ref = NULL;
591591
gboolean dynamic = FALSE, full_match = FALSE;
592+
memset(bytes, 0, *blen);
593+
memset(qenc, 0, *qenclen);
592594
uint8_t temp[1024], encoded[100];
593595
size_t tlen = sizeof(temp);
594596
memset(temp, 0, tlen);

0 commit comments

Comments
 (0)