Skip to content
Commit 2364d07e authored by Michal Srb's avatar Michal Srb Committed by Julien Cristau
Browse files

os: Make sure big requests have sufficient length.



A client can send a big request where the 32B "length" field has value
0. When the big request header is removed and the length corrected,
the value will underflow to 0xFFFFFFFF.  Functions processing the
request later will think that the client sent much more data and may
touch memory beyond the receive buffer.

Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Reviewed-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 9c236850)
parent 8b708b73
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