Commit Graph

34 Commits

Author SHA1 Message Date
Catena cyber 3d7db74ff4
suricata: fix coverage build by using right rustc (#10042)
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=57763

The `compile` script was not using the right rustc toolchain for source
copy for coverage report
cf rustch=`rustc --version --verbose | grep commit-hash | cut -d' ' -f2`
in compile
2023-04-10 03:22:26 -07:00
Catena cyber bf6ebb8d0a
Suricata rust clang16 (#10019)
Meant to fix
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=57490&q=label%3AProj-suricata

Cf https://github.com/rust-lang/rust/issues/107149

When will oss-fuzz use clang 16 for C ?
2023-04-04 02:13:55 -07:00
jonathanmetzman 2e6c7fac42
Opt-out of centipede in projects that don't support it (#9300)
Related: https://github.com/google/oss-fuzz/issues/9299
2023-02-08 11:28:45 -05:00
Catena cyber 05c9ac23d5
suricata: fix rust+C MSAN build (#9478)
Rust MSAN produces false positives when C clang version is not up to the
latest version.
See https://github.com/rust-lang/rust/issues/107149

Will fix
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=55239&q=label%3AProj-suricata
and such

Should the fix be generic for other projects ?
2023-01-21 23:00:18 +01:00
Catena cyber abd261f68c
suricata: good targets naming for version 6 (#9477)
The protocol needs to be the last item for fuzz_applayerparserparse
2023-01-21 22:55:06 +01:00
Catena cyber d5f62adaae
suricata: do not run MSAN for branch 6 (#9412)
Follows #9391 to fix FPs
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=55027
2023-01-12 12:13:48 -08:00
Catena cyber 709de1bea6
suricata: fuzz branch master6 (#9391)
As is done for openssl for instance
cc @victorjulien
2023-01-10 11:15:26 -05:00
Catena cyber fa0e49f4b4
suricata: avoid backslashes in dictionary (#9175)
I hope it can fix
https://github.com/OISF/suricata/actions/runs/3651897995/jobs/6169653264
2022-12-10 03:37:25 -08:00
Catena cyber d17cd053ea
suricata: build with memory sanitizer (#8614)
with zlib compiled with MSAN

Should fix #8574 cc @jonathanmetzman
2022-09-28 10:53:50 +00:00
jonathanmetzman 08e3cd0175
Update project.yaml 2022-09-25 15:27:03 -04:00
jonathanmetzman 60d8521290
Reenable MSAN for some more projects (#8523)
Co-authored-by: Dongge Liu <donggeliu@google.com>
2022-09-19 01:43:22 +00:00
Catena cyber 7aca78c9da
suricata: enables rust debug assertions (#7197) 2022-01-28 16:09:06 +00:00
Catena cyber 968b2c73a8
suricata: uses better dictionaries (#6990) 2021-12-09 09:26:39 -08:00
Catena cyber 2881c2e370
suricata: uses pcre2 release from github (#6787) 2021-11-06 21:39:13 +00:00
Catena cyber b61b1575a1
Suricata sancov (#6555)
* Improves suricata corpus for one target

* suricata: use now sancov-module

* Better rust flags for suricata
2021-10-06 09:36:41 -04:00
Catena cyber 5f9801853d
suricata: default rules in out directory (#6540)
* suricata: default rules in out directory

to be used as config by a dedicated target

* Adding a corpus and a dictionary to the next suricata fuzz target
2021-09-29 19:53:27 +01:00
Catena cyber 5c386a4858
Fix for rust and swift coverages (#6517)
* coverage: introduces llvm-cov-rel

Cf https://github.com/google/oss-fuzz/issues/6268

Latest clang-14 and clang-13 used by rust or swift have a slightly
different profraw file format

llvm-cov-rel is tool that will update the profraw file produced
by clang-13 to one readable by clang-14 llvm-cov tools

* Suricata as a rust project

* rust coverage: remaps every rust subdirectory in fuzz

So that projects not using default fuzz_targets subdir
get the good remap, and hence the good coverage report
2021-09-27 11:11:36 -04:00
Catena cyber 3ae0d9fe14
Fixes ecc-diff-fuzzer with new base-builder (#6383)
* Fixes ecc-diff-fuzzer with new base-builder

Needing both rust and golang

* Move suricata to base-builder-rust

As it uses both C and rust
2021-09-02 12:06:47 -07:00
jonathanmetzman 390c200c1e
[Ubuntu upgrade] Disable MSAN in projects that will have false positives. (#6303)
Do this based mostly on instrumented_libraries and more tests.

Related: #6180
2021-08-25 22:14:20 -07:00
Catena cyber db899783b4
Suricata with pcre2 (#5606)
* Builds pcre2 dependency for Suricata

* Update Dockerfile

Co-authored-by: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>
2021-04-13 09:27:20 -07:00
Catena cyber 026fa7a364
Suricata more targets (#5596)
* Adds per-protocol targets to suricata

* fixup msan
2021-04-10 10:47:27 +01:00
Catena cyber e45a0c33f2
Suricata pcap-aware target (#5528)
* Adds structure-aware target for suricata

* Remove rustc wrapper for suricata

now that https://github.com/rust-lang/rust/issues/82144
got fixed

* Remove suricata rust workarounds for coverage

Now that https://github.com/rust-lang/rust/issues/82144
got fixed
2021-03-29 08:51:08 -07:00
Catena cyber 0ee8d5ba7b
[suricata] Add pcre2 as dependency (#5484) 2021-03-23 13:14:55 -07:00
Catena cyber 9ba8907637
Use more RUSTFLAGS for Suricata (#5352)
* Use more RUSTFLAGS for Suricata

Taken from libra and cargo fuzz

* rustflags only for asan
2021-03-10 13:28:48 -08:00
Catena cyber c41e46ffc8
Rust coverage report (for Suricata) (#4697)
* Rust coverage test

* Workaround to get rust coverage for Suricata
2021-03-08 07:05:35 -08:00
Oliver Chang 84faf55729
Populate a bunch of main_repo values. (#4815)
Also enforce this for future integrations.
2020-12-10 09:49:27 +11:00
Catena cyber b28d30ef3b
Compatible build for Suricata with CIFuzz (#4606) 2020-11-05 15:26:34 -08:00
Catena cyber 24e1b863eb
Adds one dictionary for suricata (#4603) 2020-11-05 06:19:17 -08:00
Catena cyber f9f99a9604
Enables MSAN for Suricata (#4455)
* Enables MSAN for Suricata

* Move rustup std lib download to base-builder
2020-09-30 07:04:22 -07:00
Catena cyber 84c9e6b503
Makes suricata work with rust sanitizers (#3897) 2020-05-28 08:27:56 -07:00
Catena cyber 9378750979
Builds suricata with configure script from upstream repo (#3642)
* Builds suricata with configure script from upstream repo

* Improves suricata corpus
2020-04-14 07:35:49 -07:00
Catena cyber 07322d0b31
Adds more asserts to project suricata build (#3594) 2020-04-10 07:36:07 -07:00
Catena cyber a171716149
Adds people to suricta project (#3552) 2020-03-28 14:14:27 -07:00
Catena cyber 522e7dc734
[suricata] Adds project suricata (#2533)
* Adds project suricata

* Updates lz4 to latest version

* remove sanitizers section -- harmless change to trigger Travis

* add language attribute

Co-authored-by: Max Moroz <mmoroz@chromium.org>
2020-03-27 00:33:24 -07:00