diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-02-05 18:44:56 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-02-05 18:44:56 +0000 |
commit | 29aabba0ea759c6a2864ff5631735b67ee38e5e0 (patch) | |
tree | ab466b4dfa7abecb401b2f8039d08af4689306bb /app-forensics/honggfuzz/files | |
parent | d42200bec37eef2a7478d88988ff00addd0a9202 (diff) |
gentoo resync : 05.02.2020
Diffstat (limited to 'app-forensics/honggfuzz/files')
-rw-r--r-- | app-forensics/honggfuzz/files/honggfuzz-2.0-binutils-2.34.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-forensics/honggfuzz/files/honggfuzz-2.0-binutils-2.34.patch b/app-forensics/honggfuzz/files/honggfuzz-2.0-binutils-2.34.patch new file mode 100644 index 000000000000..45da65c1c6d3 --- /dev/null +++ b/app-forensics/honggfuzz/files/honggfuzz-2.0-binutils-2.34.patch @@ -0,0 +1,22 @@ +--- a/linux/bfd.c ++++ b/linux/bfd.c +@@ -122,8 +122,8 @@ void arch_bfdDemangle(funcs_t* funcs, size_t funcCnt) { + + static struct bfd_section* arch_getSectionForPc(bfd* bfdh, uint64_t pc) { + for (struct bfd_section* section = bfdh->sections; section; section = section->next) { +- uintptr_t vma = (uintptr_t)bfd_get_section_vma(bfdh, section); +- uintptr_t sz = (uintptr_t)bfd_get_section_size(section); ++ uintptr_t vma = (uintptr_t)bfd_section_vma(section); ++ uintptr_t sz = (uintptr_t)bfd_section_size(section); + if ((pc > vma) && (pc < (vma + sz))) { + return section; + } +@@ -160,7 +160,7 @@ void arch_bfdResolveSyms(pid_t pid, funcs_t* funcs, size_t num) { + continue; + } + +- long sec_offset = (long)funcs[i].pc - bfd_get_section_vma(bfdParams.bfdh, section); ++ long sec_offset = (long)funcs[i].pc - bfd_section_vma(section); + + if (bfd_find_nearest_line( + bfdParams.bfdh, section, bfdParams.syms, sec_offset, &file, &func, &line) == TRUE) { |