Message ID | 20240604134049.1492434-1-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBD2ZDGN6SEKRBZNS7SZAMGQEZQX3VZA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=QT1JfMOj; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::540; helo=mail-ed1-x540.google.com; envelope-from=swupdate+bncbd2zdgn6sekrbzns7szamgqezqx3vza@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-ed1-x540.google.com (mail-ed1-x540.google.com [IPv6:2a00:1450:4864:20::540]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VtsDq2pQ3z20PW for <incoming@patchwork.ozlabs.org>; Tue, 4 Jun 2024 23:40:58 +1000 (AEST) Received: by mail-ed1-x540.google.com with SMTP id 4fb4d7f45d1cf-57a620e4a55sf1002060a12.0 for <incoming@patchwork.ozlabs.org>; Tue, 04 Jun 2024 06:40:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717508455; cv=pass; d=google.com; s=arc-20160816; b=g6kjsKljCEi3J9FBWChOC5fxnBxCv6lgVHuF9XAeptuhFXECi3aQnsfYcVz5K/2+D5 Zn+NWAZ3nkbXtyNf5Fin7w+Bc8bUeW4M/iQrmtqhEmjU6DgcP3Q+ZKW5dbqMFKIpXDLy Heo6iVgsbWRZVO17NiySndZn6PesgnYQ5P1agwBfJ0VOwLKxNl6yyWEgYG7MVLMNrYM7 75yGcEVCEg4mtqsILbVDrU12dL3U7PlJ4lkNXX9iLXdOssJd1zUfpOQ595ESNg0jb7yB 09sL0LRJQjHm2ElIltPDL1pzdZZaGgLVa8BF6fKFEDQ2Gxhkp+gZkzwzGSjx9aWiokGc Wj6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:ui-outboundreport:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=FBJmPzlDLJrMqRvb47sX5C1WAPje13kPd/c+TK1r4HQ=; fh=U9NdKesv0Ax/KoPW2mzx/6lSYjZtN5++HJ27jBmQsu0=; b=j+0cBNBS+bnNSDclga64/CrffO9TrvzIGRUzDhHjMOlR5H6NbZsCnquJcV42XAsn8G zCjxjv0Gj9ebckBYJarodWTfikQmvMHVgnPMB/zR3NTO3t75U0ZMyUf+5gapT97nPCk3 gIEvbfo7mAoefpvlWK+r0leHpuqd6o3uUIVp1T8lYDBUNhcuj7nql9HWBu+WEpU5ALj9 EWXvS6Wp9dxTPjBr9XlJqO0XVUBv03xYG/dAW7B5aamU3BauP9YWVhzeRXYRi7NLyB5H fp5GN9Pw/m331qt7e9OyxM3cce861pdvZ3FZHrj6fF+P8cDPx6t7UzTUIpZa/BiYTiZ9 9TkA==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=rVahb5Ee; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1717508455; x=1718113255; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:ui-outboundreport:mime-version:message-id:date :subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=FBJmPzlDLJrMqRvb47sX5C1WAPje13kPd/c+TK1r4HQ=; b=QT1JfMOjKh9RYFdiIsT7TzpleYzuM6fL1kB4Oc+XwFxzywXb4Myz03o3p6FKI1XfKW OD1SSUwR4fsYTkiQoRLWGMzT4RHqdN9Cy54z3Fv5GJgTz3vh3eFet0Ts3APJQJMdkMBS S6b9qES3Nc/g1WDXAN94bIT1YwAGTgBbmIKrjP8zERyHYTTCZHdp5I3RBeqW0XLKi7c6 dKuH6vnozeC9MqjrexcZ1IgA5BHoyhXz8G8by3+aMHz2GBbGhtYU4mTqOGZfnG4c7erd cSznOnKIyXOBzm8N9his5gwyFFdyseUyPIUKLDEDzpYrPQPE9cUeOFmdb04OprUUngM0 VZoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717508455; x=1718113255; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :ui-outboundreport:mime-version:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=FBJmPzlDLJrMqRvb47sX5C1WAPje13kPd/c+TK1r4HQ=; b=vjSbyuLIlk2wMJoMmUw53Cb1QLui9U+2XvcHZqkRSbBhQUHT7PQ1m31iPzuA9H6qzt 9SHseB0NuNdeKOmBEOvBExkM1G+r2dUlIFTRD1qPl7SuC+X2/fKg2HhaCgaKO0FDKXXT ouX8ZzFFoRpD3Lt6CvF1OsbRFrktqQbockvO9hb6uR8vc7w0TXJhYzVeR6BBFtyb9Yy2 frteEUNRVumP01B6saSuJfxfxYP/9R7uTLPTTaOe02jUhWcSrlNZN5/055o/aIzREFq3 P1t10DZYdvpIWV/htxXnfoVaWw30r1Tn0YcAkDUjpgWsAD0bAPxAcsJ3kfXxojOsa58t Q1UA== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXJjbSJZV/Z9cCGVkWq6bxM3LMUfwnof6ZS9wT8sXYzAX8w+kim/XzrMyVV/c2fZ0ZLtzWQRtC5TDnfP9jsQzUTqb+/NOQ+8PkDpP3gVA== X-Gm-Message-State: AOJu0YzO1J6cf1hiAXZK5+tHzI3j43VVKWfPB159gHbPsM1UuOf0F+r3 SptoD/ngrF41oXICYZZJ1/qxytdsGa40LsWCv7uqKMw5c4it+ZOa X-Google-Smtp-Source: AGHT+IGkjcoq7Q+TisOqqebe5v/6FDrdSKf3/aHra7sNbjiGvYiF8+t8A69gPotia4JkevCUQFtDGQ== X-Received: by 2002:a50:9b1b:0:b0:57a:2eff:8ae with SMTP id 4fb4d7f45d1cf-57a36348fd6mr7797238a12.1.1717508454445; Tue, 04 Jun 2024 06:40:54 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6402:f0b:b0:57a:4015:7d28 with SMTP id 4fb4d7f45d1cf-57a45113c31ls1889975a12.2.-pod-prod-06-eu; Tue, 04 Jun 2024 06:40:52 -0700 (PDT) X-Received: by 2002:a17:906:1455:b0:a69:2fc:8340 with SMTP id a640c23a62f3a-a6902fc841bmr403525066b.73.1717508451737; Tue, 04 Jun 2024 06:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717508451; cv=none; d=google.com; s=arc-20160816; b=YKgDODSSCDrZUgd9dtbnBEY5lwbH1O+wiUQnzmii5PGNMPxlNIdzgoNdTdg5PNNW3u Mm60X7XYUXMXCt2FxA/+PIXZyx4tm9FDtvcF/VszeVbiix7290dKYyfSOYtmKLVv6kAu aiJ8lLpyaEk3p+SZCaDtvB1Hlcv0YeleibhrGpy/gxjw5FSEbYIa0UT7G7/6dlKsecao aSB8sUewwtmMcE/MyXG6ypcKcpPJA+rSmlquyBr+w3w2TsNZws7xX57XOgHqov/D0UfC ufc3m58JnNPDH8jXipb48RL08zVDkr+3Tp2wyXYyb4gC+P7bIh3eHUdW5hMZQbQT9rGC VHTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version:message-id :date:subject:cc:to:from:dkim-signature; bh=SEsE0yHI50eA90Um+mX3al5LWMsad3NKpVm+WnhQRyg=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=tva7n2Nt25VV6yO8Wa5iTDGK3uQw/KyZWMQ+ijwPzUqqlZFL367oL+36mC0cYPX89d Zs5HFYzXxXfKKzM0jNm6p6hx3vr7+JcrF+MbU7gckWvoan7B3CWk/tDimFu9lvvpDmoq mCGrie8vM6Id6bJgNIOiKafuPUcVbrnOznnhxezE8qzzSr3zftMduJBzKk4T5zmWWY3W WNOPOMA5+xaS1ZfWDhnm+fDYYKbFPQsewts5uqXuA/PxCgyp93XZ8JR5C7WgwktZYByw spFLsvcGSsIdvGixkxEq+hp76R58nfiIz+AUDEx55wOxl0o11czCGO8X3/mMVHM/nq7I JRxA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=rVahb5Ee; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.17.13]) by gmr-mx.google.com with ESMTPS id a640c23a62f3a-a68f62c1109si16644266b.0.2024.06.04.06.40.51 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 06:40:51 -0700 (PDT) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) client-ip=212.227.17.13; X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MFK8N-1sGQDC0a6r-00FhdU; Tue, 04 Jun 2024 15:40:51 +0200 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH] parse_external: fix coverity #349327 Date: Tue, 4 Jun 2024 15:40:49 +0200 Message-Id: <20240604134049.1492434-1-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:Cle+n6KJNr3kGG7Mkwq7zyjm34WPLgVIrHbbPojc/m3cwYAj6hR Krv5PH940CTV2AChm9y/IpAQH61s4J/WQkHxJcNVEwUwb2jif9TaQgvgX1QXVFgbFodY6UV lhBS8aSe9Y4c17nRR5LppRnBOGPLutPL31xWW8rprQbWrppeCueeGN3NWDt78FCRhwKV1h5 iwgpqOuBazYYhQXBkUSCg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:FigDWsgDjfY=;ZksS1Xbh+u+lg5V+EPH5qR4Mkuq aHTysvdpkPH8j6AzwZwpLglwzrHjo/PIe+X+O7y1P+drOt4Ah5iaTiKO5jtXeEDlpc/LaQikr vswQCqkAjpkggTQD91UTatc0jIrNGNwdssDXktmXilEhWQunt+UvmS+GvDDGFmwkkWn9ZPf73 HGkJI4N3v5kcLHd9MvxEtCd0WdtqKPhHI1CUKIrf2jE5VWElc0CDOpD9MjVXtaHqm3hd7lzZK nOl3G95ey/natpYFQ+DAWxDjbkQceV2LCOMXZdvLTizkyv4jtzKKNmw3Utjuh86RAbw1BwQD+ 8TRSspVI9UYJ+XqHPtYo/zeh8R3w8KBs2Qck4G8thDCrf9JOEC5xgvGAwjaTFhWvq5L/7QJND J3GMCb6lLonrBAubWn3kAIshOz2OmZAo4objAhVZwt2OHeB4e2BAK2yTh+1/9tJaVhtx0vBrV MhFFUEGVLJktdWVLsQjdnLd/Zq4vFnoYOfyVLtKO2yxEKYIfZlI3tJUuzHWiSQUF+mMUHxP1d uxLH2r6WAKrQz47RjXn8P8hww4BptM1u0f2GgrfAMOL6LBhYmuRN7x0T5dEYvzpNtXOY7izzl wtNinPyin3zBKu1uDCaJv7Qhk1zJwkB3AcXk8WdXTB+P5Q1HM09uWtscrzdN6yXq3DUlyCkU0 0SFd7/Z3xfWtEa0uuT378OVK2JVP86NPSm/TnKTmSMTs1UPpO1qMvi9wem9o/xu4Ew0IPL3bL tIiI63gGzd96kGBcDUtvu9RF5IHE7uvSBm5abeIoONaopZ/KQ2ZjRc= X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=rVahb5Ee; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
parse_external: fix coverity #349327
|
expand
|
diff --git a/parser/parse_external.c b/parser/parse_external.c index eef2b09a..20ac0771 100644 --- a/parser/parse_external.c +++ b/parser/parse_external.c @@ -110,7 +110,7 @@ int parse_external(struct swupdate_cfg *software, const char *filename, int ret; unsigned int nstreams; struct img_type *image; - struct hw_type hardware; + struct hw_type hardware = {0}; lua_State *L = luaL_newstate(); /* opens Lua */ luaL_openlibs(L); /* opens the standard libraries */
Not initialized hardware structure. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- parser/parse_external.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.1