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 ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Shell ShellPkg: Fix check on OldArgv in UpdateArgcArgv() 2024-11-24 17:15:24 +00:00
ShellCTestApp ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellExecTestApp ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellSortTestApp ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00