|
From: Nicholas N. <nj...@cs...> - 2005-05-19 13:52:38
|
On Thu, 19 May 2005, Duncan Sands wrote: >>> How do you know how big the code is? >> >> what code? [unclear what you're referring to] > > The code you're taking the CRC of. For example, in the > case of a trampoline, you have a pointer to a 10 byte long > instruction sequence on the stack. You want to calculate > a CRC of these 10 bytes and store them somewhere. How do > you know it is 10 bytes long? Or were you planning to do > a CRC of some fixed length that seems big enough to cover > most cases? The first time Valgrind translates the sequence, it discovers how long it is. Then, each time that sequence is due to run, Valgrind can check that many bytes. Does that make sense? N |