Skip to content
Snippets Groups Projects
Commit 4a1e6bce authored by Zach Reizner's avatar Zach Reizner Committed by Laurent Vivier
Browse files

linux-user: allow NULL msg in recvfrom


The kernel allows a NULL msg in recvfrom so that he size of the next
message may be queried before allocating a correctly sized buffer. This
change allows the syscall translator to pass along the NULL msg pointer
instead of returning early with EFAULT.

Signed-off-by: default avatarZach Reizner <zachr@google.com>
Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
Message-Id: <CAFNex=DvFCq=AQf+=19fTfw-T8eZZT=3NnFFm2JMFvVr5QgQyA@mail.gmail.com>
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent 23fff7a1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment