From b709d50f8f70b8768fe6d73c91abc59a436b4d6b Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 28 Jan 2022 10:19:10 +0000 Subject: [PATCH] coverity: mark false positive Coverity doesn't understand the state relationship means that ssi will only be used to create the proxy-side SS representing the remote client SS, which happens as the first command in the state flow. Mark the call up to disable the false error report. --- lib/secure-streams/secure-streams-process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/secure-streams/secure-streams-process.c b/lib/secure-streams/secure-streams-process.c index d5822b69b..552e1d12c 100644 --- a/lib/secure-streams/secure-streams-process.c +++ b/lib/secure-streams/secure-streams-process.c @@ -487,6 +487,7 @@ callback_ss_proxy(struct lws *wsi, enum lws_callback_reasons reason, ssi.state = ss_proxy_onward_state; ssi.flags = 0; + // coverity[uninit_use_in_call] n = lws_ss_deserialize_parse(&conn->parser, lws_get_context(wsi), conn->dsh, in, len, &conn->state, conn, &conn->ss, &ssi, 0);