aboutsummaryrefslogtreecommitdiff
path: root/semihosting/arm-compat-semi.c
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 /semihosting/arm-compat-semi.c
parent5f9ca6f3c5111fadb0b1e76755ceaf738a98db4c (diff)
downloadqemu-3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7.zip
qemu-3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7.tar.gz
qemu-3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7.tar.bz2
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 'semihosting/arm-compat-semi.c')
0 files changed, 0 insertions, 0 deletions