efi_loader: check length in CreateDeviceNode()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 22 Apr 2019 22:51:01 +0000 (00:51 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 22 Apr 2019 22:51:01 +0000 (00:51 +0200)
commit7d1e4b73e3f321cd4f0e039aa0387484cf97b25c
tree3127c43d27178fa49c8c815115afd8961562f144
parentf12bcc9149c32a01dac687718ad126d4d3ba29ba
efi_loader: check length in CreateDeviceNode()

When creating a device path node ensure that the size of the allocated
memory at lest matches the size of the node header.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_device_path.c