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 segfault with invalid map keys #2368

Merged
merged 1 commit into from
May 2, 2017
Merged

Conversation

xzyfer
Copy link
Contributor

@xzyfer xzyfer commented May 2, 2017

Originally reported by @MrTuxracer via HackerOne.

The changed to using even sized lists to represent maps during the
parse stage inadvertently removed certain parser-time error
guarantees. The results being that invalid keys could make their
way into the lists and cause segfaults during eval.

This PR adds parser-time error handling for the most likely error
case.

Spec sass/sass-spec#1104

Originally reported by @MrTuxracer via HackerOne.

The changed to using even sized lists to represent maps during the
parse stage inadvertently removed certain parser-time error
guarantees. The results being that invalid keys could make their
way into the lists and cause segfaults during eval.

This PR adds parser-time error handling for the most likely error
case.

Spec sass/sass-spec#1104
@xzyfer xzyfer added this to the 3.5.0.beta.4 milestone May 2, 2017
@xzyfer xzyfer self-assigned this May 2, 2017
@xzyfer xzyfer merged commit 95f307e into sass:master May 2, 2017
@xzyfer xzyfer deleted the fix-segfault branch May 2, 2017 16:58
xzyfer added a commit that referenced this pull request May 2, 2017
Originally reported by @MrTuxracer via HackerOne.

The changed to using even sized lists to represent maps during the
parse stage inadvertently removed certain parser-time error
guarantees. The results being that invalid keys could make their
way into the lists and cause segfaults during eval.

This PR adds parser-time error handling for the most likely error
case.

Spec sass/sass-spec#1104
xzyfer added a commit that referenced this pull request May 2, 2017
Originally reported by @MrTuxracer via HackerOne.

The changed to using even sized lists to represent maps during the
parse stage inadvertently removed certain parser-time error
guarantees. The results being that invalid keys could make their
way into the lists and cause segfaults during eval.

This PR adds parser-time error handling for the most likely error
case.

Spec sass/sass-spec#1104
xzyfer added a commit that referenced this pull request May 2, 2017
Originally reported by @MrTuxracer via HackerOne.

The changed to using even sized lists to represent maps during the
parse stage inadvertently removed certain parser-time error
guarantees. The results being that invalid keys could make their
way into the lists and cause segfaults during eval.

This PR adds parser-time error handling for the most likely error
case.

Spec sass/sass-spec#1104
xzyfer added a commit that referenced this pull request May 2, 2017
Originally reported by @MrTuxracer via HackerOne.

The changed to using even sized lists to represent maps during the
parse stage inadvertently removed certain parser-time error
guarantees. The results being that invalid keys could make their
way into the lists and cause segfaults during eval.

This PR adds parser-time error handling for the most likely error
case.

Spec sass/sass-spec#1104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant