Skip to content

Commit b21fb9f

Browse files
glebmxzyfer
authored andcommitted
Fix #2782: heap-use-after-free in expand.cpp
Selector stack got popped during eval, resulting in `extender` deletion.
1 parent ace6628 commit b21fb9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/expand.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ namespace Sass {
640640

641641
Statement* Expand::operator()(Extension_Ptr e)
642642
{
643-
if (Selector_List_Ptr extender = selector()) {
643+
if (Selector_List_Obj extender = selector()) {
644644
Selector_List_Ptr sl = e->selector();
645645
// abort on invalid selector
646646
if (sl == NULL) return NULL;

0 commit comments

Comments
 (0)