]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/ShellManParser.c
ShellPkg: Add checks for NULL pointers.
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 Oct 2011 20:32:17 +0000 (20:32 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 Oct 2011 20:32:17 +0000 (20:32 +0000)
commitecae51177e83db0d99f8b4888ae4b866c18651b6
tree61522e5d6294adbafeb58f35e61b090358c5126d
parentbeab0fc5e2ea7c676968991b1ae8e1fc72aef19f
ShellPkg: Add checks for NULL pointers.

This adds lots of pointer verification with ASSERTs only used when the condition should be impossible and never for memory allocation.

signed-off-by: jcarsey
reviewed-by: geekboy15a

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12523 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Application/Shell/FileHandleWrappers.c
ShellPkg/Application/Shell/ShellManParser.c
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/Edit.c
ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c
ShellPkg/Library/UefiShellDebug1CommandsLib/EfiDecompress.c
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c