audk/ShellPkg/Application
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
..
AcpiViewApp
Shell ShellPkg: Fix check on OldArgv in UpdateArgcArgv() 2024-11-24 17:15:24 +00:00
ShellCTestApp
ShellExecTestApp
ShellSortTestApp