baiduhook
baiduhook copied to clipboard
Automatically exported from code.google.com/p/baiduhook
I make on gcc 4.8.5 : there is errors: if g++ -DHAVE_CONFIG_H -I. -I. -I./build-aux -I./include -fPIC -MT AsmHelper.o -MD -MP -MF ".deps/AsmHelper.Tpo" -c -o AsmHelper.o `test -f 'src/AsmHelper.cpp' ||...
``` int HookImpl::AttachFuncLib(const BinaryFile::Symbol &symbol, void *hook_func, void **pold_func) Line 42malloc的内存,如果在Line 48 56 61条件判断失败跳转的话,都可能产生内存泄漏 ``` Original issue reported on code.google.com by `[email protected]` on 29 Sep 2013 at 6:26
``` $ valgrind --leak-check=full ./test_class [/home/google/bhook-1.0.0/test/unittest/class][16:47:01] ==17210== Memcheck, a memory error detector ==17210== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==17210== Using Valgrind-3.8.1 and LibVEX; rerun...
会产生core
``` 基于 gcc4.8, gtest1.6测试会产生core $ ./test_attach [/home/google/bhook-1.0.0/test/unittest/simple] [==========] Running 2 tests from 1 test case. [----------] Global test environment set-up. [----------] 2 tests from MyLib [ RUN ] MyLib.case1 test_attach.cpp:26:...
``` # ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for g++......