-
Notifications
You must be signed in to change notification settings - Fork 463
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
Null pointer dereference in Sass::Eval::operator()(Sass::Supports_Operator*) eval.cpp #2786
Comments
Minimal example: @supports (foo: bar) or {
} Dart Sass:
Ruby Sass:
|
glebm
added a commit
to glebm/libsass
that referenced
this issue
Apr 4, 2019
glebm
added a commit
to glebm/sass-spec
that referenced
this issue
Apr 4, 2019
glebm
added a commit
to glebm/libsass
that referenced
this issue
Apr 4, 2019
Fixes sass#2786 Spec added in sass/sass-spec#1370
glebm
added a commit
to glebm/sass-spec
that referenced
this issue
Apr 4, 2019
glebm
added a commit
to glebm/sass-spec
that referenced
this issue
Apr 4, 2019
glebm
added a commit
to glebm/sass-spec
that referenced
this issue
Apr 4, 2019
glebm
added a commit
to glebm/sass-spec
that referenced
this issue
Apr 4, 2019
glebm
added a commit
to glebm/sass-spec
that referenced
this issue
Apr 4, 2019
nex3
pushed a commit
to sass/sass-spec
that referenced
this issue
Apr 4, 2019
xzyfer
pushed a commit
that referenced
this issue
Apr 5, 2019
Fixes #2786 Spec added in sass/sass-spec#1370
Assigned CVE-2018-20190 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I fuzzed and found another null pointer dereference problem in Sass::Eval::operator()(Sass::Supports_Operator*) eval.cpp. The problem exists in both the 3.5.5 version and the master branch (2018/12/2), with the same crash stack.
Build libsass/sassc with ASan:
CXX=clang++ CC=clang CFLAGS="-g -fsanitize=address -fno-omit-frame-pointer" CXXFLAGS=$CFLAGS make -C sassc -j4
Run
./sassc sass_npd
and program crashes.(sass_npd is at here: https://github.com/zyingp/temp/blob/master/sass_npd)
Crash stack
Crash stack (of master branch):
It seems that in function
Expression_Ptr Eval::operator()(Supports_Operator_Ptr c)
, theright
variable (not Null) is casted and becomes a NullSupports_Condition
SharedObj at lineCast<Supports_Condition>(right),
.The text was updated successfully, but these errors were encountered: