OSDN Git Service

libefivar: make efi loadopt path functions have useful limit checks
authorPeter Jones <pjones@redhat.com>
Thu, 10 Mar 2016 20:51:31 +0000 (15:51 -0500)
committerPeter Jones <pjones@redhat.com>
Thu, 10 Mar 2016 20:51:31 +0000 (15:51 -0500)
commitcbce25e2fec5f23ead443707bac8672f87b9fdb0
tree4bffa43bfcfb138c7ef9accae057fefad4e8179b
parent7367d78281fa3ce390e10c7c9f4608c58e7a6d3d
libefivar: make efi loadopt path functions have useful limit checks

Make efi_loadopt_pathlen() and efi_loadopt_path() actually bounds check
against something useful, not just "does some possibly unallocated space
extend into some other possibly unallocated space".

Signed-off-by: Peter Jones <pjones@redhat.com>
src/loadopt.c