Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle libFuzzer modes that spawn subprocesses #271

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

kyakdan
Copy link
Member

@kyakdan kyakdan commented Jan 12, 2023

When we run in a libFuzzer mode that spawns subprocesses, we create wrapper script that can be used as libFuzzer's argv[0]. In the fork mode, the main libFuzzer process uses argv[0] to spawn further processes that perform the actual fuzzing.

@kyakdan kyakdan force-pushed the FUZZ-507-handle-libfuzzer-modes-with-subprocesses branch 14 times, most recently from 826332e to f84db40 Compare January 19, 2023 09:56
@kyakdan kyakdan marked this pull request as ready for review January 19, 2023 09:56
@kyakdan kyakdan requested review from bertschneider and a team January 19, 2023 09:57
@kyakdan kyakdan changed the title core: handle libFuzzer modes that spawn subprocesses Handle libFuzzer modes that spawn subprocesses Jan 19, 2023
Copy link
Contributor

@bertschneider bertschneider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition! Just some minor remarks.

packages/core/core.ts Show resolved Hide resolved
packages/core/core.ts Outdated Show resolved Hide resolved
packages/core/core.ts Outdated Show resolved Hide resolved
packages/core/core.ts Show resolved Hide resolved
packages/core/core.ts Show resolved Hide resolved
tests/fork_mode/package.json Outdated Show resolved Hide resolved
When we run in a libFuzzer mode that spawns subprocesses, we create
wrapper script that can be used as libFuzzer's argv[0]. In the fork
mode, the main libFuzzer process uses argv[0] to spawn further
processes that perform the actual fuzzing.
@kyakdan kyakdan force-pushed the FUZZ-507-handle-libfuzzer-modes-with-subprocesses branch from f84db40 to f095eb1 Compare January 21, 2023 05:09
@kyakdan kyakdan merged commit e3cf84e into main Jan 23, 2023
@kyakdan kyakdan deleted the FUZZ-507-handle-libfuzzer-modes-with-subprocesses branch January 23, 2023 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants