summary refs log tree commit diff stats
path: root/linux-user/linux_loop.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-04-27 21:06:58 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-06-28 04:35:06 +0530
commit3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7 (patch)
tree333971b2cfe01a404d37c3d17e385775e50f803f /linux-user/linux_loop.h
parent5f9ca6f3c5111fadb0b1e76755ceaf738a98db4c (diff)
downloadfocaccia-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