Corinna Vinschen
b1dfff7b01
malloc/nano-malloc: correctly check for out-of-bounds allocation reqs
...
The overflow check in mEMALIGn erroneously checks for INT_MAX,
albeit the input parameter is size_t. Fix this to check for
__SIZE_MAX__ instead. Also, it misses to check the req against
adding the alignment before calling mALLOc.
While at it, add out-of-bounds checks to pvALLOc, nano_memalign,
nano_valloc, and Cygwin's (unused) dlpvalloc.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-11-18 14:18:28 -05:00
..
2018-01-17 11:47:26 -06:00
2018-08-08 10:50:19 +02:00
2018-08-08 10:50:19 +02:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:20 -06:00
2018-01-17 11:47:26 -06:00
2020-10-14 10:54:19 -04:00
2016-03-18 12:33:41 +01:00
2020-10-14 10:54:30 -04:00
2017-02-13 17:04:17 -05:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:27 -06:00
2018-01-17 11:47:16 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2020-10-14 10:54:10 -04:00
2016-08-15 10:56:57 +02:00
2018-01-17 11:47:26 -06:00
2016-03-18 21:20:06 +01:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2020-10-14 10:54:10 -04:00
2018-01-17 11:47:26 -06:00
2020-10-14 10:54:02 -04:00
2018-01-17 11:47:26 -06:00
2020-10-14 10:54:05 -04:00
2020-10-14 10:53:56 -04:00
2002-12-20 21:07:56 +00:00
2017-12-01 03:41:52 -06:00
2018-01-17 11:47:26 -06:00
2018-01-19 19:58:10 +01:00
2020-10-14 10:54:06 -04:00
2018-01-17 11:47:26 -06:00
2015-11-20 18:14:58 +01:00
2020-10-14 10:54:10 -04:00
2020-10-14 10:54:10 -04:00
2018-06-18 18:45:44 +02:00
2020-10-14 10:54:10 -04:00
2020-10-14 10:54:10 -04:00
2017-07-28 12:23:08 +02:00
2017-07-28 12:23:10 +02:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2020-10-14 10:54:10 -04:00
2020-10-14 10:54:06 -04:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:29 -06:00
2018-01-17 11:47:26 -06:00
2018-10-10 18:01:22 +02:00
2018-12-31 23:40:11 -05:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2020-11-18 14:18:28 -05:00
2018-01-17 11:47:29 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2013-11-26 17:21:01 +00:00
2018-01-17 11:47:26 -06:00
2003-12-05 06:13:44 +00:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2017-12-01 03:41:52 -06:00
2020-10-14 10:54:02 -04:00
2020-10-14 10:54:02 -04:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2020-11-18 14:18:28 -05:00
2018-01-17 11:47:26 -06:00
2015-12-21 11:49:28 -05:00
2015-12-21 11:49:28 -05:00
2018-01-17 11:47:27 -06:00
2020-10-14 10:54:10 -04:00
2020-10-14 10:54:10 -04:00
2017-02-13 17:04:17 -05:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:29 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2020-10-14 10:54:27 -04:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2016-10-22 21:08:44 +02:00
2018-01-17 11:47:26 -06:00
2020-10-14 10:54:10 -04:00
2020-10-14 10:54:10 -04:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:30 -06:00
2016-03-28 22:39:50 -05:00
2018-09-06 14:14:05 +02:00
2020-10-14 10:54:06 -04:00
2018-08-13 09:42:21 +02:00
2020-10-14 10:54:10 -04:00
2016-08-15 17:35:21 +02:00
2016-08-15 17:35:21 +02:00
2020-10-14 10:54:10 -04:00
2018-10-10 17:53:55 +02:00
2020-10-14 10:54:10 -04:00
2016-08-15 17:35:21 +02:00
2020-10-14 10:54:10 -04:00
2018-08-08 10:50:19 +02:00
2018-01-17 11:47:29 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-09-06 14:14:05 +02:00
2017-08-02 13:02:26 +02:00
2020-10-14 10:54:10 -04:00
2018-09-06 14:14:05 +02:00
2016-08-15 17:35:21 +02:00
2020-10-14 10:54:10 -04:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2020-10-14 10:54:10 -04:00
2016-08-15 17:35:21 +02:00
2020-10-14 10:54:10 -04:00
2017-08-02 13:02:26 +02:00
2016-08-15 10:56:57 +02:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00