Skip to content

[internal/LibFuzzer] Add option to set cwd to BUILD_DIR based on environment#5260

Open
notvictorl wants to merge 1 commit intogoogle:masterfrom
notvictorl:liuvic/cwd
Open

[internal/LibFuzzer] Add option to set cwd to BUILD_DIR based on environment#5260
notvictorl wants to merge 1 commit intogoogle:masterfrom
notvictorl:liuvic/cwd

Conversation

@notvictorl
Copy link
Copy Markdown

@notvictorl notvictorl commented Apr 28, 2026

  • Add optional cwd argument to LibFuzzerRunner class which passes to parent ProcessRunner class which will runsubprocess.Popen with the cwd argument.
  • When a LibFuzzerRunner is requested with get_runner() the cwd is set to BUILD_DIR if FUZZ_TARGET_CWD_IS_BUILD_DIR is true

@notvictorl notvictorl requested a review from a team as a code owner April 28, 2026 22:14
@notvictorl notvictorl marked this pull request as draft April 28, 2026 22:17
@notvictorl notvictorl marked this pull request as ready for review April 28, 2026 22:17
@notvictorl notvictorl changed the title [internal/LibFuzzer] Add option to set cwd based on environment [internal/LibFuzzer] Add option to set cwd to BUILD_DIR based on environment Apr 29, 2026
…ronment

Add optional cwd argument to LibFuzzerRunner class which passes to
parent ProcessRunner class to subprocess.Popen with cwd argument.
When a LibFuzzerRunner is requested with get_runner() the cwd can be set
to BUILD_DIR using FUZZ_TARGET_CWD_IS_BUILD_DIR boolean env var.
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.

1 participant