Re: Question regarding 'Conditional jump or move depends on uninitialised value(s)'

John Reiser <[email protected]> Wed, 19 Jun 2024 17:22:45 -0700
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>
> It seems optimizatin of the code will make
> it indistinquisable from explicit initialization.

So what you want is  -ftrivial-auto-var-init=$POISON
where POISON is something like 0xA5 or 'deaddead'
and memcheck is told the value used for POISON.
The programmer should specify a value that
is highly unlikely to be a legitimate value.