Skip to content

Commit cbf4cb8

Browse files
committed
Fix out of boundary vector access
Fixes #3031
1 parent a5226f4 commit cbf4cb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/extender.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ namespace Sass {
142142
// ##########################################################################
143143
bool Extender::checkForUnsatisfiedExtends(Extension& unsatisfied) const
144144
{
145+
if (selectors.empty()) return false;
145146
ExtSmplSelSet originals = getSimpleSelectors();
146147
for (auto target : extensions) {
147148
SimpleSelector* key = target.first;

0 commit comments

Comments
 (0)