bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Valgrind is complaining unitialized values in freea (malloca.c:135)


From: Bruno Haible
Subject: Re: Valgrind is complaining unitialized values in freea (malloca.c:135)
Date: Tue, 22 Aug 2017 18:39:10 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-91-generic; KDE/5.18.0; x86_64; ; )

Hi,

Marc Nieper-Wißkirchen wrote:
> In freea in malloca.c, a possibly uninitialized indicator word is used for
> a comparison so that Valgrind reports: "Conditional jump or move depends on
> uninitialised value(s)".
> 
> Valgrind is not smart enough to understand the logic in freea.
> 
> It would be nice if the warning could be silenced

It can be silenced: The Gnulib 'malloca' module comes with a file
'malloca.valgrind'. Use a valgrind command-line option such as

  --suppressions=$(srcdir)/gnulib-lib/malloca.valgrind

You need to adjust the path to the file, to match the directory structure of
your package.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]