|
From: Paul F. <pa...@fr...> - 2007-06-13 16:43:15
|
Quoting Nicholas Nethercote <nj...@cs...>:
> On Wed, 13 Jun 2007, Paul Floyd wrote:
>
> > When I added
> >
> > VALGRIND_PRINTF("min %p %g %g", &min, min, _UNDEF);
> >
> > just before the supposed error site,
> >
> > a) the error went away
> > b) I didn't get any "%g" output (perhaps this is normal?)
>
> I don't know what the %g is supposed to do, but Valgrind's internal printf
> doesn't handle floats or doubles, and VALGRIND_PRINTF will also not handle
> arguments larger than word-size.
>
> What is _UNDEF? Could it be undefined?
Hi
I looked at the source a bit, and I saw that vprintf was being called, so I
assumed that it was using the C std lib version. %g should be for
floats/doubles, using an exponent for large/small values.
_UNDEF is defined, and is used as a 'magic number' to indicate an undefined
state.
Still, this looks like a false positive.
A+
Paul
|