void-packages/srcpkgs/libsass/patches/CVE-2018-11693.patch

24 lines
676 B
Diff
Raw Normal View History

From b3374e3fd1a0c3658644d2bad24e4a0ff2e0dcea Mon Sep 17 00:00:00 2001
From: xzyfer <xzyfer@gmail.com>
Date: Thu, 21 Jun 2018 21:21:26 +1000
Subject: [PATCH] Fix handling of unclosed interpolant in url
Fixes #2661
---
src/parser.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/parser.cpp b/src/parser.cpp
index d99636dd4..66ca4dc94 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -2163,6 +2163,7 @@ namespace Sass {
while (pp && peek< exactly< hash_lbrace > >(pp)) {
pp = sequence< interpolant, real_uri_value >(pp);
}
+ if (!pp) return 0;
position = pp;
return parse_interpolated_chunk(Token(p, position));
}