Skip to content

Best effort to support format and regex#58

Open
NiklasEi wants to merge 1 commit intoostrowr:mainfrom
oicana:format-and-regex-support
Open

Best effort to support format and regex#58
NiklasEi wants to merge 1 commit intoostrowr:mainfrom
oicana:format-and-regex-support

Conversation

@NiklasEi
Copy link

This is a best effort attempt at supporting format and regex for fuzzing (this was blocking my use-case).

For regex, we walk fancy_regex::Expr AST and fall back on regex-syntax HIR for character classes.
For format I use the fake crate where possible.

Implementing those two removed a couple of whitelisted test failures.

Copy link
Author

@NiklasEi NiklasEi left a comment

Choose a reason for hiding this comment

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

Most of the changes outside of the two new files are due to the version bump of rand.

[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
getrandom_04 = { package = "getrandom", version = "0.4", features = ["wasm_js"] }
getrandom_02 = { package = "getrandom", version = "0.2", features = ["js"] }
Copy link
Author

Choose a reason for hiding this comment

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

I couldn't get rid of this version as transitive dependency and the WASM project doesn't build without the js feature.

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