]> xenbits.xensource.com Git - qemu-xen.git/commit
bsd-user: Handle short reads in mmap_h_gt_g
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 19 Aug 2024 23:41:34 +0000 (09:41 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 20 Aug 2024 23:10:42 +0000 (09:10 +1000)
commit5b73b248a16dab43b74c4d2dbe4f589e109fdc85
tree8b187fba5f0440e5c813981acda30600bde99711
parenta4ad4a9d98f7fbde806f07da21e69f39e134cdf1
bsd-user: Handle short reads in mmap_h_gt_g

In particular, if an image has a large bss, we can hit EOF before reading
all bytes of the mapping.  Mirror the similar change to linux-user.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240820050848.165253-3-richard.henderson@linaro.org>
bsd-user/mmap.c