From owner-freebsd-pkg@FreeBSD.ORG Fri Jun 12 12:39:47 2015 Return-Path: Delivered-To: freebsd-pkg@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E0E2BA3F for ; Fri, 12 Jun 2015 12:39:46 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 863951959 for ; Fri, 12 Jun 2015 12:39:46 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local ([199.119.128.114]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t5CCdV30065265 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 12 Jun 2015 13:39:33 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t5CCdV30065265 Authentication-Results: smtp.infracaninophile.co.uk/t5CCdV30065265; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host [199.119.128.114] claimed to be liminal.local Message-ID: <557AD2E0.8030303@FreeBSD.org> Date: Fri, 12 Jun 2015 08:38:56 -0400 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-pkg@freebsd.org Subject: Re: Problems found by infer References: <557A5309.40304@highsecure.ru> In-Reply-To: <557A5309.40304@highsecure.ru> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="G0ehWd0g9d9jFxxa3CfLWd7KvqiWw3QX5" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2015 12:39:47 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --G0ehWd0g9d9jFxxa3CfLWd7KvqiWw3QX5 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 11/06/2015 23:33, Vsevolod Stakhov wrote: > libpkg/pkg_printf.c:2883: error: MEMORY_LEAK > memory dynamically allocated by call to sbuf_new() at line 2880, > column 41 is not reachable after line 2883, column 3 >=20 > libpkg/pkg_printf.c:2928: error: MEMORY_LEAK > memory dynamically allocated by call to sbuf_new() at line 2925, > column 41 is not reachable after line 2928, column 3 >=20 > libpkg/pkg_printf.c:2977: error: MEMORY_LEAK > memory dynamically allocated by call to sbuf_new() at line 2974, > column 41 is not reachable after line 2977, column 3 >=20 > libpkg/pkg_printf.c:3031: error: MEMORY_LEAK > memory dynamically allocated by call to sbuf_new() at line 3028, > column 41 is not reachable after line 3031, column 3 >=20 > libpkg/pkg_printf.c:3083: error: MEMORY_LEAK > memory dynamically allocated by call to sbuf_new() at line 3080, > column 41 is not reachable after line 3083, column 3 These seem to be mostly a stylistic thing caused by this sort of code pattern: ptr =3D malloc(size); ptr =3D do_something(ptr, arg1, arg2); where 'do_something()' will either return the ptr unchanged or pass it to free() and return NULL. Dunno if there's a way to tell infer that's how those functions behave. Cheers, Matthew --G0ehWd0g9d9jFxxa3CfLWd7KvqiWw3QX5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iQJ8BAEBCgBmBQJVetLzXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATytYQAKO/V+ctnmqzjNq4HxL8bJ9v jnEZxDiz01JE7ACgkQafGWryie+2l30Cm1DQVkyz7yz4IEjMkR69o73egub7F/gh BmX5Y28D8LDQOz6exSQ3HudGF+xL9ZyYpz/TchKR/UeHYtE1mPlPjGXEe0wY6GDT qIv3l8uZtrwYSM6i27H4mAoxb5ePtwSBwmVjLLbanjl6Eaj60EjNgasZzc1VPA2g kcTI17X40ySReFVz0qGofz5tdfUr+yZMksIO/i2mEqgteDmwRqUfS8yIptpZ1WxV F3EdwM9v2tlnSEFZIPwuqOt2GmovBT6OweIrTWvU7I8DarMjShhGjnW932xZZML3 fOmsJCEqc/DWr+S8LECeZefGU0bwwJ7uxPkpFL2wUBMtmhyU4SxpJISEV0zGwg28 LtkJaJ6Gmjr60lJ7aDDhan3g3ZmDdLOx6xNUzkhxDxQy2hcaP6lg9AWZMtRfzFWy c30h0vHgnn4INi/9sOf1rR6+Fi9C5NOBQzkeSXlUgF5cV5t1yiY5WYTCWw2/TeQ3 AJ6wBeW0jmiqoXSdIvMu8pNgx56an4mPVIYJLrjh+s/hwVBZD7mo7mJgjxcXWr9V AoFZFBudWtpRq3/2eAN4lwaOcGOtvDmPFI/fAFaJeOquR9VuF0BZ4tk+KBMyCtHj ifyojM+p5ErUKbrgisdi =Gy96 -----END PGP SIGNATURE----- --G0ehWd0g9d9jFxxa3CfLWd7KvqiWw3QX5--