Commit 86b089f9 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fix buffer overrun in raw_sbuf

parent 3f212a60
......@@ -105,7 +105,10 @@ typedef struct {
/* padding length for the current frame */
size_t padlen;
nghttp2_inbound_state state;
uint8_t raw_sbuf[8];
/* Small buffer. Currently the largest contiguous chunk to buffer
is frame header. We buffer part of payload, but they are smaller
than frame header. */
uint8_t raw_sbuf[NGHTTP2_FRAME_HDLEN];
} nghttp2_inbound_frame;
typedef struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment