Skip to content

Conversation

@CSharperMantle
Copy link
Contributor

@CSharperMantle CSharperMantle commented Oct 17, 2025

This PR helps avoid potential mismatches in behavior between a startup test and subsequent fuzzing based on REPRL sessions.

After this patch, the startup tests on SpiderMonkey produce the following output:

[Fuzzer] Initialized
[Fuzzer] Recommended timeout: at least 1000ms. Current timeout: 10000ms
[Fuzzer] Runner has non-empty output for empty program! This might indicate that some flags are wrong.
[Fuzzer] Output:
[COV] edge counters initialized. Shared memory: shm_id_230610_0 with 398403 edges

Resolves #534.

try inputPipe.fileHandleForWriting.close()

let environment = ProcessInfo.processInfo.environment.merging(
Dictionary(env, uniquingKeysWith: { _, new in new }),
Copy link
Collaborator

Choose a reason for hiding this comment

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

This shouldn't have to be a Dictionary?

Suggested change
Dictionary(env, uniquingKeysWith: { _, new in new }),
env,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I overlooked https://developer.apple.com/documentation/swift/dictionary/merging(_:uniquingkeyswith:)-9bik6 and thought I had to construct a Dictionary explicitly.

@CSharperMantle CSharperMantle force-pushed the feat-nullarg-validator-env branch from 639922f to d2bf8bf Compare October 20, 2025 10:42
Copy link
Collaborator

@Liedtke Liedtke left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@Liedtke Liedtke merged commit 89168bd into googleprojectzero:main Oct 20, 2025
3 of 4 checks passed
Liedtke pushed a commit that referenced this pull request Oct 20, 2025
* Make REPRL env property a list of tuples of (key, value)
* Pass env vars when running startup tests
chase1k pushed a commit to VRIG-RITSEC/fuzzillai that referenced this pull request Nov 13, 2025
…ectzero#535)

* Make REPRL env property a list of tuples of (key, value)
* Pass env vars when running startup tests
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.

Environment variable SHM_ID is not passed to the engine in startup tests

2 participants