audk/ShellPkg/Application/Shell
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
..
ConsoleLogger.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ConsoleLogger.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ConsoleWrappers.c ShellPkg: Update the comments of ReadKeyStroke and ReadKeyStrokeEx 2024-04-03 10:25:06 +08:00
ConsoleWrappers.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FileHandleInternal.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FileHandleWrappers.c ShellPkg: Shell: CodeQL Fixes 2024-10-29 02:09:18 +00:00
FileHandleWrappers.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Shell.c ShellPkg: CodeQL Fixes 2024-10-29 02:09:18 +00:00
Shell.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Shell.inf ShellPkg: Export default shell delay as PCD 2023-01-20 16:43:51 +00:00
Shell.uni ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
ShellEnvVar.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellEnvVar.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellManParser.c ShellPkg: Shell: CodeQL Fixes 2024-10-29 02:09:18 +00:00
ShellManParser.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellParametersProtocol.c ShellPkg: Fix check on OldArgv in UpdateArgcArgv() 2024-11-24 17:15:24 +00:00
ShellParametersProtocol.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellProtocol.c ShellPkg: Shell: CodeQL Fixes 2024-10-29 02:09:18 +00:00
ShellProtocol.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00