On Thursday, June 30, 2011, Szabolcs Nagy wrote:
> in a custom allocator like
> 
> int *alloczero() {
>     int *p = malloc(sizeof *p);
> 
>     if (*p)
>         *p = 0;
>     return p;
> }
> 
> valgrind reports 'conditional jump..'
> at line 'if (*p)', which is correct
> and easy to suppress
> 
> but later whereever i read *p i get
> '..uninitialised' value errors
> eventhough it's clearly provably 0

Really?  Can you send a complete test program that demonstrates this?

J

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to