audk/ShellPkg
Sergei Dmitrouk aecfbc81a9 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>
2021-05-19 01:39:49 +00:00
..
Application ShellPkg/ShellProtocol: sort files by FullName in RemoveDupInFileList() 2021-01-19 18:23:28 +00:00
DynamicCommand ShellPkg/HttpDynamicCommand: Fix possible uninitialized use 2021-05-19 01:39:49 +00:00
Include ShellPkg/ShellCommandLib: add ShellSortFileList() 2021-01-19 18:23:28 +00:00
Library ShellPkg/UefiShellCommandLib: suppress incorrect gcc warning 2021-05-14 10:00:13 +00:00
ShellPkg.ci.yaml ShellPkg/ShellPkg.ci.yaml: Add configuration for Ecc check 2020-08-17 03:28:09 +00:00
ShellPkg.dec ShellPkg/DynamicCommand: add HttpDynamicCommand 2020-09-30 01:28:51 +00:00
ShellPkg.dsc ShellPkg: Consume MdeLibs.dsc.inc for RegisterFilterLib 2021-03-31 05:47:10 +00:00