Skip to content

Instantly share code, notes, and snippets.

@xen0bit
Created September 19, 2023 01:40
Show Gist options
  • Save xen0bit/bfdd00680b8b83a25b4aacde8f23eb2a to your computer and use it in GitHub Desktop.
Save xen0bit/bfdd00680b8b83a25b4aacde8f23eb2a to your computer and use it in GitHub Desktop.
libwebp dwebp
FROM ubuntu:rolling
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && apt-get install -y \
gcc \
git \
make \
pkg-config \
libipt-dev \
libunwind8-dev \
binutils-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /honggfuzz
RUN git clone --depth=1 https://github.com/google/honggfuzz.git
WORKDIR /honggfuzz
RUN make && cp /honggfuzz/honggfuzz /bin
WORKDIR /build
RUN git clone https://github.com/webmproject/libwebp.git
WORKDIR /build/libwebp
RUN git checkout v1.3.1
RUN CC=/honggfuzz/hfuzz_cc/hfuzz-gcc CXX=/honggfuzz/hfuzz_cc/hfuzz-g++ make -f makefile.unix examples/dwebp
WORKDIR /fuzz
#1x1px webp
RUN echo "UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAgA0JaQAA3AA/vuUAAA=" | base64 -d > o.webp
WORKDIR /coverage
ENTRYPOINT [ "/bin/bash" ]
#honggfuzz -n`nproc` -i /fuzz -z -- /build/libwebp/examples/dwebp ___FILE___ -o /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment