Sergio Gonzalez Monroy d4ee3c61c0 mem: fix possible integer overflow
It is possible to get an integer overflow if we try to reserve a memzone
with len = 0 (meaning the maximum contiguous space available) and the
maximum available elem size is less than (MALLOC_ELEM_OVERHEAD + align).

Coverity issue: 107111

Fixes: fafcc11985a2 ("mem: rework memzone to be allocated by malloc")

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
2016-06-20 10:54:57 +02:00
..
2016-06-17 18:04:22 +02:00
2015-10-22 17:50:51 +02:00
2015-03-10 12:17:31 +01:00
2015-06-12 11:10:10 +02:00
2015-06-12 11:10:10 +02:00
2016-06-10 15:08:57 +02:00
2016-06-14 16:50:36 +02:00
2015-07-30 20:16:04 +02:00
2014-11-25 13:30:23 +01:00
2014-11-25 13:30:23 +01:00
2016-06-10 15:08:57 +02:00
2015-02-24 20:22:24 +01:00
2015-11-19 15:44:51 +01:00