Accepting request 579540 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/579540 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/honggfuzz?expand=0&rev=6
This commit is contained in:
commit
c1f7e7d156
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e1ddbffc3240b2601c7e997d759c6a89ea69fe619bf59d1d9a58f11205934ee4
|
||||
size 11705217
|
3
honggfuzz-1.5.tar.gz
Normal file
3
honggfuzz-1.5.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8e7e6913619b31a8309a551121e6fb33714a6ec8ca907730cd40480c8da7e0d9
|
||||
size 79321550
|
@ -1,43 +0,0 @@
|
||||
From fe2934bd59e7a1dbe58dafcd71bb8383505de092 Mon Sep 17 00:00:00 2001
|
||||
From: Robert Swiecki <robert@swiecki.net>
|
||||
Date: Mon, 4 Sep 2017 15:23:14 +0200
|
||||
Subject: [PATCH] Use different disassbler() prototype from binutils in case of
|
||||
>= 2.29
|
||||
|
||||
---
|
||||
linux/bfd.c | 14 +++++++++++++-
|
||||
1 file changed, 13 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/linux/bfd.c b/linux/bfd.c
|
||||
index bcd247f7..f3e9b0b0 100644
|
||||
--- a/linux/bfd.c
|
||||
+++ b/linux/bfd.c
|
||||
@@ -46,6 +46,14 @@ typedef struct {
|
||||
asymbol **syms;
|
||||
} bfd_t;
|
||||
|
||||
+/*
|
||||
+ * This is probably the only define which was added with binutils 2.29, so we us
|
||||
+ * it, do decide which disassembler() prototype from dis-asm.h to use
|
||||
+ */
|
||||
+#if defined(FOR_EACH_DISASSEMBLER_OPTION)
|
||||
+#define _HF_BFD_GE_2_29
|
||||
+#endif
|
||||
+
|
||||
static pthread_mutex_t arch_bfd_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
static bool arch_bfdInit(pid_t pid, bfd_t * bfdParams)
|
||||
@@ -160,8 +168,12 @@ void arch_bfdDisasm(pid_t pid, uint8_t * mem, size_t size, char *instr)
|
||||
LOG_W("bfd_check_format() failed");
|
||||
return;
|
||||
}
|
||||
-
|
||||
+#if defined(_HF_BFD_GE_2_29)
|
||||
+ disassembler_ftype disassemble =
|
||||
+ disassembler(bfd_get_arch(bfdh), bfd_little_endian(bfdh) ? FALSE : TRUE, 0, NULL);
|
||||
+#else
|
||||
disassembler_ftype disassemble = disassembler(bfdh);
|
||||
+#endif // defined(_HD_BFD_GE_2_29)
|
||||
if (disassemble == NULL) {
|
||||
LOG_W("disassembler() failed");
|
||||
return;
|
@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 23 13:24:12 UTC 2018 - mvetter@suse.com
|
||||
|
||||
- Update to version 1.5:
|
||||
* Persistent fuzzing now works with MacOS-X
|
||||
* Fixed some examples/ to make it work with MacOS-X
|
||||
* Should compile cleanly with newer MacOS-X versions
|
||||
- Changes from version 1.4:
|
||||
* Socketfuzzer by @dobin
|
||||
* TCP fuzzer (HonggFuzzer NetDriver) in libhfnetdriver
|
||||
* Display: changed layout a bit
|
||||
* Better examples/ dir: Apache HTTP, ISC Bind
|
||||
* Added persistent and netdriver signatures
|
||||
* Added missing symbols for newer -fsanitize-coverage (const)
|
||||
* Changed internal structures (global vs run)
|
||||
- Remove honggfuzz-binutils_2.29.patch: contained in release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 09:20:48 UTC 2017 - mpluskal@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package honggfuzz
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,15 +17,13 @@
|
||||
|
||||
|
||||
Name: honggfuzz
|
||||
Version: 1.1
|
||||
Version: 1.5
|
||||
Release: 0
|
||||
Summary: Security-oriented fuzzer with various analysis options
|
||||
License: Apache-2.0
|
||||
Group: Development/Tools/Other
|
||||
Url: https://google.github.io/honggfuzz/
|
||||
Source: https://github.com/google/honggfuzz/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM https://github.com/google/honggfuzz/commit/fe2934bd59e7a1dbe58dafcd71bb8383505de092
|
||||
Patch0: honggfuzz-binutils_2.29.patch
|
||||
BuildRequires: binutils-devel
|
||||
BuildRequires: libunwind-devel
|
||||
BuildRequires: zlib-devel
|
||||
@ -37,7 +35,6 @@ evolutionary, feedback-driven fuzzing based on code coverage
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
|
Loading…
Reference in New Issue
Block a user