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 3DAE5C05027 for ; Tue, 14 Feb 2023 14:26:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BEA0A85927; Tue, 14 Feb 2023 15:26:51 +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="RIImaJX1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BFCF285926; Tue, 14 Feb 2023 15:26:49 +0100 (CET) Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) (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 178618593C for ; Tue, 14 Feb 2023 15:26:43 +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-xf32.google.com with SMTP id i5so5864815qvp.6 for ; Tue, 14 Feb 2023 06:26:43 -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:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=JeP8+IiE7lImh0kkTFwqnbPZm0R8sXD/kBgdKIw5kVE=; b=RIImaJX1z9zNb7DvzuAp9Pd1wH3C4KJQcIghTi2YCouou4eSzwZlvwtGhEGhnJczmG rgQFRWlJcjubEJcfkzat4YCRBMf7Nu5JhTlw/uQnOgBCZQKBN1ym9/WYdG7Ssv698ZVS mOwncC8R564J1xlNhyl0PgXlWx10+A8yo7RDk= 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:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JeP8+IiE7lImh0kkTFwqnbPZm0R8sXD/kBgdKIw5kVE=; b=lw2PGmuLkH81fxHUrpMxgovrBDCZnjH7/yWmKW/1FDKY621/5Fpnp0juWa8D09Eo5V wVftZoE7oE64ZzWy8cvR6bV7p8CKJHkoQ9HLPChOAzQUm/1hBvQ/CAOk/f+ZxPQobho2 FLeuZHCoAG6u8QNPk6++mUvpeXkSLGp4zCQjQ72O9XVSvnqAnYZVuIAzG/AysOWxGZ5j gQoffiId+HBk7udWIWQTTn4divDztoMj2renNwtMfFlZRNMu9il9+7pcUxJpOWvU9srM O06rWs3me8tH/V61EPRX/FkGhS60d/u/zK1Fz9zMwPZO3vbshuzMOQKMOkpYbo8z4VNM oPYA== X-Gm-Message-State: AO0yUKVjviWIvD0MPS15FMJ79FjBIwef6ohLEbvHZ6M7hAhNlTjzmAGH CRqGlnMd7ihGWfnHdgrGP7nAwoXCcYD7Jp6U/9U= X-Google-Smtp-Source: AK7set+XJCRbLlHjSf3sjqXg8OmIXtcqUCKrIGNK7GMyzJEyM3b6K1MapGc/FRvHOK6T09MLzrsKKg== X-Received: by 2002:a05:6214:624:b0:56e:bfda:a138 with SMTP id a4-20020a056214062400b0056ebfdaa138mr4484586qvx.10.1676384801619; Tue, 14 Feb 2023 06:26:41 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-c7c0-e2dd-6c89-7c7c.res6.spectrum.com. [2603:6081:7b00:6400:c7c0:e2dd:6c89:7c7c]) by smtp.gmail.com with ESMTPSA id y206-20020a3764d7000000b0071c2a68d6f2sm11857686qkb.20.2023.02.14.06.26.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 06:26:41 -0800 (PST) Date: Tue, 14 Feb 2023 09:26:39 -0500 From: Tom Rini To: u-boot@lists.denx.de Subject: Fwd: New Defects reported by Coverity Scan for Das U-Boot Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/f3Phiu/qUPmPEwD" 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 --/f3Phiu/qUPmPEwD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ---------- Forwarded message --------- =46rom: Date: Mon, Feb 13, 2023, 6:50 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 436073: Resource leaks (RESOURCE_LEAK) /tools/proftool.c: 1853 in make_flamegraph() ___________________________________________________________________________= _____________________________ *** CID 436073: Resource leaks (RESOURCE_LEAK) /tools/proftool.c: 1853 in make_flamegraph() 1847 1848 if (make_flame_tree(out_format, &tree)) 1849 return -1; 1850 1851 *str =3D '\0'; 1852 if (output_tree(fout, out_format, tree, str, sizeof(str), 0)) >>> CID 436073: Resource leaks (RESOURCE_LEAK) >>> Variable "tree" going out of scope leaks the storage it points to. 1853 return -1; 1854 1855 return 0; 1856 } 1857 1858 /** ** CID 436072: Insecure data handling (TAINTED_SCALAR) ___________________________________________________________________________= _____________________________ *** CID 436072: Insecure data handling (TAINTED_SCALAR) /tools/proftool.c: 515 in read_trace() 509 switch (hdr.type) { 510 case TRACE_CHUNK_FUNCS: 511 /* Ignored at present */ 512 break; 513 514 case TRACE_CHUNK_CALLS: >>> CID 436072: Insecure data handling (TAINTED_SCALAR) >>> Passing tainted expression "hdr.rec_count" to "read_calls", which uses it as an allocation size. 515 if (read_calls(fin, hdr.rec_count)) 516 return 1; 517 break; 518 } 519 } 520 return 0; --=20 Tom --/f3Phiu/qUPmPEwD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPrmhwACgkQFHw5/5Y0 tyzHIQwAmzfHeCngHgtRZkNy9ZbNtzOLDg24lTgYMF8DQM7Bb5uVSAV9ly4mKROl i89+EF2h6x+yt29L0rYRTNf9tD89sBjPDcyATSaVllF8pgl23gFw5gvb1lKZvD/O FNiIPRnpSmzzqpzfg+m370j/LvuLbbNS9VYtsVQ7yZuzP3u4JBuVo5rFtzn9uEFW 3RnEdW/m4lt+KcJ5AfBbCw5pnK6ZzXiibRJd8Cr2EO5J6mPBXTCo3hp1+4jELp9S OVXc0e3j6likG9+WnnMDifibsQwTL+6Jam5c3uWFle4N38E2pnwWZRN3lakcjyiW GLaAkzkbFtGUB8kwn/3akq45sbimJSFoJayefM9o0vdmrNSOq3n1MHdb2qNtjW+q bkGigabQ1IXNnVRR2atlZySdkLNiHnQCI/YlnyUbLlZVvfr9r0usj6w8b02aUFV6 0ow7STHgDmV3SkjyBVU3BxNO7dDJGZz9HBzNFxe4ge83YWeZOmAEwqg4Oc5f5Isz 8S4vrVjc =iLAs -----END PGP SIGNATURE----- --/f3Phiu/qUPmPEwD--