diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-27 21:06:58 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2022-06-28 04:35:06 +0530 |
| commit | 3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7 (patch) | |
| tree | 333971b2cfe01a404d37c3d17e385775e50f803f /linux-user/linux_loop.h | |
| parent | 5f9ca6f3c5111fadb0b1e76755ceaf738a98db4c (diff) | |
| download | focaccia-qemu-3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7.tar.gz focaccia-qemu-3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7.zip | |
semihosting: Simplify softmmu_lock_user_string
We are not currently bounding the search to the 1024 bytes that we allocated, possibly overrunning the buffer. Use softmmu_strlen_user to find the length and allocate the correct size from the beginning. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/linux_loop.h')
0 files changed, 0 insertions, 0 deletions