kazu-yamamoto / http2

HTTP/2.0 library including HPACK
BSD 3-Clause "New" or "Revised" License
86 stars 23 forks source link

size check on `WINDOW_UPDATE` frame #118

Closed MangoIV closed 5 months ago

MangoIV commented 5 months ago

Hi! I have a question, as follows:

edit: it appears decodeWindowUpdateFrame does this.

Thanks in advance!

MangoIV commented 5 months ago

mmh, it appears the guard is justified by

A sender MUST NOT allow a flow-control window to exceed 231-1 octets. If a sender receives a WINDOW_UPDATE that causes a flow-control window to exceed this maximum, it MUST terminate either the stream or the connection, as appropriate. For streams, the sender sends a RST_STREAM with an error code of FLOW_CONTROL_ERROR; for the connection, a GOAWAY frame with an error code of FLOW_CONTROL_ERROR is sent.

kazu-yamamoto commented 5 months ago

@MangoIV Did you find the answer by yourself? If so, please close this issue.

kazu-yamamoto commented 5 months ago

May bad. Never mind. This is already closed.