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

Fix #2782: heap-use-after-free in expand.cpp #2784

Merged
merged 1 commit into from
Dec 6, 2018
Merged

Conversation

glebm
Copy link
Contributor

@glebm glebm commented Dec 3, 2018

Selector stack got popped during eval, resulting in extender deletion.

@xzyfer
Copy link
Contributor

xzyfer commented Dec 4, 2018 via email

@glebm
Copy link
Contributor Author

glebm commented Dec 4, 2018

AppVeyor is broken because of @mgreter's recent changes. The fix is in #2775.

@glebm
Copy link
Contributor Author

glebm commented Dec 4, 2018

By the way, the broken windows build is tracked in #2776

Selector stack got popped during eval, resulting in `extender` deletion.
@glebm
Copy link
Contributor Author

glebm commented Dec 6, 2018

Now green.

@xzyfer
Copy link
Contributor

xzyfer commented Dec 6, 2018

Thanks for following up. Is there anyway to scan or lint for this kind of mistake across th codebase. The introduction of _Obj and _Ptr types was fairly jarring and I suspect more of these have slipped through the cracks.

@xzyfer xzyfer merged commit b21fb9f into sass:master Dec 6, 2018
@glebm glebm deleted the fix-2782 branch December 6, 2018 03:49
@glebm
Copy link
Contributor Author

glebm commented Dec 6, 2018

I'm hoping that #2785 will at least make it obvious.
I don't think an automatic lint is possible here (as _Ptr is better for performance when it is safe).

I'm following this Rust Sass compiler closely btw: https://github.com/kaj/rsass.

@xzyfer
Copy link
Contributor

xzyfer commented Dec 6, 2018 via email

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.

2 participants