This patchset fixes a few Coverity issues in malloc introduced by recent DPDK memory hotplug patchset.
Coverity issues fixed: - 272571 - negative return not handled - 272597 - negative return not handled - 272574 - use value before verification - 272590 - negative return not handled - 272566 - possible null dereference The following coverity issues were not fixed: - 272573 - calling memset with size 0 - This is intentional, size will not be 0 in malloc debug Also, replace all instaces of snprintf with strlcpy. Anatoly Burakov (5): malloc: replace snprintf with strlcpy malloc: fix potential out-of-bounds array access malloc: fix potential negative return malloc: fix potential dereferencing of NULL pointer malloc: fix potential negative return lib/librte_eal/common/malloc_elem.c | 6 ++++++ lib/librte_eal/common/malloc_heap.c | 7 ++++++- lib/librte_eal/common/malloc_mp.c | 23 +++++++++++------------ lib/librte_eal/common/rte_malloc.c | 6 +++++- 4 files changed, 28 insertions(+), 14 deletions(-) -- 2.7.4