qemu/semihosting
Richard Henderson 3d5e2b4f26 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>
2022-06-28 04:35:06 +05:30
..
arm-compat-semi.c semihosting: Move exec/softmmu-semi.h to semihosting/softmmu-uaccess.h 2022-06-28 04:35:06 +05:30
common-semi.h semihosting: Move hw/semihosting/ -> semihosting/ 2021-03-10 15:34:12 +00:00
config.c semihosting/config: Merge --semihosting-config option groups 2022-06-10 14:32:36 +01:00
console.c Do not include cpu.h if it's not really necessary 2021-05-02 17:24:51 +02:00
Kconfig semihosting: Move hw/semihosting/ -> semihosting/ 2021-03-10 15:34:12 +00:00
meson.build semihosting: Move softmmu-uaccess.h functions out of line 2022-06-28 04:35:06 +05:30
uaccess.c semihosting: Simplify softmmu_lock_user_string 2022-06-28 04:35:06 +05:30