From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8588CC433FE for ; Mon, 21 Nov 2022 19:43:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 522D985263; Mon, 21 Nov 2022 20:43:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="cwEZsHk/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5397A85299; Mon, 21 Nov 2022 20:43:12 +0100 (CET) Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C9DCC85213 for ; Mon, 21 Nov 2022 20:43:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2d.google.com with SMTP id d18so5178500qvs.6 for ; Mon, 21 Nov 2022 11:43:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=uzUx6wG7zRk0gTT6C5tPcb9tnfC7rZXBWvEbboBiIkY=; b=cwEZsHk/1bynlSriNdT/+LL6YxBrXbhoVYUVidcWN6mEwT3j1WcFZtED0tl3QFvlED 9ePMXq29a31Cr1xjJqKc4Vfo9qijvanYOK0fZy3CPAlVhJfLMB3fIWpmqYZzFMEFSfqS NDiJcJwubVLYExMqgmbiZcJuIn6/rVr7Rsqig= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uzUx6wG7zRk0gTT6C5tPcb9tnfC7rZXBWvEbboBiIkY=; b=p2o6xBpsZWCwwmPjoTP4jnQsc6+nNLNMCwcIptjUUobnGiLPzPbduPKmfMQS3JA1Ko 50vLukLOiC8Z90xCxuOKrogx4V2KvNyh23xHq47v0I7P9v+zGdCBILysOHhWIHrP7Eu+ TTC2uRgwgOvK33xutzz6ezbK2A5idNqSFp36mK7wRiORoAQb0Aj07D2NROyTvEx4zbPW q7fc/a3B2JENMFZdhyxndVU04gL4nMicFnKPBu/LPjDo3siQugmpJNvz8d6HHNdR7LAw W+SoM6zzJ9SZanNrNWwW7tfEVdu5DftGcJ6oBfBi3YyNPdW0AWTG3t9V/DodmkUpaAF1 uNqQ== X-Gm-Message-State: ANoB5pnnQrLlsUrVy8Z6z+d3UfnoDydVErzyrLpMQMFSckFQj3bUdpYO ZSe4dGm9kwVoNlKiAE7jv/NItyOz9p1P6A== X-Google-Smtp-Source: AA0mqf4t+RNXbGyHjO/G6L5YHFj13YxhQOz8KzfMUc0pNYHk0jOgyEW5O/6EJStIIEwcJibilqfI6Q== X-Received: by 2002:ad4:42c5:0:b0:4c6:a686:f1ca with SMTP id f5-20020ad442c5000000b004c6a686f1camr899620qvr.22.1669059788481; Mon, 21 Nov 2022 11:43:08 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-91a3-6c7b-3405-8039.res6.spectrum.com. [2603:6081:7b00:6400:91a3:6c7b:3405:8039]) by smtp.gmail.com with ESMTPSA id dt18-20020a05620a479200b006ea7f9d8644sm8718798qkb.96.2022.11.21.11.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 11:43:07 -0800 (PST) Date: Mon, 21 Nov 2022 14:43:06 -0500 From: Tom Rini To: u-boot@lists.denx.de Cc: Simon Glass Subject: Fwd: New Defects reported by Coverity Scan for Das U-Boot Message-ID: <20221121194306.GY7282@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9MdG657QzbOEWl1C" Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --9MdG657QzbOEWl1C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Here's the latest report ---------- Forwarded message --------- =46rom: Date: Mon, Nov 21, 2022 at 12:44 PM Subject: New Defects reported by Coverity Scan for Das U-Boot To: Hi, Please find the latest report on new defect(s) introduced to Das U-Boot found with Coverity Scan. 2 new defect(s) introduced to Das U-Boot found with Coverity Scan. 3 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s) ** CID 376996: Error handling issues (CHECKED_RETURN) /drivers/net/sandbox-raw-bus.c: 40 in eth_raw_bus_post_bind() ___________________________________________________________________________= _____________________________ *** CID 376996: Error handling issues (CHECKED_RETURN) /drivers/net/sandbox-raw-bus.c: 40 in eth_raw_bus_post_bind() 34 if (skip_localhost && local) 35 continue; 36 37 ub_ifname =3D calloc(IFNAMSIZ + sizeof(ub_ifname_pfx), 1); 38 strcpy(ub_ifname, ub_ifname_pfx); 39 strncat(ub_ifname, i->if_name, IFNAMSIZ); >>> CID 376996: Error handling issues (CHECKED_RETURN) >>> Calling "device_bind_driver" without checking return value (as is d= one elsewhere 12 out of 15 times). 40 device_bind_driver(dev, "eth_sandbox_raw", ub_ifname, &chil= d); 41 42 device_set_name_alloced(child); 43 device_probe(child); 44 priv =3D dev_get_priv(child); 45 if (priv) { ** CID 376995: Null pointer dereferences (FORWARD_NULL) /test/test-main.c: 518 in ut_run_tests() ___________________________________________________________________________= _____________________________ *** CID 376995: Null pointer dereferences (FORWARD_NULL) /test/test-main.c: 518 in ut_run_tests() 512 pos =3D dectoul(test_insert, NULL); 513 p =3D strchr(test_insert, ':'); 514 if (p) 515 p++; 516 517 for (test =3D tests; test < tests + count; test++) { >>> CID 376995: Null pointer dereferences (FORWARD_NULL) >>> Passing null pointer "p" to "strcmp", which dereferences it. [Note:= The source code implementation of the function has been overridden by a bu= iltin model.] 518 if (!strcmp(p, test->name)) 519 one =3D test; 520 } 521 } 522 523 for (upto =3D 0, test =3D tests; test < tests + count; test++, upto++) { --=20 Tom --9MdG657QzbOEWl1C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmN71McACgkQFHw5/5Y0 tyywPwwAnx5/2BWoXLBLpuzpA9eSlJyOMo7USzQC25ASDOSMIBlgKK0qk4Wg42RI TETKrpZ9gtUg6LtkncuzPPu18qNsxF1PF3NliFUCMNPwn3P5Vj+BVXwOYtIeyKTh cezFLPuSX5yZu3zUmc9eHFfSG4rOyxMnpLe5of0GVJvHXvdcbJMUx/CW2CVdA9yT CKOUSWJ2tLX4AmbTMSDkNrhMJOOwoM3E+mceImPATGJSKSzSlXxFcWtXg7lek99U IEjVbsfbs6RNtrNKwCVurbscJFIn59BOzYaKjbDR8Iiq/PSjqvJpe155sHU95Ooj n9uUVL5VbJ08Ka8Dlbhgn4bD/ZgCRg4A8fenWLZx9BlDr6t9tu3/2FGWr1DMTH1n n51QSw9fKafFiVnh3TGt/YQo4Me9I7IuGk8VjlS6886jJtu4SPFoMSQ7W3ci20Fz WUDytBibMNKuWEGU7FSeBhVMRNlutigcAtaR6jASyPU14vrnSapcNOW21yA4uJTa foQ370Rz =kZpt -----END PGP SIGNATURE----- --9MdG657QzbOEWl1C--