Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[elfutils] poke dwfl_core_file_attach and other tweaks #12471

Merged
merged 3 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/elfutils/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && \
apt-get install -y pkg-config make autoconf autopoint zlib1g-dev zlib1g-dev:i386 flex gawk bison
RUN git clone --depth 1 git://sourceware.org/git/elfutils.git
RUN git clone --depth 1 https://sourceware.org/git/elfutils.git
WORKDIR elfutils
COPY build.sh *.c *.zip $SRC/
4 changes: 2 additions & 2 deletions projects/elfutils/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#
# $ git clone https://github.com/google/oss-fuzz
# $ cd oss-fuzz/projects/elfutils
# $ git clone git://sourceware.org/git/elfutils.git
# $ git clone https://sourceware.org/git/elfutils.git
# $ ./build.sh
# $ wget -O fuzz-dwfl-core-corpus.zip "https://storage.googleapis.com/elfutils-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/elfutils_fuzz-dwfl-core/public.zip"
# $ unzip -d CORPUS fuzz-dwfl-core-corpus.zip
Expand Down Expand Up @@ -97,7 +97,7 @@ ASAN_OPTIONS=detect_leaks=0 make -j$(nproc) V=1
# it's also built with ASan and UBSan.
git clone https://github.com/madler/zlib
pushd zlib
git checkout v1.2.12
git checkout v1.3.1
if ! ./configure --static; then
cat configure.log
exit 1
Expand Down
2 changes: 2 additions & 0 deletions projects/elfutils/fuzz-dwfl-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
goto cleanup;
if (dwfl_report_end(dwfl, NULL, NULL) != 0)
goto cleanup;
if (dwfl_core_file_attach(dwfl, core) < 0)
goto cleanup;

cleanup:
dwfl_end(dwfl);
Expand Down
2 changes: 1 addition & 1 deletion projects/elfutils/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ homepage: "https://sourceware.org/elfutils/"
language: c++
builds_per_day: 4
primary_contact: "[email protected]"
main_repo: "git://sourceware.org/git/elfutils.git"
main_repo: "https://sourceware.org/git/elfutils.git"
fuzzing_engines:
- libfuzzer
- afl
Expand Down
Loading