diff options
| author | Zach Reizner <zachr@google.com> | 2021-03-26 22:11:16 -0400 |
|---|---|---|
| committer | Laurent Vivier <laurent@vivier.eu> | 2021-03-27 16:48:45 +0100 |
| commit | 4a1e6bce2308b720d79d5ea0a3d24501c89bd80c (patch) | |
| tree | 5a37c203e8888dd5eb15f2f1e26be5e74d9c6e94 /linux-user/signal-common.h | |
| parent | 23fff7a17f47420797ac6480147941612152a9ad (diff) | |
| download | focaccia-qemu-4a1e6bce2308b720d79d5ea0a3d24501c89bd80c.tar.gz focaccia-qemu-4a1e6bce2308b720d79d5ea0a3d24501c89bd80c.zip | |
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: Zach Reizner <zachr@google.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <CAFNex=DvFCq=AQf+=19fTfw-T8eZZT=3NnFFm2JMFvVr5QgQyA@mail.gmail.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/signal-common.h')
0 files changed, 0 insertions, 0 deletions