Skip to content

Avoid overflowing the stack in consume_until_end_of_block. #111

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

Merged
merged 4 commits into from
Dec 15, 2016
Merged

Conversation

emilio
Copy link
Member

@emilio emilio commented Dec 15, 2016

// FIXME: have a special-purpose tokenizer method for this that does less work.
while let Ok(ref token) = tokenizer.next() {
if BlockType::closing(token) == Some(block_type) {
return
if let Some(b) = BlockType::closing(token){
Copy link
Contributor

Choose a reason for hiding this comment

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

Space before brace.

@emilio
Copy link
Member Author

emilio commented Dec 15, 2016 via email

@SimonSapin
Copy link
Member

r=me with a semver-compatible version bump.

@emilio
Copy link
Member Author

emilio commented Dec 15, 2016

@bors-servo r=SimonSapin

@bors-servo
Copy link
Contributor

📌 Commit 071323a has been approved by SimonSapin

@bors-servo
Copy link
Contributor

⌛ Testing commit 071323a with merge 664111f...

bors-servo pushed a commit that referenced this pull request Dec 15, 2016
Avoid overflowing the stack in consume_until_end_of_block.

Fixes: https://bugzilla.mozilla.org/show_bug.cgi?id=1323705

r? @SimonSapin

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/111)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit 071323a into master Dec 15, 2016
@emilio emilio deleted the stack branch December 15, 2016 20:55
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.

4 participants