Commit Graph

24 Commits

Author SHA1 Message Date
b92paul 06efe97ba0
[MSAN] Enable memory sanitizer build (#8094)
* CRAS: Use CARGO_BUILD_TARGET="x86_64-unknown-linux-gnu"

In oss-fuzz, to build with MemorySanitizer, Rust part needs to use

```
CARGO_BUILD_TARGET="x86_64-unknown-linux-gnu"
```

to resolve libc `MemorySanitizer: use-of-uninitialized-value` error
according to https://github.com/google/oss-fuzz/issues/3469.

* CRAS: Add new member to auto_ccs

Co-authored-by: paulhsia <paulhsia@google.com>
2022-07-28 12:18:18 +01:00
b92paul d876e1aead
cras: Support -DHAVE_FUZZER (#8088)
To fix https://crbug.com/oss-fuzz/49371,
passing HAVE_FUZZER flag during library build stage.

And by pass DBus usage in https://crrev.com/c/3787999.

BUG=oss-fuzz:49371

Co-authored-by: paulhsia <paulhsia@google.com>
2022-07-27 14:29:57 +01:00
b92paul 274904fdc4
cras: Change to out-of-tree build (#8069)
When running fuzzers with local source tree,

```
python3 infra/helper.py build_fuzzers --sanitizer address cras
<source_tree>
```

will generate lots of root permission artifacts to local source tree.

Change to out-of-tree build, then

```
python3 infra/helper.py build_fuzzers --clean --sanitizer address cras
<source_tree>
```

could always start from a clean build.

Co-authored-by: paulhsia <paulhsia@google.com>
2022-07-24 17:37:07 -04:00
Michelle Wang b3f34b0ba8
Cras fuzz (#8047)
CRAS: Build cras_fl_media_fuzzer

Modify cras/build.sh to compile cras_fl_media_fuzzer.
2022-07-21 08:57:45 -04:00
Li-Yu Yu c462cad1be
cras: Disable featured in configure (#7456)
featured [1] is a ChromeOS specific daemon that's not available in gcr.io/oss-fuzz-base/base-builder-rust
Disable it to fix the build [2].

[1] https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/featured/
[2] https://crbug.com/oss-fuzz/45744
2022-03-28 18:54:10 +00:00
b0w1d 037845574a
cras: Update project metadata (#7398)
Update auto_ccs to the latest
2022-03-23 12:43:36 -04:00
Terry Cheong 16c9c2ded6
cras: Update project metadata (#7276)
Update auto_ccs to the latest
2022-02-16 11:23:52 +00:00
jonathanmetzman 5ef1f7b588
[language builders] Get rid of base-builder-new (#6361)
Build all C/C++ projects in an image without rust, java,
atheris (python), or go.
2021-09-01 13:36:17 -07:00
b92paul b177650de0
cras: Update project metadata (#6153)
Changes:
- Change primary_contact
- Update auto_ccs to the latest
- Increase builds per day to 2
2021-08-03 11:35:03 +01:00
b92paul 1c145deedc
cras: Add rust source soft links for coverage build (#5670)
Fix build failures:
```
error: /out/src/rate_estimator.rs: No such file or directory
warning: The file '/src/rate_estimator.rs' isn't covered.
error: /out/src/rate_estimator_bindings.rs: No such file or directory
warning: The file '/src/rate_estimator_bindings.rs' isn't covered.
```

Bug: crbug/oss-fuzz/31910
Test: {build_fuzzer, coverage} commands in infra/helper.py for cras
2021-04-26 17:56:24 +01:00
b92paul 3f10d115fd
[CRAS] Fix build error (#5634)
Install vim to get `xxd` for source generation.

BUG=oss-fuzz:33362
2021-04-19 10:16:40 +01: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
b92paul 6ffa47eb77
[CRAS] Fix build error and build new fuzzer (#4306)
* [CRAS] Fix build error and build new fuzzer

- Fix build error by installing 1.8.x gtest and using `make install` to
  install gtest pc file for pkg-config
- Build and add new fuzzer `cras_hfp_slc`

BUG=oss-fuzz:24744

* fix the copyright

* fix the copyright

* Update Dockerfile

Co-authored-by: Max Moroz <mmoroz@chromium.org>
2020-08-12 13:42:51 -07:00
devtty1er d561c49ae5
Update Dockerfiles (#4070)
* Use LABEL in place of MAINTAINER

* Remove LABEL maintainer from Dockerfiles
2020-07-06 13:18:23 -07:00
Abhishek Arya e360d35bda
Fix cras build failure, use default rust nightly. 2020-05-21 17:00:26 -07:00
Max Moroz 71f4914c45
[presubmit] Enforce language attribute in project.yaml to be always set. (#3477)
* [presubmit] Enforce language attribute in projectt.yaml to be always set.

* Update documentation, better presubmit check, new project template.

* add docstring to templates.py

* Add example values in the project.yaml template and remove python value for now

* Add "project: c++" to 256 projects

* format

* Add labels and selective_unpack sections to the presubmit check

* fix incorrect auto_ccs format in three projects

* fix nss emails after rebase
2020-03-10 11:08:01 -07:00
Fletcher Woodruff 6869eb232e [cras] fix build (#3055)
We now use some rust code in CRAS, fix the fuzzer build so that code is
compiled as well.
2019-11-22 13:17:37 -08:00
jonathanmetzman 3049c50d48
Migrate projects using -lFuzzingEngine to $LIB_FUZZING_ENGINE (#2325)
Migrate from -lFuzzingEngine to $LIB_FUZZING_ENGINE where possible and not causing breakage
2019-05-01 11:09:55 -04:00
CY Chiang 22f5e3e0b8 [cras] Modify accounts to auto-cc (#2360)
Modify accounts for CRAS team member changes.
2019-05-01 07:31:13 -07:00
Abhishek Arya 92907b084b
Update build.sh 2018-07-02 21:06:10 -07:00
Dylan Reid a9f74650ff [cras] Update configure option (#1060)
The configure options was changed to lower case. Fix the build script to
match the new option.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
2018-01-09 11:33:42 -08:00
CY Chiang 57eaa49f91 [cras] Add more accounts to auto_ccs (#947)
Add more accounts to auto_ccs so team member working on
CRAS can debug test failures.
2017-11-03 08:36:04 -07:00
Dylan Reid 65bc1bbd01 [cras] Add an rclient corpus (#881)
Pull the corpus that exists in the cras repository and use it.
This corpus was generated by dumping incoming messages while going
through audio use cases on a chromebook.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
2017-10-10 07:58:50 -07:00
Dylan Reid a86b333d8e Add cras fuzzer (#880)
cras is the audio server that runs on ChromeOS.

The first cras fuzzer tests the client's message interface.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
2017-10-09 16:17:21 -07:00