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> |
||
|---|---|---|
| .. | ||
| Application | ||
| DynamicCommand | ||
| Include | ||
| Library | ||
| ShellPkg.ci.yaml | ||
| ShellPkg.dec | ||
| ShellPkg.dsc | ||