Skip to content

Conversation

@spencerschrock
Copy link
Member

@spencerschrock spencerschrock commented Feb 16, 2024

What kind of change does this PR introduce?

refactor

What is the current behavior?

Each fuzzing tool has its own probe

What is the new behavior (if this is a feature change)?**

There's only one fuzzing probe, and a "tool" value specifies which tool is used.

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Related to #3824

Special notes for your reviewer

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

The Fuzzing probes have been combined into a single probe. The various tools are specified by the "tool" value.

Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
@spencerschrock
Copy link
Member Author

Still have a couple TODOs, especially around remediation and supported tools so still a draft.

I know there has been discussion about continuous fuzzing in the past being different than the fuzzing libraries. While this PR combines everything into one probe, I don't think this limits the introduction of a continuous fuzzing probe in the future.

For example:
fuzzed is just a simple "is this fuzzed"
and maybe we add fuzzedContinuously later, and OSS-Fuzz would be reported by both.

@codecov
Copy link

codecov bot commented Feb 16, 2024

Codecov Report

Merging #3877 (b5b3547) into main (e1f5483) will decrease coverage by 6.61%.
The diff coverage is 80.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3877      +/-   ##
==========================================
- Coverage   75.07%   68.46%   -6.61%     
==========================================
  Files         234      222      -12     
  Lines       15881    15807      -74     
==========================================
- Hits        11922    10823    -1099     
- Misses       3196     4289    +1093     
+ Partials      763      695      -68     

Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
@spencerschrock spencerschrock marked this pull request as ready for review February 26, 2024 21:29
@spencerschrock spencerschrock requested a review from a team as a code owner February 26, 2024 21:29
@spencerschrock spencerschrock requested review from justaugustus and raghavkaul and removed request for a team February 26, 2024 21:29
Signed-off-by: Spencer Schrock <sschrock@google.com>
@spencerschrock
Copy link
Member Author

/scdiff generate Fuzzing

@github-actions
Copy link

github-actions bot commented Mar 6, 2024

@spencerschrock spencerschrock enabled auto-merge (squash) March 11, 2024 02:42
@spencerschrock spencerschrock merged commit f1e703f into ossf:main Mar 11, 2024
@spencerschrock spencerschrock deleted the fuzzing-combine-probes branch March 11, 2024 02:50
fhoeborn pushed a commit to fhoeborn/scorecard that referenced this pull request Apr 1, 2024
* single fuzz probe boilerplate

Signed-off-by: Spencer Schrock <sschrock@google.com>

* initial implementation

Signed-off-by: Spencer Schrock <sschrock@google.com>

* connect fuzzing probe to eval code

Signed-off-by: Spencer Schrock <sschrock@google.com>

* include fuzzer name as tool

Signed-off-by: Spencer Schrock <sschrock@google.com>

* connect to probes flag

Signed-off-by: Spencer Schrock <sschrock@google.com>

* remove old probes from list

Signed-off-by: Spencer Schrock <sschrock@google.com>

* remove old probes

Signed-off-by: Spencer Schrock <sschrock@google.com>

* fix failing test

Signed-off-by: Spencer Schrock <sschrock@google.com>

* add tool value to test

Signed-off-by: Spencer Schrock <sschrock@google.com>

* add fuzz tool helper

Signed-off-by: Spencer Schrock <sschrock@google.com>

* specify supported tools

Signed-off-by: Spencer Schrock <sschrock@google.com>

* update e2e test

Signed-off-by: Spencer Schrock <sschrock@google.com>

* check for no raw data

Signed-off-by: Spencer Schrock <sschrock@google.com>

* add basic tests

Signed-off-by: Spencer Schrock <sschrock@google.com>

* add test to ensure fuzzer location is propagated

Signed-off-by: Spencer Schrock <sschrock@google.com>

* expand detailed tests to include other info like tool value

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants