Hi all,
Recently I am trying to understand the mechanism of ptrcheck, which can detect
the incorrect heap reference. There is one statements in manual, "Ptrcheck
keeps
track of which heap block (if any) it was derived from". I thought that it
means
every pointer has an associated struct (or something like that) to record such
information. Yet I failed to find such struct. So I couldn't understand the
implementation of ptrcheck's heap instrumentation.
Can anyone explain the implementation for me? Or tells me how ptrcheck can
store
the association between the pointer and the heap block.
Any kind explanation is appreciated! Thank you in advance!
All the best,
Xuefeng Dai
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users