Alex Bennée
38138fab93
linux-user/mmap.c: handle invalid len maps correctly
...
I've slightly re-organised the check to more closely match the
sequence that the kernel uses in do_mmap(). We check for both the zero
case (EINVAL) and the overflow length case (ENOMEM).
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: umarcor <1783362@bugs.launchpad.net>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180730134321.19898-2-alex.bennee@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2018-07-31 09:57:25 +02:00
..
2018-06-04 01:30:44 +02:00
2018-07-09 00:52:50 +02:00
2018-06-04 01:30:44 +02:00
2018-07-09 00:52:50 +02:00
2018-06-04 01:30:44 +02:00
2018-02-18 18:52:32 +01:00
2018-06-11 14:45:44 +02:00
2018-06-04 01:30:44 +02:00
2018-06-04 01:30:44 +02:00
2018-07-09 00:52:50 +02:00
2018-06-04 01:30:44 +02:00
2018-06-04 01:30:44 +02:00
2018-07-09 00:52:04 +02:00
2018-07-03 22:40:33 +09:00
2018-07-22 21:33:45 +02:00
2018-06-04 01:30:44 +02:00
2018-06-04 01:30:44 +02:00
2018-07-09 00:52:50 +02:00
2018-07-09 00:52:50 +02:00
2018-06-11 14:47:45 +02:00
2018-06-04 01:30:44 +02:00
2018-06-04 01:30:44 +02:00
2018-06-04 01:30:44 +02:00
2018-04-30 09:47:55 +02:00
2018-07-22 21:32:50 +02:00
2017-01-22 18:14:10 -08:00
2018-07-05 15:59:41 +01:00
2007-10-14 16:27:31 +00:00
2018-06-11 14:40:11 +02:00
2018-02-18 18:52:32 +01:00
2016-07-19 15:22:33 +03:00
2016-01-29 15:07:22 +00:00
2016-01-29 15:07:22 +00:00
2018-07-15 16:01:31 +02:00
2018-07-05 15:59:41 +01:00
2018-07-31 09:57:25 +02:00
2018-07-22 21:33:45 +02:00
2016-05-27 14:49:51 +03:00
2018-05-03 18:29:15 +02:00
2018-07-03 22:40:33 +09:00
2018-05-25 10:10:55 +02:00
2017-10-16 16:00:56 +03:00
2018-07-03 16:27:15 +02:00
2018-06-04 01:30:44 +02:00
2017-02-16 15:29:30 +01:00
2018-07-22 21:33:45 +02:00
2011-02-09 10:33:54 +02:00
2017-08-01 12:13:07 +01:00
2016-03-22 22:20:17 +01:00
2016-01-29 15:07:22 +00:00
2016-07-12 16:20:46 +02:00
2016-01-29 15:07:22 +00:00