Richard Henderson
360f0abdc5
linux-user: Use signed lengths in uaccess.c
...
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 <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210315204004.2025219-1-richard.henderson@linaro.org>
[lv: remove superfluous semicolon]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2021-04-07 18:55:27 +02:00
..
2021-03-10 15:34:12 +00:00
2021-02-13 22:50:50 +01:00
2021-03-10 15:34:12 +00:00
2020-11-15 16:41:26 +01:00
2021-02-13 22:50:50 +01:00
2021-02-18 07:48:22 -08:00
2020-09-17 20:39:22 +02:00
2021-02-16 11:04:53 +00:00
2021-02-16 11:04:53 +00:00
2020-11-11 10:59:39 +01:00
2020-11-15 16:41:26 +01:00
2021-02-13 22:50:50 +01:00
2021-02-15 12:10:03 +01:00
2020-11-15 16:41:26 +01:00
2020-10-26 11:39:23 +01:00
2021-02-16 11:04:53 +00:00
2021-03-24 14:25:16 +00:00
2021-03-25 20:55:07 +01:00
2021-03-06 11:53:57 -08:00
2021-02-13 22:50:50 +01:00
2020-11-15 16:41:26 +01:00
2020-11-15 16:41:26 +01:00
2020-10-26 11:39:23 +01:00
2019-06-10 07:03:34 -07:00
2021-03-13 10:45:11 +01:00
2019-06-12 13:20:21 +02:00
2021-01-18 10:05:06 +00:00
2020-11-17 15:22:52 +01:00
2018-09-25 22:36:47 +02:00
2020-09-17 20:39:22 +02:00
2021-02-16 11:04:53 +00:00
2021-01-07 05:09:06 -10:00
2019-01-11 15:46:56 +01:00
2021-03-13 10:45:11 +01:00
2021-01-18 10:05:06 +00:00
2021-02-16 13:08:46 +00:00
2021-04-07 18:55:27 +02:00
2021-03-10 15:34:12 +00:00
2019-07-26 19:24:33 +02:00
2021-02-13 22:50:49 +01:00
2019-06-12 13:20:21 +02:00
2021-01-21 13:27:08 +01:00
2020-08-27 12:29:50 +02:00
2021-03-09 11:26:32 +01:00
2020-09-03 01:09:35 +02:00
2021-03-29 21:56:18 +02:00
2019-06-12 13:20:21 +02:00
2020-02-12 18:56:41 +01:00
2020-08-21 06:18:24 -04:00
2021-04-07 18:55:27 +02:00
2019-06-10 07:03:34 -07:00
2020-02-19 11:17:40 +01:00