check for overly large header field in send_headers
This commit is contained in:
@@ -85,6 +85,10 @@ impl Send {
|
||||
}
|
||||
}
|
||||
|
||||
if frame.has_too_big_field() {
|
||||
return Err(UserError::HeaderTooBig);
|
||||
}
|
||||
|
||||
let end_stream = frame.is_end_stream();
|
||||
|
||||
// Update the state
|
||||
@@ -216,6 +220,10 @@ impl Send {
|
||||
return Err(UserError::UnexpectedFrameType);
|
||||
}
|
||||
|
||||
if frame.has_too_big_field() {
|
||||
return Err(UserError::HeaderTooBig);
|
||||
}
|
||||
|
||||
stream.state.send_close();
|
||||
|
||||
trace!("send_trailers -- queuing; frame={:?}", frame);
|
||||
|
||||
Reference in New Issue
Block a user