Skip to content
Commit 38762a07 authored by Thanassis Avgerinos's avatar Thanassis Avgerinos Committed by Takashi Sakamoto
Browse files

firewire: nosy: ensure user_length is taken into account when fetching packet contents



Ensure that packet_buffer_get respects the user_length provided. If
the length of the head packet exceeds the user_length, packet_buffer_get
will now return 0 to signify to the user that no data were read
and a larger buffer size is required. Helps prevent user space overflows.

Signed-off-by: default avatarThanassis Avgerinos <thanassis.avgerinos@gmail.com>
Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
parent e67572cd
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