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

Set the native stack quota per Gecko's defaults to defend against JavaScript stack overflows. #249

Merged
merged 1 commit into from Mar 30, 2016

Conversation

@pcwalton
Copy link
Contributor

pcwalton commented Mar 29, 2016

Addresses servo/servo#10229.

r? @jdm


This change is Reviewable

@jdm
Copy link
Member

jdm commented Mar 29, 2016

What about adding a test to src/tests.rs that initializes a basic global object, then evaluates function f() { f() }; f() and asserts that the return value is 0?

@pcwalton
Copy link
Contributor Author

pcwalton commented Mar 29, 2016

Sure, sounds like a good idea.

@pcwalton pcwalton force-pushed the pcwalton:native-stack-quota branch from 82d0bf7 to e297eee Mar 30, 2016
@pcwalton
Copy link
Contributor Author

pcwalton commented Mar 30, 2016

Test added. r? @jdm

JavaScript stack overflows.

Addresses servo/servo#10229.
@jdm
Copy link
Member

jdm commented Mar 30, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Mar 30, 2016

📌 Commit e297eee has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Mar 30, 2016

Testing commit e297eee with merge 2a5c60a...

bors-servo added a commit that referenced this pull request Mar 30, 2016
Set the native stack quota per Gecko's defaults to defend against JavaScript stack overflows.

Addresses servo/servo#10229.

r? @jdm

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

bors-servo commented Mar 30, 2016

☀️ Test successful - travis

@bors-servo bors-servo merged commit e297eee into servo:master Mar 30, 2016
1 check passed
1 check passed
homu Test successful
Details
@bors-servo bors-servo mentioned this pull request Mar 30, 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

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