Fixed the overload library to properly resolve calloc().version_0.0.14
commitd1c1bd4baeb661b12628f30461635d2fbc3885ae
authorstrange <kawk256@gmail.com>
Tue, 30 Mar 2010 22:34:42 +0000 (30 16:34 -0600)
committerstrange <kawk256@gmail.com>
Tue, 30 Mar 2010 22:37:45 +0000 (30 16:37 -0600)
treeabb37b901d772249bfb96372e6448d4fc1ddd374
parent3f96c39faa0c2f9432585569e3fa6926e36cd2e4
Fixed the overload library to properly resolve calloc().

Do note that the solution is rather hack-ish: the offset of malloc() is
calculated in the monitor and put into an environment variable. The overload
library then calculates the address that libc is loaded into, then adds the
monitor-calculated offset onto that address to resolve malloc() . . .

It should work, but it might be Linux-specific. I'm not sure.
monitor/src/CMakeLists.txt
monitor/src/overload/CMakeLists.txt
monitor/src/overload/overload.c
monitor/src/ptrace/Portal.cpp