diff options
author | Dandan Bi <dandan.bi@intel.com> | 2016-06-24 13:19:14 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-07 15:02:20 +0800 |
commit | caa8a4fba576d8007561ebf60d825c831cf4c445 (patch) | |
tree | e9af749f2546b522fe93bbec5b09c01e9be80337 /MdeModulePkg/Application/VariableInfo/VariableInfo.inf | |
parent | 92fd5da3ddd3f29855ef54a9c6971eb2d58c7c8e (diff) | |
download | edk2-platforms-caa8a4fba576d8007561ebf60d825c831cf4c445.tar.xz |
MdeModulePkg/HiiDatabaseDxe: Add ASSERT before using the pointer 'String'
The 'Sting' is returned by the function GetUnicodeStringTextAndSize.
If it is NULL, function GetUnicodeStringTextAndSize will return
EFI_OUT_OF_RESOURCES, and error handling codes will cover it.
So the pointer 'Sting' can not be NULL when using it.
So we can add the ASSERT codes.
Cc: Eric Dong <eric.dong@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
(cherry picked from commit 763cfa739b1733715fe6700a29ec078c36453f5e)
Diffstat (limited to 'MdeModulePkg/Application/VariableInfo/VariableInfo.inf')
0 files changed, 0 insertions, 0 deletions