From d2390e54c4f1ab5c33a0e35e7b9264b36284fa91 Mon Sep 17 00:00:00 2001 From: Marcel Greter Date: Sun, 3 Nov 2019 00:41:41 +0100 Subject: [PATCH] Fix nullptr access on interpolated parents Fixes https://github.com/sass/libsass/issues/3024 --- src/eval.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/eval.cpp b/src/eval.cpp index 67f079869..93bce0acc 100644 --- a/src/eval.cpp +++ b/src/eval.cpp @@ -690,9 +690,9 @@ namespace Sass { b->op(), s_l->last(), b->right()); bin_ex->is_delayed(b->left()->is_delayed() || b->right()->is_delayed()); // unverified for (size_t i = 0; i < s_l->length() - 1; ++i) { - ret_schema->append(Cast(s_l->at(i)->perform(this))); + ret_schema->append(s_l->at(i)->perform(this)); } - ret_schema->append(Cast(bin_ex->perform(this))); + ret_schema->append(bin_ex->perform(this)); return ret_schema->perform(this); } } @@ -703,9 +703,9 @@ namespace Sass { Binary_Expression_Obj bin_ex = SASS_MEMORY_NEW(Binary_Expression, b->pstate(), b->op(), b->left(), s_r->first()); bin_ex->is_delayed(b->left()->is_delayed() || b->right()->is_delayed()); // verified - ret_schema->append(Cast(bin_ex->perform(this))); + ret_schema->append(bin_ex->perform(this)); for (size_t i = 1; i < s_r->length(); ++i) { - ret_schema->append(Cast(s_r->at(i)->perform(this))); + ret_schema->append(s_r->at(i)->perform(this)); } return ret_schema->perform(this); }