diff options
author | 2016-06-17 13:30:02 +0100 | |
---|---|---|
committer | 2016-06-19 13:31:59 +0000 | |
commit | 889178c02a711fbc66d83415a88608f704fbc561 (patch) | |
tree | b17e56b0d9c803b09a2d75d86c7a24a4e3b7bfc9 /vlib/configure.ac | |
parent | f2868fcd2e2cb237854c1ff83b52b656e9027136 (diff) |
VPP-152: mheap_alloc returns 0 when the requested heap size is too small
mheap_alloc allocates memory_size bytes of memory and returns
a page-aligned memory space prefixed with a word-aligned
header of type mheap_t.
This header includes the actual usable space size, but
when the requested size is too small, the computed size
was incorrect (infinite).
mheap_alloc now returns 0 in such cases.
With help from Yoann Desmouceaux.
Change-Id: I00af63d573d6939aca53dbe7ff612b726bd8f0df
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'vlib/configure.ac')
0 files changed, 0 insertions, 0 deletions