I've narrowed down the struct member offset error that Valgrind seems to be 
making.  Uninitialised value errors are being reported for two float members 
with offsets of 36 & 48 bytes into the 72 byte DrawState struct.   Using memset 
to clear just 4 bytes at offset 104 in the ListDrawState causes the error for 
the member at offset 36 to go away.

So before adding the memset the memory at offset 104 is in fact uninitialized.  
The problem is that the actual initialized member used is 68 bytes before that 
at offset 36.


-Karl







_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to