Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2849,6 +2849,13 @@ namespace Sass {
}
}

if (operands.size() > Constants::MaxCallStack) {
// XXX: this is never hit via spec tests
sass::ostream stm;
stm << "Stack depth exceeded max of " << Constants::MaxCallStack;
error(stm.str());
}

for (size_t S = operands.size(); i < S; ++i) {
if (String_Schema* schema = Cast<String_Schema>(operands[i])) {
if (schema->has_interpolants()) {
Expand Down