diff options
author | Richard Henderson | 2022-04-28 06:06:58 +0200 |
---|---|---|
committer | Richard Henderson | 2022-06-28 01:05:06 +0200 |
commit | 3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7 (patch) | |
tree | 333971b2cfe01a404d37c3d17e385775e50f803f /configs | |
parent | semihosting: Add target_strlen for softmmu-uaccess.h (diff) | |
download | qemu-3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7.tar.gz qemu-3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7.tar.xz 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 'configs')
0 files changed, 0 insertions, 0 deletions