buildtools: check allocation error in pmdinfogen
authorYong Wang <wang.yong19@zte.com.cn>
Fri, 15 Sep 2017 11:33:08 +0000 (07:33 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Nov 2017 22:24:43 +0000 (23:24 +0100)
commit3b29f60f2d584d5086b735e0a6fab518a17eaa1e
tree1de180120d739997cd5ba5471abd5f2e0ae85d57
parentf0df35313faa1d69739f533e41f73782489ded05
buildtools: check allocation error in pmdinfogen

In func locate_pmd_entries(), pointer 'new' returned from call to func
'calloc' may be NULL. It is dereferenced without null point check.

Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
buildtools/pmdinfogen/pmdinfogen.c