|
From: | Paul Eggert |
Subject: | Re: vasnprintf.c: "out_of_memory", -Wanalyzer-free-of-non-heap, -Wanalyzer-malloc-leak |
Date: | Sat, 30 Apr 2022 16:02:28 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 |
On 4/30/22 14:11, Bruno Haible wrote:
This is a false positive as well:
Thanks for checking that. I did a similar check before seeing your email, and found some opportunities for simplifying the code so that these checks could be easier in the future. (With luck it'd also help avoid false positives from lower-quality static checkers, which would save us time in the future.) What do you think of the attached patch?
A bonus is that it shrinks the size of the vasnprintf text by about 7% on Fedora 35 x86-64.
0001-vasnprintf-simplify-cleanup-code.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |