Commit Graph

6 Commits

Author SHA1 Message Date
Peter Wu 4813b64e0a wireshark: fix build by adding ares dependency (#3064)
Since wireshark commit v3.3.0rc0-15-g451a241e50, c-ares became a
required dependency.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19095
2019-11-25 07:05:15 -08:00
Peter Wu f2b4a02601 [wireshark] fix build, simplify build configuration (#1895)
Since Wireshark v2.9.0rc0-2266-g7e88bb5e53, building fuzzing binaries is
better integrated in the Wireshark build system. While that change was
supposed to be backwards compatible, unfortunately the resulting fuzzer
binaries are dynamically linked due to how cmake caches library paths.
The very first cmake invocation must be invoked with -DOSS_FUZZ=ON.

Changes:
- Use ninja for better control of parallel linker jobs.
- Installing files (make install) is no longer needed.
- Avoid setting a long list of cmake options (BUILD_xxx=OFF).
- Remove fortify comment, it does not belong here.
- Remove lemon workaround, it is fixed since v2.9.0rc0-2273-gbb2caa2a9f.
2018-10-22 09:11:59 -07:00
jwzawadzki b948d87d16 [wireshark] fix build issue (#1347) (#1350)
Dario Lombardo removed autotools support in https://code.wireshark.org/review/26969,
convert to cmake build system.
2018-04-22 08:35:07 -07:00
Devin Jeanpierre 330386686d Use apt-get update && apt-get install, per best practices: (#561)
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/

I ran into this because I was getting errors locally, like:

    E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/libdpkg-perl_1.18.4ubuntu1.1_all.deb  404  Not Found [IP: 91.189.88.149 80]

It turns out you get these if you don't update, and the official best practices are to `run apt-get update && apt-get install`. In fact, running _any_ apt-get install command without the apt-get update && before it can result in unfortunate caching artifacts -- see "cache busting". (P.S. thanks to Peng on Freenode for helping me, I'm bad at Ubuntu.)

So:
    sed -re \
        's/RUN apt-get ((-y )?(install|build-dep))/RUN apt-get update \&\& apt-get \1/' -i \
        projects/**/Dockerfile

I also manually fixed the cases that already ran apt-get update in their Dockerfile:
    dlplibs/Dockerfile
    grpc/Dockerfile
    libreoffice/Dockerfile
2017-05-01 23:31:02 -07:00
jwzawadzki 1829a50342 Wireshark: generate fuzzers for: OSPF, BGP, DNS, BOOTP and JSON dissectors. (#533) 2017-04-18 14:05:54 -07:00
jwzawadzki f47d28a582 Initial version of wireshark integration with oss-fuzz. (#532)
In initial version compile two fuzzers: fuzzshark_dissector_ip and fuzzshark_dissector_udp.
2017-04-15 16:22:54 -07:00