audk/ShellPkg/DynamicCommand/HttpDynamicCommand
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
..
Http.c ShellPkg/HttpDynamicCommand: Fix possible uninitialized use 2021-05-19 01:39:49 +00:00
Http.h ShellPkg/DynamicCommand: add HttpDynamicCommand 2020-09-30 01:28:51 +00:00
Http.uni ShellPkg/DynamicCommand: add HttpDynamicCommand 2020-09-30 01:28:51 +00:00
HttpApp.c ShellPkg/DynamicCommand: add HttpDynamicCommand 2020-09-30 01:28:51 +00:00
HttpApp.inf ShellPkg/DynamicCommand: add HttpDynamicCommand 2020-09-30 01:28:51 +00:00
HttpDynamicCommand.c ShellPkg/DynamicCommand: add HttpDynamicCommand 2020-09-30 01:28:51 +00:00
HttpDynamicCommand.inf ShellPkg/DynamicCommand: add HttpDynamicCommand 2020-09-30 01:28:51 +00:00