"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libhfuzz/instrument.c" between
honggfuzz-2.4.tar.gz and honggfuzz-2.5.tar.gz

About: honggfuzz is a security oriented, feedback-driven, evolutionary, easy-to-use fuzzer with powerful analysis options.

instrument.c  (honggfuzz-2.4):instrument.c  (honggfuzz-2.5)
skipping to change at line 92 skipping to change at line 92
static void initializeLibcFunctions(void) { static void initializeLibcFunctions(void) {
libc_memcmp = (int (*)(const void* s1, const void* s2, size_t n))getsym("mem cmp"); libc_memcmp = (int (*)(const void* s1, const void* s2, size_t n))getsym("mem cmp");
if (!libc_memcmp) { if (!libc_memcmp) {
LOG_W("dlsym(memcmp) failed: %s", dlerror()); LOG_W("dlsym(memcmp) failed: %s", dlerror());
libc_memcmp = _memcmp; libc_memcmp = _memcmp;
} }
LOG_D("libc_memcmp=%p, (_memcmp=%p, memcmp=%p)", libc_memcmp, _memcmp, memcm p); LOG_D("libc_memcmp=%p, (_memcmp=%p, memcmp=%p)", libc_memcmp, _memcmp, memcm p);
} }
static void* initialzeTryMapHugeTLB(int fd, size_t sz) { static void* initialzeTryMapHugeTLB(int fd, size_t sz) {
int mflags = files_getTmpMapFlags(MAP_SHARED, /* nocore= */ true); int initflags = MAP_SHARED;
#if defined(MAP_ALIGNED_SUPER)
initflags |= MAP_ALIGNED_SUPER;
#endif
int mflags = files_getTmpMapFlags(initflags, /* nocore= */ true);
void* ret = mmap(NULL, sz, PROT_READ | PROT_WRITE, mflags, fd, 0); void* ret = mmap(NULL, sz, PROT_READ | PROT_WRITE, mflags, fd, 0);
#if defined(MADV_HUGEPAGE) #if defined(MADV_HUGEPAGE)
if (madvise(ret, sz, MADV_HUGEPAGE) == -1) { if (madvise(ret, sz, MADV_HUGEPAGE) == -1) {
PLOG_W("madvise(addr=%p, sz=%zu, MADV_HUGEPAGE) failed", ret, sz); PLOG_W("madvise(addr=%p, sz=%zu, MADV_HUGEPAGE) failed", ret, sz);
} }
#endif /* defined(MADV_HUGEPAGE) */ #endif /* defined(MADV_HUGEPAGE) */
return ret; return ret;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)