linux-user/elfload: Size corefile before opening
commit2410d28dc992082ec3348d6544ef30c1f950c8b9
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 27 Feb 2024 04:18:57 +0000 (26 18:18 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 18:48:06 +0000 (29 08:48 -1000)
tree8b6a33ef14856f0a61c75233596f897cd82ee5fd
parentb5262077655ab586d90f80a0f1b9a536bbc999ba
linux-user/elfload: Size corefile before opening

Verify the size of the corefile vs the rlimit before
opening and creating the core file at all.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c