]> git.proxmox.com Git - mirror_edk2.git/commit
Security/OpalHii.c: Handle NULL Request or Request with no elements
authorDandan Bi <dandan.bi@intel.com>
Mon, 16 Oct 2017 03:37:08 +0000 (11:37 +0800)
committerEric Dong <eric.dong@intel.com>
Tue, 17 Oct 2017 05:23:06 +0000 (13:23 +0800)
commit5f2b325e4d99bd55e4c4a2dfcfd2f7f3763009a7
tree5651302a808ea36d311c8714cffdb9407fad36e1
parent1c29d03869355a5e9dfafb88332c139d8c5c2215
Security/OpalHii.c: Handle NULL Request or Request with no elements

According to UEFI spec, for the ExtractConfig function in
EFI_HII_CONFIG_ACCESS_PROTOCOL,If a NULL is passed in for the Request
field or if a ConfigHdr is passed in with no request elements, all of
the settings being abstracted by this function will be returned in the
Results field.

The implementation of ExtractConfig function in OpalHii.c misses to
handle above cases.This patch is to do the enhancements.

Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalHii.c