Skip to content
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

Avoid overflowing the stack in consume_until_end_of_block. #111

Merged
merged 4 commits into from Dec 15, 2016
Merged

Conversation

@emilio
Copy link
Member

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){

This comment has been minimized.

@nox

nox Dec 15, 2016

Member

Space before brace.

emilio added 2 commits Dec 15, 2016
@emilio emilio force-pushed the stack branch from cb11476 to fc9e074 Dec 15, 2016
@emilio
Copy link
Member Author

emilio commented Dec 15, 2016

@SimonSapin
Copy link
Member

SimonSapin commented Dec 15, 2016

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

bors-servo commented Dec 15, 2016

📌 Commit 071323a has been approved by SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Dec 15, 2016

Testing commit 071323a with merge 664111f...

bors-servo added 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

bors-servo commented Dec 15, 2016

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit 071323a into master Dec 15, 2016
4 checks passed
4 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
dependency-ci Dependencies checked
Details
homu Test successful
Details
@emilio emilio deleted the stack branch Dec 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.