audk/ShellPkg/DynamicCommand
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
..
DpDynamicCommand ShellPkg/DynamicCommand: Fix various typos 2020-02-10 22:30:07 +00:00
HttpDynamicCommand ShellPkg/HttpDynamicCommand: Fix possible uninitialized use 2021-05-19 01:39:49 +00:00
TftpDynamicCommand ShellPkg/DynamicCommand: Fix various typos 2020-02-10 22:30:07 +00:00