audk/ShellPkg
Tormod Volden 800205678f ShellPkg: Fix check on OldArgv in UpdateArgcArgv()
The UpdateArgcArgv() function documentation says "If OldArgv or OldArgc
is NULL then that value is not returned."

However, only OldArgc was checked for NULL, probably because of
copy-pasto. In case OldArgc was non-NULL, but OldArgv was null, it could
cause a segmentation fault.

Check OldArgv is not NULL before dereferencing the value.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2024-11-24 17:15:24 +00:00
..
Application ShellPkg: Fix check on OldArgv in UpdateArgcArgv() 2024-11-24 17:15:24 +00:00
DynamicCommand ShellPkg: DynamicCommand: CodeQL Fixes 2024-10-29 02:09:18 +00:00
Include ShellPkg: Fix typos 2023-12-08 13:25:11 +00:00
Library ShellPkg: CodeQL Fixes 2024-10-29 02:09:18 +00:00
ShellPkg.ci.yaml ShellPkg/ShellPkg.ci.yaml: Add PrEval CI config 2024-09-02 23:20:35 +00:00
ShellPkg.dec ShellPkg: Increase PcdShellPrintBufferSize from UINT16 to UINT32 2023-10-17 03:04:05 +00:00
ShellPkg.dsc MdePkg: MdeLibs.dsc.inc: Apply StackCheckLibNull to All Module Types 2024-11-13 21:01:46 +00:00