Skip to content
Commit e751722a authored by Michal Srb's avatar Michal Srb Committed by Adam Jackson
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 784d205f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment