Re: [PATCH] linux-user: Use signed lengths in uaccess.c

2021-04-07 Thread Laurent Vivier
Le 07/04/2021 à 17:16, Peter Maydell a écrit : > On Mon, 15 Mar 2021 at 21:07, Laurent Vivier wrote: >> >> Le 15/03/2021 à 21:40, Richard Henderson a écrit : >>> Partially revert 09f679b62dff, but only for the length arguments. >>> Instead of reverting to long, use ssize_t. Reinstate the > 0

Re: [PATCH] linux-user: Use signed lengths in uaccess.c

2021-04-07 Thread Peter Maydell
On Mon, 15 Mar 2021 at 21:07, Laurent Vivier wrote: > > Le 15/03/2021 à 21:40, Richard Henderson a écrit : > > Partially revert 09f679b62dff, but only for the length arguments. > > Instead of reverting to long, use ssize_t. Reinstate the > 0 check > > in unlock_user. > > > > Fixes: 09f679b62dff

Re: [PATCH] linux-user: Use signed lengths in uaccess.c

2021-03-15 Thread Laurent Vivier
Le 15/03/2021 à 21:40, Richard Henderson a écrit : > Partially revert 09f679b62dff, but only for the length arguments. > Instead of reverting to long, use ssize_t. Reinstate the > 0 check > in unlock_user. > > Fixes: 09f679b62dff > Reported-by: Coverity (CID 1446711) > Signed-off-by: Richard

Re: [PATCH] linux-user: Use signed lengths in uaccess.c

2021-03-15 Thread no-reply
-user: Use signed lengths in uaccess.c === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. === TEST SCRIPT

[PATCH] linux-user: Use signed lengths in uaccess.c

2021-03-15 Thread Richard Henderson
Partially revert 09f679b62dff, but only for the length arguments. Instead of reverting to long, use ssize_t. Reinstate the > 0 check in unlock_user. Fixes: 09f679b62dff Reported-by: Coverity (CID 1446711) Signed-off-by: Richard Henderson --- linux-user/qemu.h| 15 +--