Reviewed-by: Samer El-Haj-Mahmoud <el...@hpe.com> -----Original Message----- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Fu Siyuan Sent: Friday, April 1, 2016 12:16 AM To: edk2-devel@lists.01.org Cc: Ye Ting <ting...@intel.com>; Wu Jiaxin <jiaxin...@intel.com> Subject: [edk2] [Patch] NetworkPkg: Check pointer for NULL before use.
Cc: Ye Ting <ting...@intel.com> Cc: Wu Jiaxin <jiaxin...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan...@intel.com> --- NetworkPkg/HttpBootDxe/HttpBootConfig.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NetworkPkg/HttpBootDxe/HttpBootConfig.c b/NetworkPkg/HttpBootDxe/HttpBootConfig.c index e7dd5db..c47dddc 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootConfig.c +++ b/NetworkPkg/HttpBootDxe/HttpBootConfig.c @@ -554,6 +554,10 @@ HttpBootFormCallback ( // Get user input URI string // Uri = HiiGetString (CallbackInfo->RegisteredHandle, Value->string, NULL); + ASSERT (Uri != NULL); + if (Uri == NULL) { + return EFI_UNSUPPORTED; + } // // Convert the scheme to all lower case. -- 2.7.4.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel