diff options
| author | Sergei Dmitrouk <sergei@posteo.net> | 2021-05-18 19:09:40 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-05-19 04:39:49 +0300 |
| commit | aecfbc81a98871967595164d431e8ba8adacb601 (patch) | |
| tree | 6e733f59e6f6b2addb8dca5abdc3dd7591512ebd /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h | |
| parent | 42ec0a315b8a2f445b7a7d74b8d78965f1dff8f6 (diff) | |
| download | edk2-aecfbc81a98871967595164d431e8ba8adacb601.tar.xz | |
ShellPkg/HttpDynamicCommand: Fix possible uninitialized use
`Status` can be used uninitialized:
/* Evaluates to FALSE */
if (ShellGetExecutionBreakFlag ()) {
Status = EFI_ABORTED;
break;
}
/* Evaluates to FALSE */
if (!Context->ContentDownloaded && !Context->ResponseToken.Event) {
Status = ...;
ASSERT_EFI_ERROR (Status);
} else {
ResponseMessage.Data.Response = NULL;
}
/* UNINITIALIZED USE */
if (EFI_ERROR (Status)) {
break;
}
Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Sergei Dmitrouk <sergei@posteo.net>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions
