Skip to content

Conversation

@edwin0cheng
Copy link
Contributor

@edwin0cheng edwin0cheng commented Jan 1, 2021

This PR fixed a bug from semver-parser and pest_derive crates which generate a very deep syntax tree such that serde reject to de-serialize. To fix this bug, we disabled recursion limit in serde (by calling Deserializer::disable_recursion_limit)

I have a feeling that we still need some way to protect against bad proc-macro generating huge syntax node, but I have no idea right now.

r? @jonas-schievink

Fixes #7103

@jonas-schievink
Copy link
Contributor

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 1, 2021

@bors bors bot merged commit 51d29fe into rust-lang:master Jan 1, 2021
@matklad
Copy link
Contributor

matklad commented Jan 1, 2021

Should we do anything about thread's stack size here?

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.

Proc macro server crashed after add sqlx as depedency

3 participants