(Note no REDIR of memcpy.  Alas.)
> sizeof(mvk_lruc_kv_t)=152, 0x1002772f0, 0x100277388, 0x100277420, 0x1002770e0
> at index 0
> end at index 0
> at index 1
> ==57528== Invalid read of size 8
> ==57528==    at 0x7FFFFFE00BAC: ???
> ==57528==    by 0x100000E4D: __inline_memcpy_chk (in ./check)
> ==57528==    by 0x100000DCF: main (in ./check)
> ==57528==  Address 0x1002772a8 is 0 bytes after a block of size 456 alloc'd
> ==57528==    at 0x100010679: malloc (vg_replace_malloc.c:266)
> ==57528==    by 0x100000CC5: main (in ./check)

The compiler has decided to generate inline code for memcpy.
This is hard for memcheck to recognize as memcpy.
What is the code?  Start with this, then adjust as appropriate:
   $ gdb ./check
   (gdb) x/15i 0x100000E4D - 0x18

-- 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to