Skip to content

Commit

Permalink
tools: corpus: add seed corpus root
Browse files Browse the repository at this point in the history
Add a directory for the infra to build from, actual seed can be added
later.

Signed-off-by: Curtis Malainey <[email protected]>
  • Loading branch information
cujomalainey committed Nov 21, 2024
1 parent ef51d72 commit f571d1c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tools/corpus/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SOF Corpus Directory

====================

The following directory is a special directory containing binary transcripts of
IPC messages from various devices. When OSS-Fuzz runs, it zips these files up
into a output directory to be used as seed material for the fuzzers.

Feel free to add more examples to this directory, more components and state
coverage the better.

## How to generate these files

These files are generated by live dumping the IPC messages, the initial batch
were created by adding a hook to write binary ipc window to the /tmp directory
from the kernel every time a IPC TX occurred. These files were then
concatenated together in order sent. A single file represents a single DSP
lifecycle. If you inspect the data, you will be able to parse out each IPC at
SOF_IPC_MSG_MAX_SIZE byte intervals.


1 change: 1 addition & 0 deletions tools/corpus/sof-ipc3/DELETE_ME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
stub file until real data is added
1 change: 1 addition & 0 deletions tools/corpus/sof-ipc4/DELETE_ME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
stub file until real data is added

0 comments on commit f571d1c

Please sign in to comment.