mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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> |
||
|---|---|---|
| .. | ||
| ConsoleLogger.c | ||
| ConsoleLogger.h | ||
| ConsoleWrappers.c | ||
| ConsoleWrappers.h | ||
| FileHandleInternal.h | ||
| FileHandleWrappers.c | ||
| FileHandleWrappers.h | ||
| Shell.c | ||
| Shell.h | ||
| Shell.inf | ||
| Shell.uni | ||
| ShellEnvVar.c | ||
| ShellEnvVar.h | ||
| ShellManParser.c | ||
| ShellManParser.h | ||
| ShellParametersProtocol.c | ||
| ShellParametersProtocol.h | ||
| ShellProtocol.c | ||
| ShellProtocol.h | ||