forked from google/oss-fuzz
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
POC: Speed up compilation by freezing container during compilation. (g…
…oogle#11940) Instead of rebuilding the entire project every time we want to compile a single fuzz target, a better workflow is to build the project once and somehow compile the target against the already compiled project code. This POC does that by interrupting building in when it detects it is compiling the fuzz target. On detection it does the following: 1. Writes the command to /out/statefile TODO: write the cwd. 2. Commits the current container as "frozen" for use later. TODO: make this changeable. 3. Returns 1 so compilation stops. TODO: It would be better to exit the container. This step may be important to prevent clean up of the environment. Then the frozen container can be used to compile fuzz targets against the project without recompiling the project in its entirety. TODO: 1. Support this in oss-fuzz-gen 2. Install docker command line tool in base-builder (or use sneaky inheritance) because it must be used within the container. 3. Automate the compilation of the new fuzz target
- Loading branch information
1 parent
bd6578c
commit deef8c5
Showing
5 changed files
with
416 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.