[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 06/74] semihosting: Simplify softmmu_lock_user_string
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 06/74] semihosting: Simplify softmmu_lock_user_string |
Date: |
Mon, 16 May 2022 16:12:05 +0100 |
On Tue, 3 May 2022 at 21:05, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> 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.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- [PATCH v2 02/74] semihosting: Return failure from softmmu-uaccess.h functions, (continued)
- [PATCH v2 02/74] semihosting: Return failure from softmmu-uaccess.h functions, Richard Henderson, 2022/05/03
- [PATCH v2 04/74] semihosting: Move softmmu-uaccess.h functions out of line, Richard Henderson, 2022/05/03
- [PATCH v2 03/74] semihosting: Improve condition for config.c and console.c, Richard Henderson, 2022/05/03
- [PATCH v2 05/74] semihosting: Add target_strlen for softmmu-uaccess.h, Richard Henderson, 2022/05/03
- [PATCH v2 06/74] semihosting: Simplify softmmu_lock_user_string, Richard Henderson, 2022/05/03
- Re: [PATCH v2 06/74] semihosting: Simplify softmmu_lock_user_string,
Peter Maydell <=
- [PATCH v2 07/74] semihosting: Split out guestfd.c, Richard Henderson, 2022/05/03
- [PATCH v2 08/74] semihosting: Generalize GuestFDFeatureFile, Richard Henderson, 2022/05/03
- [PATCH v2 09/74] semihosting: Return void from do_common_semihosting, Richard Henderson, 2022/05/03
- [PATCH v2 13/74] include/exec: Move gdb_stat and gdb_timeval to gdbstub.h, Richard Henderson, 2022/05/03
- [PATCH v2 10/74] semihosting: Adjust error checking in common_semi_cb, Richard Henderson, 2022/05/03
- [PATCH v2 12/74] include/exec: Move gdb open flags to gdbstub.h, Richard Henderson, 2022/05/03