stack overflow in libsass
- Triaged in 3 months
- Fixed in 3 months
- Disclosed after 6 months
By pasting @H#{[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[} into ./sassc -s, we're able to trigger this stack overflow.
==3470==ERROR: AddressSanitizer: stack-overflow on address 0x7ffe1b09ffc8 (pc 0x00000059bc77 bp 0x7ffe1b0a0820 sp 0x7ffe1b09ffd0 T0)
#0 0x59bc76 in __interceptor_malloc (/home/geeknik/sassc/bin/sassc+0x59bc76)
#1 0x7f842fedb2e7 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x5f2e7)
#2 0x7f842ff3ae98 in std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xbee98)
#3 0x7f842ff3c814 in char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xc0814)
#4 0x7f842ff3cc45 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xc0c45)
#5 0x896a14 in Sass::Parser::parse_value() /home/geeknik/libsass/src/parser.cpp:1626:5
#6 0x87d034 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1451:14
#7 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#8 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#9 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#10 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#11 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#12 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#13 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#14 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#15 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#16 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#17 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#18 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#19 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#20 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#21 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#22 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#23 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#24 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#25 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#26 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#27 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#28 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#29 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#30 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#31 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#32 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#33 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#34 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#35 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#36 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#37 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#38 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#39 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#40 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#41 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#42 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#43 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#44 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#45 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#46 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#47 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#48 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#49 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#50 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#51 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#52 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#53 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#54 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#55 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#56 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#57 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#58 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#59 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#60 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#61 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#62 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#63 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#64 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#65 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#66 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#67 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#68 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#69 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#70 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#71 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#72 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#73 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#74 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#75 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#76 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#77 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#78 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#79 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#80 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#81 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#82 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#83 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#84 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#85 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#86 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#87 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#88 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#89 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#90 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#91 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#92 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#93 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#94 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#95 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#96 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#97 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#98 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#99 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#100 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#101 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#102 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#103 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#104 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#105 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#106 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#107 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#108 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#109 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#110 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#111 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#112 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#113 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#114 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#115 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#116 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#117 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#118 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#119 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#120 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#121 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#122 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#123 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#124 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#125 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#126 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#127 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#128 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#129 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#130 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#131 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#132 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#133 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#134 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#135 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#136 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#137 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#138 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#139 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#140 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#141 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#142 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#143 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#144 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#145 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#146 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#147 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#148 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#149 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#150 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#151 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#152 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#153 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#154 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#155 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#156 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#157 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#158 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#159 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#160 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#161 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#162 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#163 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#164 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#165 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#166 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#167 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#168 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#169 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#170 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#171 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#172 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#173 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#174 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#175 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#176 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#177 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#178 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#179 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#180 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#181 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#182 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#183 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#184 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#185 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#186 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#187 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#188 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#189 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#190 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#191 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#192 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#193 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#194 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#195 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#196 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#197 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#198 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#199 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#200 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#201 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#202 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#203 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#204 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#205 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#206 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#207 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#208 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#209 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#210 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#211 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#212 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#213 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#214 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#215 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#216 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#217 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#218 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#219 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#220 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#221 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#222 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#223 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#224 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#225 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#226 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#227 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#228 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#229 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#230 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#231 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#232 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#233 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#234 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#235 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#236 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#237 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#238 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#239 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#240 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#241 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#242 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#243 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
#244 0x826ab2 in Sass::Parser::parse_space_list() /home/geeknik/libsass/src/parser.cpp:1186:28
#245 0x86818a in Sass::Parser::parse_bracket_list() /home/geeknik/libsass/src/parser.cpp:1106:27
#246 0x87a961 in Sass::Parser::parse_factor() /home/geeknik/libsass/src/parser.cpp:1391:30
#247 0x878304 in Sass::Parser::parse_operators() /home/geeknik/libsass/src/parser.cpp:1350:29
#248 0x86fc62 in Sass::Parser::parse_expression() /home/geeknik/libsass/src/parser.cpp:1310:26
#249 0x86e4c1 in Sass::Parser::parse_relation() /home/geeknik/libsass/src/parser.cpp:1256:26
#250 0x86c919 in Sass::Parser::parse_conjunction() /home/geeknik/libsass/src/parser.cpp:1234:26
#251 0x86b939 in Sass::Parser::parse_disjunction() /home/geeknik/libsass/src/parser.cpp:1213:27
SUMMARY: AddressSanitizer: stack-overflow ??:0 __interceptor_malloc
==3470==ABORTING
Context
LibSass is a C++ implementation of the Sass stylesheet language, built as a library so that other tools can compile Sass without depending on the original Ruby implementation. One of the tools shipped alongside it is sassc, a small command-line compiler that links against libsass, reads a stylesheet, and writes the compiled CSS.
Compiling a stylesheet means parsing it. A Sass value such as a list, a map, an arithmetic expression or an interpolated string is not read as opaque text: the parser walks it token by token and builds an internal representation. In libsass that work lives in src/parser.cpp, in a set of functions whose names describe the grammar they handle: parse_value, parse_expression, parse_operators, parse_factor, parse_relation, parse_conjunction, parse_disjunction, parse_space_list and parse_bracket_list.
These functions call one another. A value can contain an expression, an expression can contain operators, an operator's operand can be a factor, a factor can be a bracketed list, and a bracketed list can contain further values. That mutual recursion is the normal way to write a recursive-descent parser, and for ordinary stylesheets it terminates quickly because each construct is closed by its matching delimiter.
The interesting case is a value that opens far more brackets than it closes. Each opening [ is a legitimate start of a bracketed list, so the parser descends into parse_bracket_list again rather than rejecting the input. The payload in this report is exactly that: a long run of [ characters inside an interpolated value, which drives the parser down one level per bracket.
Setup
The work was done locally against a build of sassc compiled with AddressSanitizer. The crash output shows the binary at /home/geeknik/sassc/bin/sassc, and the first frame of the trace is the sanitizer's own __interceptor_malloc, which is what you get when the allocator is instrumented by ASan rather than being the system allocator directly.
The libsass library itself was built from source in a separate tree, /home/geeknik/libsass, and the binary was compiled with debug information pointing into it. That is why the stack trace does not stop at raw addresses: every parser frame is resolved to a function name, a source file and a line, for example Sass::Parser::parse_value() /home/geeknik/libsass/src/parser.cpp:1626:5. Without that source tree and the matching symbols, the same crash would have produced a list of offsets and nothing more, and the recursion cycle would have been much harder to see.
The compiler was invoked as ./sassc -s. The -s flag makes sassc read the stylesheet from standard input instead of from a file, so the payload is pasted straight into the terminal and the compiled output, or in this case the sanitizer report, comes back on the same stream. No server, account or network access is involved: the whole reproduction is one local process reading one string.
The only precondition is that the input reaches the parser as a Sass value, so that the bracket run inside it is walked by the expression parser.
Finding it
The observation behind the report is simple: a value expression made of a long run of opening brackets is accepted by the parser and walked one level per bracket, with no point at which the parser decides the input is too deep. Nothing in the grammar rejects an unclosed bracketed list early; each [ is a valid start of a nested list, so the descent continues until the process runs out of stack.
What makes this worth reporting rather than dismissing as a malformed stylesheet is where the failure lands. A parser is the component whose job is to cope with arbitrary input, including input that is syntactically wrong. A recursive-descent parser that recurses once per nesting level and never checks its own depth turns a short, cheap input string into a process abort. The input here is a single line of text, and the cost to the attacker is negligible, while the cost to the compiler is its entire stack.
The crash is also not a clean parse error. The process does not report "unexpected end of input" or "unclosed bracket"; it dies inside the allocator, because the recursion has consumed the stack down to the point where the next call, a std::string construction in parse_value, cannot get a frame. That is the signal that the limit being hit is the process stack and not any limit the parser imposes on itself.
Exploitation
The whole reproduction is one input string and one command. There is no request, no session and no target host: the payload is pasted into the compiler's standard input, and the compiler's own sanitizer output is the evidence.
Step 1: the payload and the command
The input is a Sass variable assignment whose value is an interpolated expression containing a long run of opening square brackets:
Root cause
The stack trace is the root cause made visible. The parser is a set of mutually recursive descent functions, and each nested [ in the input adds one full cycle of frames to the stack before the parser can make any progress on the next character. The cycle, read from the trace, is:
parse_bracket_listatparser.cpp:1106parse_factoratparser.cpp:1391parse_operatorsatparser.cpp:1350parse_expressionatparser.cpp:1310parse_relationatparser.cpp:1256parse_conjunctionatparser.cpp:1234parse_disjunctionatparser.cpp:1213parse_space_listatparser.cpp:1186- back to
parse_bracket_listatparser.cpp:1106
Frames #13 to #21 are the first complete cycle, and from #21 onward the same nine frames repeat with identical line numbers, all the way to #251 where the trace ends. Nothing in that cycle consumes the input in a way that would let the parser unwind: the [ character is a valid opening of a bracketed list, so parse_bracket_list calls parse_factor, which calls parse_operators, and so on around the loop, and the next [ starts another cycle before the previous one returns.
The consequence is that the stack grows linearly with the number of opening brackets. There is no depth counter, no maximum nesting constant and no early rejection of an unclosed list anywhere in the frames shown, so the only limit is the size of the process stack. When it runs out, the failure does not surface as a parse error. It surfaces at the deepest point of the recursion, in parse_value at parser.cpp:1626, where the code tries to construct a std::string and the allocation path cannot get a frame. That is why the top of the trace is __interceptor_malloc and operator new rather than a parser function: the parser had already used the stack, and the next ordinary allocation was the call that could not be made.
Why nothing stopped it is only implied by the report. The likely explanation is that the grammar treats an opening bracket as sufficient reason to descend, and the parser has no guard that counts nesting depth or caps it, so a syntactically incomplete value is walked as far as the input goes. A parser that checked its own depth, or that rejected an unclosed bracket once a limit was reached, would have returned an error instead of exhausting the stack.
Impact
The direct effect is that the sassc process aborts. The input is a single line of text, and the cost to whoever sends it is negligible, while the compiler loses its entire stack and dies inside the allocator rather than returning a parse error. The weakness it is filed under, uncontrolled resource consumption, matches what the trace shows: the resource being consumed is stack space, and the consumption is driven by the length of the attacker's input.
Who is actually exposed depends entirely on whether the deployment compiles Sass it did not write. A build pipeline that only ever compiles stylesheets from its own repository is not reachable by an outside party, and the crash is then a robustness bug that a developer can trigger by accident. The situation changes when a service accepts Sass from users, for example a hosted compiler, a theme or template upload feature, or any tool that turns user-supplied Sass into CSS on the server. In that case a single short string is enough to take down the process handling the request, and repeating it keeps the service down for as long as the attacker keeps sending it.
The report does not claim anything beyond the crash. There is no evidence in it of memory corruption, code execution or data exposure: the failure is a stack overflow caught by AddressSanitizer, and the process aborts. The impact is therefore availability only, and only for the process that parses the crafted stylesheet. Whether that process is shared with other users, and how quickly it restarts, determines how much a single crash actually costs.
Fix
The report does not describe a fix. It contains no patch, no commit reference, no version number for a corrected release, and no statement from the maintainers about what was changed or when. Nothing in the text says whether the issue was resolved, and nothing in it records a maintainer response. What follows is therefore about the direction a fix would take, not about what was actually done.
The defect is that the parser's recursion depth is bounded only by the process stack. Any fix has to introduce a bound the parser controls itself, so that the failure becomes a parse error rather than a process abort. There are two broad ways to do that.
- Count depth explicitly. Each of the descent functions in the cycle, or a single shared entry point that they all pass through, increments a counter on entry and decrements it on exit. When the counter exceeds a fixed maximum, the parser raises its normal syntax error and unwinds. The limit can be set well below the stack size that the smallest supported build provides, which leaves headroom for the frames the parser already uses before it reaches the deep construct.
- Reject the input earlier. A bracketed list that is never closed is not valid Sass. If the parser tracked unclosed delimiters and refused to descend past a threshold, or if a pre-pass checked bracket balance before the expression parser ran, the long run of
[characters would be rejected before the recursion started. This is cheaper but narrower: it only covers the bracket case, whereas a depth counter covers every recursive construct in the grammar.
Either approach turns the observed behaviour into the behaviour a parser should have had in the first place. The input in this report is malformed, and the correct response to malformed input is an error message, not an abort inside __interceptor_malloc. A depth limit also protects against inputs that are well formed but deeply nested, which a balance check alone would not catch.
The general lesson for other recursive-descent parsers is the same: recursion depth is an input-controlled resource, and it needs an input-independent cap. The cap should be enforced in the parser rather than left to the operating system's stack limit, because the stack limit varies between platforms and build configurations, and because hitting it produces a crash rather than a diagnostic.
Variants to test
The report demonstrates one construct, the opening square bracket, but the mechanism it exposes is the recursion cycle itself, and that cycle is entered from several grammar productions. Anything that makes the parser descend one level per input character without a depth check is a candidate. The positive result in every case is the same shape of evidence: an AddressSanitizer (or equivalent) stack-overflow report whose frames repeat the same parser functions with identical line numbers, ending in SUMMARY: AddressSanitizer: stack-overflow.
- Other bracket and grouping characters. The trace shows
parse_bracket_listas the frame that re-enters the cycle. Try the same long run with(and with{inside an interpolated value, and try mixing openers so that each character starts a different nested construct. A positive result is a repeating cycle of parser frames in the trace, even if the function names differ fromparse_bracket_list. - Deeply nested function calls. A Sass value can call a function, and a function's argument list is itself a value. A long chain of nested calls, each opening before the previous one closes, should drive the same descent. Look for the argument-parsing frames repeating in the trace.
- Nested interpolation. The payload already uses
#{...}. Nesting interpolation inside interpolation, many levels deep, exercises the same value parser from a different entry point. A positive result is a stack overflow whose deepest frames are in the interpolation or value-parsing code rather than in the bracket-list code. - Nested lists and maps in other positions. The report only shows the construct in a variable assignment. Try the same bracket run in a property value, a mixin or function argument, an
@ifcondition, and a map key or value. Each is a separate call into the expression parser, and any of them that reaches the recursive descent without a depth check should crash the same way. - Other recursive-descent parsers. The pattern is not specific to Sass. Compilers and interpreters for CSS preprocessors, template languages, query languages, configuration formats and regular-expression engines all tend to parse nested constructs by recursion. Feed each one a value that opens far more grouping characters than it closes, through whatever interface accepts untrusted input, and watch for a crash rather than a syntax error. A positive result is a process abort with a repeating call cycle in the backtrace, or a clean "maximum call stack size exceeded" only if the implementation actually enforces a limit.
- Well-formed but deep input. A balance check on unclosed delimiters would not catch input that is correctly closed but nested thousands of levels deep. Try a value with a very large number of matched bracket pairs, one inside the next. If this still overflows the stack, the parser has no depth cap at all, only, at best, a balance check, and the fix needs the explicit counter described above.
For each variant, the useful evidence is the same as in this report: the exact input, the exact command or request, and the sanitizer or interpreter output showing the repeated frames. A crash without a symbolised trace is much weaker evidence, because it does not show that the cause is unbounded recursion rather than an unrelated bug.
Hunting notes
Parser stack exhaustion hides wherever a recursive-descent parser is exposed to input the author of the input controls. The pattern is easy to miss during recon because the vulnerable component is rarely the web front end: it is a library linked into a build step, a background worker, a preview service or a command-line tool that something else invokes. The places worth looking at first are the ones where a stylesheet, template, query or configuration file is compiled on behalf of a user rather than by the user on their own machine.
Typical hiding places:
- Hosted compilers and previews. Any service that accepts Sass, Less, Stylus or a template language and returns compiled output is running a parser on someone else's input. A theme upload, a "compile and preview" button, or an API that takes source and returns CSS all qualify.
- Build and CI infrastructure. Pipelines that compile assets from pull requests, including from forks, run the parser on contributor-supplied files. A crash there can stall a job or a shared runner.
- Editors, linters and language servers. These parse incomplete input constantly, and they often run in the same process as the user's session.
- Anything embedding libsass or a similar library. The library is designed to be linked into other tools, so the vulnerable parser can sit behind an interface that looks nothing like a compiler.
The recon signals that point at this kind of target are indirect. A page or API that accepts source code and returns transformed output is the clearest one. Version strings, error messages and stack traces that name a parser library, a source file or a line number tell you which implementation is behind the interface and whether it is the one you have a payload for. A response that returns a syntax error quoting the offending input confirms that the input reached the parser rather than being rejected earlier. Build logs and public issue trackers that mention the library name are useful for the same reason.
The demonstration in this report is a good model for how to present the finding. Three things in that output make the case on their own:
- The trace is symbolised, with function names, source paths and line numbers, so the reader can see the recursion rather than take it on trust.
- The same nine frames repeat with identical line numbers, which shows a cycle rather than a one-off deep call.
- The
SUMMARYline names the failure class directly, so there is no argument about whether the process crashed or merely returned an error.
A crash report without symbols, or one that stops at a raw address, is much weaker: it does not distinguish unbounded recursion from an unrelated memory bug, and a maintainer can reasonably ask for more. Building with AddressSanitizer and debug information, as was done here, costs little and turns a vague "it crashes" into evidence that stands by itself.
The last point is scope. The report is honest about what it shows: a local process abort from a single short string. That framing is what makes it credible. Claiming remote code execution or data exposure from a stack overflow in a parser would have been unsupported by the trace, and the trace is the whole argument.
What happened, in plain words
This report is about a small program called sassc, which turns a stylesheet language called Sass into ordinary CSS, the language browsers use to decide how a web page looks. The researcher found that if you give sassc a very short piece of text, the program crashes. Not with a polite error message, but by dying outright.
The text that causes the crash is a single line. It starts with @H#{ and then continues with a long run of the [ character, the opening square bracket. When sassc reads this line, it tries to understand the brackets by going deeper and deeper into its own code, one level for each [. It never stops to check whether it has gone too deep, and eventually it runs out of a resource called the stack, which is the memory a program uses to keep track of where it is. When the stack is full, the program aborts.
The researcher ran sassc on their own computer, not against a website or a server. They built the program in a special way, with a tool called AddressSanitizer, that watches for memory problems and prints a detailed report when something goes wrong. That report is the evidence in this finding: it shows the program crashing inside its own parsing code, with the same handful of functions repeating over and over, which is the signature of runaway recursion.
The crash reflects what the bug actually is: the program stops working, and nothing more. There is no evidence in the report of anyone reading data they should not see, changing anything, or running their own code. The only harm is that the compiler process dies. Whether that matters depends on who is running it. If you compile your own stylesheets on your own machine, you have only crashed your own tool. If a website compiles Sass that strangers send it, then a stranger can crash that website's process with one short string.
The report does not describe a fix. It contains no patch, no mention of a corrected version, and no statement from the people who maintain the software about what they changed. What it does contain is a clear reproduction: the exact input, the exact command, and the full crash output. That is enough for a maintainer to see the problem and decide what to do about it.
The rest of this article walks through all of it from the beginning: what Sass and sassc are, how a program reads text, why the brackets cause the trouble, how to read the crash report, what the root cause is, who is affected, what a repair would look like, and where else this kind of bug tends to hide.
Background: what LibSass and sassc are
Before the crash makes any sense, you need to know what the program that crashed actually does. This section builds that up from nothing: what a stylesheet is, what Sass adds to it, what LibSass is, and what sassc is.
Sass and why it exists
When you open a web page, your browser downloads a set of files. One of them is HTML, which holds the content: the headings, paragraphs, images and links. Another is CSS, short for Cascading Style Sheets, which describes how that content should look: which text is bold, what colour the background is, how wide a box is, and where things sit on the page. A CSS file is a list of rules, and each rule says "for elements matching this description, use these visual settings".
CSS is simple on purpose, and that simplicity becomes a problem on large websites. Imagine a site with hundreds of pages that all share the same blue colour. In plain CSS you write that blue value in every rule that uses it. If the designer later decides the blue should be a slightly different blue, you have to find and change every one of those places, and miss one and the site looks inconsistent. The same goes for repeated blocks of layout rules, and for arithmetic such as "make this column half the width of its container".
Sass is a language that fixes this by letting you write CSS in a more convenient form and then converting it. In Sass you can:
- store a value once in a variable and refer to it by name everywhere, so changing the colour means changing one line;
- nest rules inside one another so the structure of the stylesheet mirrors the structure of the page;
- write expressions, such as adding two sizes together or building a value out of smaller pieces;
- split a stylesheet into several files and combine them.
Browsers do not understand Sass. They only understand CSS. So a Sass file has to be translated into CSS before it is served to a browser. That translation is called compiling the stylesheet, and the program that does it is called a compiler. Compiling here does not mean the heavy work of turning source code into machine instructions; it means reading the Sass text, working out what it means, and writing out the equivalent CSS text.
LibSass and sassc
There are two separate pieces of software in this story, and it helps to keep them apart.
LibSass is a library. A library is a bundle of code that other programs can use, rather than a program you run yourself. LibSass is written in C++, a programming language often used where speed matters. Its job is to contain all the logic for understanding Sass and producing CSS. Other tools that want to compile Sass do not have to write that logic themselves; they link against LibSass, which means they attach the library to their own program and call into it.
A useful comparison: a library is like an engine. You do not drive an engine on its own; you put it in a car. LibSass is the engine, and the tools built around it are the cars.
sassc is one of those cars. It is a small command-line compiler: a program you run by typing its name in a terminal, a text window where you type commands instead of clicking. sassc does very little on its own. It takes a stylesheet as input, hands the text to LibSass, receives the compiled CSS back, and writes it out. All the interesting work, including the parsing that this report is about, happens inside LibSass.
So when the report says the crash happens in sassc, the faulty code is really in LibSass, and sassc is simply the program that was used to reach it. That distinction matters later, because it means any other tool that uses LibSass could be affected in the same way.
How the parser works
The crash happens inside a piece of code called the parser, so this section explains what a parser is, how this particular one is built, and why its design is normally fine but fails badly on one kind of input. None of this needs any security background, only the idea that a program reads text one character at a time and has to decide what each character means.
Parsing a value
When sassc receives a Sass file, it does not immediately know what the text means. To a computer, a file is just a long sequence of characters. Parsing is the step that turns that sequence into something the program can work with: it reads the characters, groups them into meaningful pieces, and builds an internal picture of the structure. The program that does this is the parser.
A comparison helps here. Imagine reading a sentence in a language you know. You do not treat it as a random string of letters; you recognise words, then phrases, then the way the phrases fit together into a sentence. A parser does the same with a programming or styling language. It recognises small units, called tokens, and then works out how those tokens combine.
In Sass, one of the things the parser has to understand is a value. A value is any piece of data that appears in a stylesheet: a colour, a number with a unit, a piece of text, a list of several items, a map (a set of key-and-value pairs, like a small dictionary), an arithmetic expression such as a sum, or an interpolated string. Interpolation is the feature where you embed an expression inside text using the syntax #{...}, and Sass replaces that part with the result of the expression. The payload in this report uses exactly that syntax.
The parser does not read a value as one opaque lump. It walks through it token by token and builds an internal representation, a structured version of the value that later stages of the compiler can evaluate. In LibSass, all of this work lives in a source file called src/parser.cpp. A source file is one of the text files a programmer writes to build a program; the .cpp ending shows it is C++ code.
The nine parser functions
Inside src/parser.cpp there is a set of functions whose names describe the grammar they handle. A function is a named block of code that does one job and can be called by name from elsewhere. The nine functions in this story are:
parse_valueparse_expressionparse_operatorsparse_factorparse_relationparse_conjunctionparse_disjunctionparse_space_listparse_bracket_list
Each name begins with parse_, which is a common convention meaning "this function reads one kind of thing". So parse_bracket_list reads a bracketed list, parse_expression reads an expression, and so on.
The important thing is that these functions call one another. A value can contain an expression, so parse_value may call parse_expression. An expression can contain operators, so parse_expression may call parse_operators. An operator's operand can be a factor, so parse_operators may call parse_factor. A factor can be a bracketed list, so parse_factor may call parse_bracket_list. And a bracketed list can contain further values, so parse_bracket_list may call back into the value and expression functions.
This style of parser is called recursive descent. "Descent" because the parser works its way down through the grammar, from the largest constructs to the smallest. "Recursive" because a function can call itself, directly or through a chain of other functions. It is the most natural way to write a parser by hand, because each grammar rule becomes one function that mirrors the rule.
To see why recursion is needed, think of nested boxes. A big box contains a smaller box, which contains a smaller box, and so on. To describe the innermost box you first have to open the outer ones. A recursive-descent parser does the same: to understand a value that contains a list that contains another value, it opens one level, then the next, then the next.
Why brackets matter
Now the crucial detail. In Sass, the [ character, the opening square bracket, is a legitimate way to start a bracketed list. When the parser meets a [, it does not treat it as an error. It treats it as an instruction: "a list begins here, go and read it". So it calls parse_bracket_list, which reads the contents, and if the contents themselves contain another [, it goes one level deeper again.
For an ordinary stylesheet this is completely fine, because brackets come in pairs. Every [ is eventually matched by a ], the closing square bracket. When the parser reaches the ], it knows the list has ended, it finishes that level, and it returns to the level above. The recursion unwinds, level by level, until it is back at the top. The whole thing terminates quickly, because each construct is closed by its matching delimiter.
The interesting case, as the report puts it, is a value that opens far more brackets than it closes. Each opening [ is a valid start of a bracketed list, so the parser descends into parse_bracket_list again rather than rejecting the input. The payload in this report is exactly that: an interpolated value containing a long run of [ characters, which drives the parser down one level per bracket.
There is one more concept needed to understand why going too deep is a problem: the stack. When one function calls another, the computer has to remember where to return to when the inner function finishes. It stores that information, along with the inner function's local data, in a region of memory called the stack. Each call adds a frame to the stack, like a note placed on top of a pile. When the function returns, its frame is removed and the pile gets shorter. The stack has a fixed maximum size, set by the operating system when the program starts. If calls keep piling up without returning, the pile grows until it hits that limit, and then there is no room for the next frame. That situation is called a stack overflow, and it is what this report is about.
So the design is sound as long as the input eventually closes its brackets. The parser has no reason to expect otherwise, because a stylesheet with unclosed brackets is not valid Sass. But a parser's job is to cope with any input at all, including input that is wrong, and that is where the next sections pick up.
The setup used to reproduce it
To show a crash convincingly, you need more than the claim that something crashed. You need a setup that produces a record of what happened, detailed enough that someone else can see the cause rather than take it on trust. This section describes the setup the researcher used: how the program was built, what the special build tool does, how the program was run, and why none of it involves a network, a server or an account.
The work was done locally against a build of sassc compiled with AddressSanitizer. "Locally" means on the researcher's own computer, as an ordinary program run from a terminal. There was no website being attacked and no remote machine involved. The crash output shows the binary at /home/geeknik/sassc/bin/sassc, which is simply the place on disk where the compiled program ended up.
AddressSanitizer and debug symbols
AddressSanitizer, usually shortened to ASan, is a tool that watches a program while it runs and looks for memory problems. It is not part of the program itself; it is added when the program is built. A program built with ASan carries extra checking code, and when something goes wrong with memory, ASan stops the program and prints a detailed report instead of letting it fail silently or in a confusing way.
A comparison: ASan is like a building inspector who follows a construction crew around and writes down exactly what was happening at the moment something went wrong, instead of you arriving later to find a pile of rubble and having to guess.
The first frame of the crash trace is the sanitizer's own __interceptor_malloc. malloc is the standard way a C or C++ program asks the operating system for a chunk of memory, and __interceptor_malloc is ASan's replacement for it: ASan intercepts every memory request so it can check it. Seeing that name at the top of the trace is expected in an ASan build, and it tells you the crash happened at the moment the program tried to get more memory, not somewhere unrelated.
The libsass library itself was built from source in a separate tree, /home/geeknik/libsass. The binary was compiled with debug information pointing into that tree. Debug information is extra data stored inside a compiled program that records which piece of source code each part of the machine code came from.
That is why the stack trace does not stop at raw addresses. A raw address is just a number, like 0x896a14, and on its own it tells you nothing about what the program was doing. With debug information, each frame is resolved to a function name, a source file and a line, for example Sass::Parser::parse_value() /home/geeknik/libsass/src/parser.cpp:1626:5. Read that as: the function parse_value, in the file parser.cpp, at line 1626, column 5. Without the source tree and the matching symbols, the same crash would have produced a list of offsets and nothing more, and the recursion cycle would have been much harder to see.
The command and its flag
The compiler was invoked as ./sassc -s. Two parts need explaining.
./sassc means "run the program called sassc that is in the current folder". In a terminal, . stands for the current folder and / separates folder names, so ./sassc is a way of pointing at a file directly rather than relying on the system to find it elsewhere.
-s is a flag, a short option that changes how a command behaves. The -s flag makes sassc read the stylesheet from standard input instead of from a file. Standard input is the stream of text a program receives when you type into the terminal after starting it, or when you pipe text into it from another command. So with -s, the payload is pasted straight into the terminal, and the compiled output, or in this case the sanitizer report, comes back on the same stream.
Why use -s at all? Because it makes the reproduction a single step. There is no file to create, no path to get right, and no chance that the wrong file was compiled. The input and the command are the whole experiment.
No server, account or network access is involved: the whole reproduction is one local process reading one string. That is worth stating plainly, because it shapes how the finding should be read. This is not a report about breaking into someone's website. It is a report about a program that can be made to crash by its input, demonstrated on the researcher's own machine.
The only precondition is that the input reaches the parser as a Sass value, so that the bracket run inside it is walked by the expression parser. In other words, the text has to look enough like real Sass to get past the first checks and into the part of the code that reads values. A random string of characters would simply be rejected as a syntax error before the interesting code ran.
Finding it: the idea behind the bug
The observation behind the report is simple, and it is worth stating in one sentence before unpacking it: a value expression made of a long run of opening brackets is accepted by the parser and walked one level per bracket, with no point at which the parser decides the input is too deep.
Why is it accepted? Because of the design explained in the previous section. Each [ is a valid start of a bracketed list, so when the parser meets one it does the only thing it knows how to do: it calls parse_bracket_list and goes one level deeper. Nothing in the grammar rejects an unclosed bracketed list early. There is no rule that says "if you have opened more brackets than you have closed, stop". The parser simply keeps descending, one level for each [, until the process runs out of stack.
To see why this is a bug rather than just a badly written stylesheet, you have to think about what a parser is for. A parser's job is to cope with arbitrary input, including input that is syntactically wrong. When a browser, a compiler or any other program reads text from the outside world, it cannot assume the text is well formed. People mistype things, files get truncated, and sometimes someone deliberately sends nonsense. The parser is the component that stands at the boundary between "raw text" and "something the program understands", and its job is to say clearly whether the text is valid and, if not, to report an error. A parser that crashes on bad input has failed at that job.
A comparison: think of a receptionist whose job is to read incoming forms and either pass them on or hand them back with "this form is incomplete". If someone hands over a form with a thousand blank pages stapled together, the receptionist should say "this is not a valid form" and hand it back. What happens here is that the receptionist starts reading page by page, gets deeper and deeper into the pile, and eventually collapses under it. The form was never valid, but the receptionist never got to the point of saying so.
That is the essence of the finding. A recursive-descent parser that recurses once per nesting level and never checks its own depth turns a short, cheap input string into a process abort. The input here is a single line of text, and the cost to whoever sends it is negligible, while the cost to the compiler is its entire stack.
The second half of the observation is about where the failure lands. The crash is not a clean parse error. The process does not report "unexpected end of input" or "unclosed bracket". It dies inside the allocator, because the recursion has consumed the stack down to the point where the next call, a std::string construction in parse_value, cannot get a frame.
Why does that matter? Because it tells you what kind of limit is being hit. If the parser had its own limit, say a maximum nesting depth of a hundred, then a deeply nested input would produce a normal error message from the parser itself, and the program would carry on. The fact that the failure appears in the memory allocator, at the deepest point of the recursion, shows that the limit being hit is the process stack and not any limit the parser imposes on itself. The parser has no such limit. The operating system's stack size is the only thing standing between the input and a crash, and that is not a limit the parser controls or can report on.
There is one more thing worth noticing about the shape of the failure. The input is not large. It is a single line, and the researcher pasted it into a terminal. An attacker who wanted to crash a service that compiles Sass would not need to send megabytes of data or find a clever way to smuggle it past a filter. They would need one short string. That is what makes a stack overflow in a parser worth reporting even when the impact is only a crash: the effort required to trigger it is close to zero, and the effect is immediate.
So the idea behind the bug is this: the parser treats every opening bracket as an invitation to go deeper, and it has no way of knowing when to stop. A well-formed stylesheet closes its brackets, so the parser comes back up and everything is fine. A malformed one does not, and the parser keeps going until the stack runs out. The next section shows the exact input and command that demonstrate it.
Exploitation: the payload and the command
This section shows the actual experiment: the exact text that was fed to the compiler, the exact command that was typed to run it, and the exact output that came back. Everything here is copied from the report, so you can follow it character by character.
The whole reproduction is one input string and one command. There is no request, no session and no target host: the payload is pasted into the compiler's standard input, and the compiler's own sanitizer output is the evidence. If you have read the previous sections, you already know what standard input is (the text stream a program receives when you type into the terminal after starting it) and what AddressSanitizer is (the memory-checking tool that was built into this copy of the program). This section puts them together.
Step 1: the payload and the command
The input is an interpolated expression containing a long run of opening square brackets. Here it is exactly as it appears in the report:
Root cause: the repeating cycle
The previous section showed the crash output. This section reads that output closely, because the crash report is not just a notice that something went wrong: it is a map of the bug. Once you know how to read it, the cause is visible in the trace itself.
A stack trace, also called a backtrace, is the list of function calls the program was in the middle of when it stopped. Each line, called a frame, is one function that had been called and had not yet returned. The frames are numbered from #0 at the top, which is where the program actually died, down through #1, #2 and so on, each one the function that called the one above it. Reading a trace from top to bottom is like reading a list of "who called whom": frame #0 was called by #1, which was called by #2, and so on back to the start of the program.
The stack trace is the root cause made visible. The parser is a set of mutually recursive descent functions, and each nested [ in the input adds one full cycle of frames to the stack before the parser can make any progress on the next character. The cycle, read from the trace, is:
parse_bracket_listatparser.cpp:1106parse_factoratparser.cpp:1391parse_operatorsatparser.cpp:1350parse_expressionatparser.cpp:1310parse_relationatparser.cpp:1256parse_conjunctionatparser.cpp:1234parse_disjunctionatparser.cpp:1213parse_space_listatparser.cpp:1186- back to
parse_bracket_listatparser.cpp:1106
The nine frames in order
To see this in the trace, look at frames #13 to #21. Those nine frames are the first complete cycle. Here is what each one is doing, in plain words:
parse_bracket_listatparser.cpp:1106is the function that reads a bracketed list. It has just met a[and is about to read what comes after it. To do that, it needs to understand the contents, so it calls the next function down.parse_factoratparser.cpp:1391reads a single factor, one of the building blocks of an expression. A factor can be a bracketed list, which is why it can call back intoparse_bracket_list.parse_operatorsatparser.cpp:1350reads a sequence of operators and their operands, such as a sum or a comparison.parse_expressionatparser.cpp:1310reads a whole expression, which is made of operators.parse_relationatparser.cpp:1256reads a relation, a comparison between two things.parse_conjunctionatparser.cpp:1234reads a conjunction, a combination of conditions joined together.parse_disjunctionatparser.cpp:1213reads a disjunction, another way of combining conditions.parse_space_listatparser.cpp:1186reads a list of items separated by spaces.- back to
parse_bracket_listatparser.cpp:1106, which is where the cycle started, and where the next[sends it round again.
Each of these functions is one grammar rule, and each one calls the next because the grammar allows each construct to contain the next. That is the recursive-descent design explained earlier. In a normal stylesheet the chain runs once, the closing ] is found, and the functions return one by one, unwinding the stack. Here there is no closing ], so the chain never comes back.
From #21 onward the same nine frames repeat with identical line numbers, all the way to #251 where the trace ends. Identical line numbers are the key detail. If the parser were doing different work at each level, the line numbers would change. The fact that they repeat exactly means the program is going round the same loop, over and over, adding the same nine frames each time. That is what runaway recursion looks like in a trace.
The trace does not go on forever because the stack ran out. It stops at #251 because that is where there was no room for another frame. The number of repetitions is not fixed by the program; it is fixed by how much stack the operating system gave the process and how large each frame is. On a different machine, or with a different build, the trace would stop at a different frame number, but the repeating pattern would be the same.
Why it never unwinds
The reason the cycle never unwinds is the same reason the input is accepted at all. Each [ is a valid opening of a bracketed list, so parse_bracket_list calls parse_factor, which calls parse_operators, and so on around the loop, and the next [ starts another cycle before the previous one returns. Nothing in that cycle consumes the input in a way that would let the parser unwind. The parser is not making progress towards the end of the list; it is making progress into it, one level deeper for each character.
The consequence is that the stack grows linearly with the number of opening brackets. "Linearly" means in direct proportion: twice as many brackets, twice as many frames. There is no depth counter, no maximum nesting constant and no early rejection of an unclosed list anywhere in the frames shown, so the only limit is the size of the process stack. A depth counter would be a variable that goes up by one each time the parser descends a level and down by one each time it comes back, with a check that refuses to go past some maximum. A maximum nesting constant would be the fixed number that check compares against. Neither appears in the trace.
When the stack runs out, the failure does not surface as a parse error. It surfaces at the deepest point of the recursion, in parse_value at parser.cpp:1626, where the code tries to construct a std::string and the allocation path cannot get a frame. A std::string is the standard C++ type for a piece of text, and constructing one means asking for a small amount of memory to hold the characters. That is why the top of the trace is __interceptor_malloc and operator new rather than a parser function: the parser had already used the stack, and the next ordinary allocation was the call that could not be made. operator new is the C++ way of requesting memory, and it sits just below malloc in the trace.
Why nothing stopped it is only implied by the report. The likely explanation is that the grammar treats an opening bracket as sufficient reason to descend, and the parser has no guard that counts nesting depth or caps it, so a syntactically incomplete value is walked as far as the input goes. A parser that checked its own depth, or that rejected an unclosed bracket once a limit was reached, would have returned an error instead of exhausting the stack.
It is worth being clear about what the trace does and does not prove. It proves that the same nine functions repeated until the stack was full, and that the final failure was an ordinary memory request that could not be served. It does not, on its own, prove that no other code path could also overflow the stack; it shows one input that does. That is enough for a bug report, because one reproducible input is all a maintainer needs to start fixing it.
Impact: who is actually affected
A crash report can sound alarming, so it is worth being precise about what this one actually means for the people running the software. The direct effect is that the sassc process aborts. The input is a single line of text, and the cost to whoever sends it is negligible, while the compiler loses its entire stack and dies inside the allocator rather than returning a parse error.
To understand the impact, you need one more security concept: the difference between the kinds of harm a bug can do. Security people usually group them under three headings, often called the CIA triad:
- Confidentiality: keeping data secret. A bug that lets someone read files or messages they should not see breaks confidentiality.
- Integrity: keeping data correct and unaltered. A bug that lets someone change records, deface a page or tamper with a build breaks integrity.
- Availability: keeping a service working for the people who need it. A bug that makes a program stop working breaks availability.
This report is squarely in the third category. The weakness it is filed under, uncontrolled resource consumption, matches what the trace shows: the resource being consumed is stack space, and the consumption is driven by the length of the attacker's input. "Uncontrolled resource consumption" is the general name for a family of bugs where a program uses up a limited resource, such as memory, disk space, processing time or, as here, stack space, because nothing in the program limits how much of it the input can demand. The word "uncontrolled" is the important one: the resource itself is not the problem, the absence of a limit is.
The report does not claim anything beyond the crash. There is no evidence in it of memory corruption, code execution or data exposure. Memory corruption would mean the program writing data into the wrong place in memory, which can sometimes be turned into running an attacker's code; code execution means exactly that, an attacker getting their own instructions to run on the machine; data exposure means private information leaking out. None of these appear in the trace. The failure is a stack overflow caught by AddressSanitizer, and the process aborts. The impact is therefore availability only, and only for the process that parses the crafted stylesheet.
Who can actually reach it
Who is actually exposed depends entirely on whether the deployment compiles Sass it did not write. This is the heart of the impact question, and it splits deployments into two very different groups.
Group one: a build pipeline compiling its own stylesheets. Many websites are built by a process that takes the site's Sass files from its own repository, compiles them to CSS, and publishes the result. A repository is the shared store of a project's files, often hosted on a service like GitHub, where developers keep and review changes. In this setup, the only Sass that ever reaches the compiler is Sass the team itself wrote. An outside party cannot send input to it. The crash is then a robustness bug: a developer can trigger it by accident, perhaps by pasting a malformed value while editing, and the build fails with a confusing error. That is annoying, but it is not an attack. Nobody outside the team gains anything.
Group two: a service compiling user-supplied Sass. The situation changes when a service accepts Sass from users. Examples include a hosted compiler that takes source code and returns CSS, a theme or template upload feature where a customer supplies styling, or any tool that turns user-supplied Sass into CSS on the server. Here the input comes from strangers, and the compiler runs on a machine the strangers do not control. In that case a single short string is enough to take down the process handling the request, and repeating it keeps the service down for as long as the attacker keeps sending it.
This second pattern has a name: a denial of service, often shortened to DoS. It means making a service unavailable to its legitimate users without breaking into it. A comparison: it is the difference between picking the lock on a shop and simply standing in the doorway so nobody else can get in. The second is cruder, but it still stops the shop doing business. A denial of service does not require any secret, any password or any clever trick; it only requires finding an input the service cannot handle and sending it repeatedly.
What determines the real cost
Whether that process is shared with other users, and how quickly it restarts, determines how much a single crash actually costs. A few factors matter:
- Is the compiler process shared? If one long-running process compiles Sass for every visitor, then crashing it affects everyone using the service at that moment, not just the person who sent the bad input. If each request gets its own short-lived process, the damage is confined to that one request, and the service carries on for everyone else.
- Does it restart automatically? Many services are supervised by a system that restarts a crashed process immediately. In that case a single crash is a brief blip. If nothing restarts it, the service stays down until a person notices.
- How cheap is the attack? The input is one short line. Sending it again and again costs the attacker almost nothing, so if the service restarts quickly, the attacker can simply keep sending. The defender then has to block the input, not just wait for the restart.
- What else runs in that process? If the compiler shares a process with other work, crashing it may interrupt that work too. The report does not describe any such setup, so this is a question for whoever deploys the software, not something the report answers.
The report itself does not go into these deployment details. It demonstrates the crash and leaves the question of exposure to the reader, which is the right scope for a bug report: the researcher shows the defect, and the people running each deployment decide whether it applies to them.
Why low severity is the honest rating
It is worth understanding why a crash like this is usually treated as low rather than high, because severity ratings are often misunderstood. A severity rating is not a measure of how interesting a bug is; it is a rough measure of how much harm it can do in a realistic deployment. A bug that lets an attacker read other users' data, or run their own code on the server, is rated high because the harm is severe and hard to undo. A bug that makes a process crash, with no data lost and no code run, is rated low because the harm is temporary and limited.
The rating also reflects reach. To exploit this, an attacker needs a target that compiles untrusted Sass. Many deployments do not, and for those the bug is unreachable from outside. A vulnerability that only matters in a particular kind of setup is, all else being equal, less severe than one that matters everywhere.
None of that makes the finding worthless. A low-severity crash is still a real defect: the parser should return an error, not die. And in the deployments where it does apply, a stranger can stop the service with one line of text, which is a genuine problem for the people running it. The rating is a statement about typical harm, not a statement that nothing needs fixing.
The next section looks at what a fix would involve, and why the report itself does not contain one.
Fix: what a repair would look like
It contains no patch, no commit reference, no version number for a corrected release, and no statement from the maintainers about what was changed or when. Nothing in the text says whether the issue was resolved, and nothing in it records a maintainer response. What follows is therefore about the direction a fix would take, not about what was actually done.
To understand what needs repairing, it helps to restate the defect in one sentence: the parser's recursion depth is bounded only by the process stack. The parser has no idea how deep it has gone, so it keeps descending until the operating system's stack limit stops it, and the way it stops is a crash. Any fix has to introduce a bound the parser controls itself, so that the failure becomes a parse error rather than a process abort. A parse error is the ordinary, expected response to input the parser cannot understand: the program says "this is not valid" and carries on, instead of dying.
There are two broad ways to do that.
Direction one: count depth explicitly
The first approach is to make the parser keep track of how deep it has gone. Each of the descent functions in the cycle, or a single shared entry point that they all pass through, increments a counter on entry and decrements it on exit. When the counter exceeds a fixed maximum, the parser raises its normal syntax error and unwinds.
A comparison: think of a lift with a maximum load. Every person who steps in is counted, and when the count reaches the limit, the next person is politely refused. The lift does not wait until the cables snap; it enforces its own limit, well before the physical one. A depth counter works the same way: it refuses to go deeper long before the stack is anywhere near full.
The limit can be set well below the stack size that the smallest supported build provides, which leaves headroom for the frames the parser already uses before it reaches the deep construct. "Headroom" means a safety margin: if the stack can hold a thousand frames and the parser already uses a hundred before it starts reading a value, the depth limit should be set so that the deepest allowed input still fits comfortably in what remains.
Why is this the more thorough of the two directions? Because it covers every recursive construct in the grammar, not just brackets. If the parser can descend through function calls, nested interpolation, or any other construct that calls back into the value parser, the same counter catches all of them. The counter does not care what the input looks like; it only cares how deep the parser has gone.
Direction two: reject the input earlier
The second approach is to refuse the input before the recursion starts. A bracketed list that is never closed is not valid Sass. If the parser tracked unclosed delimiters and refused to descend past a threshold, or if a pre-pass checked bracket balance before the expression parser ran, the long run of [ characters would be rejected before the recursion started.
A delimiter is a character that marks the beginning or end of something: [ and ] for a bracketed list, ( and ) for a parenthesised group, { and } for a block. A pre-pass is a separate, simpler scan of the input that runs before the main parser, checking one property of the text without trying to understand it fully. Checking bracket balance is exactly that kind of job: walk the characters, keep a count of how many openers and closers you have seen, and complain if they do not match.
This is cheaper but narrower. It only covers the bracket case, whereas a depth counter covers every recursive construct in the grammar. An input that uses a different construct to drive the parser deep, such as a long chain of nested function calls, would sail past a bracket-balance check and still overflow the stack.
What either direction achieves
Either approach turns the observed behaviour into the behaviour a parser should have had in the first place. The input in this report is malformed, and the correct response to malformed input is an error message, not an abort inside __interceptor_malloc. A depth limit also protects against inputs that are well formed but deeply nested, which a balance check alone would not catch. A value with thousands of correctly matched bracket pairs, one inside the next, is perfectly valid Sass, and a balance check would wave it straight through; only a depth counter stops it.
That last point is worth dwelling on, because it is easy to miss. The bug is not really about brackets being unclosed. It is about the parser having no limit on how deep it will go. Closing the brackets does not remove the danger; it only removes one way of reaching it.
The general lesson
The general lesson for other recursive-descent parsers is the same: recursion depth is an input-controlled resource, and it needs an input-independent cap. "Input-controlled" means the amount of the resource the program uses is decided by whoever wrote the input. "Input-independent cap" means the limit is a fixed number chosen by the programmer, not something the input can influence.
The cap should be enforced in the parser rather than left to the operating system's stack limit, because the stack limit varies between platforms and build configurations, and because hitting it produces a crash rather than a diagnostic. A diagnostic here means a message that tells the user what is wrong with their input. If the parser relies on the operating system's limit, then the same input might be accepted on one machine and crash on another, depending on how much stack each machine happens to give the process. That is not a behaviour anyone can rely on or test against.
A comparison: relying on the operating system's stack limit is like relying on the floor of a building to stop you falling, rather than putting a railing on the stairs. The floor will stop you, eventually, but not in a way anyone would call safe or predictable. A railing is a limit you chose, placed where you wanted it, and it stops you before the fall rather than at the end of it.
For anyone writing a parser, the practical rule is simple: whenever a function can call itself, directly or through a chain of other functions, ask what limits how many times it can do so. If the answer is "the input" or "the operating system", there is a bug waiting to be found.
Variants to test
The report demonstrates one construct, the opening square bracket, but the mechanism it exposes is the recursion cycle itself, and that cycle is entered from several grammar productions. Anything that makes the parser descend one level per input character without a depth check is a candidate. The positive result in every case is the same shape of evidence: an AddressSanitizer (or equivalent) stack-overflow report whose frames repeat the same parser functions with identical line numbers, ending in SUMMARY: AddressSanitizer: stack-overflow.
Before going through the six variants, it helps to be clear about what a "variant" is here. The bug is not the [ character. The bug is that the parser will follow any construct that nests, one level per character, without ever asking whether it has gone too far. The [ is simply the easiest way to make it nest. A variant is another way of making the same parser go deep, and the point of trying them is to find out whether the fix, when it comes, covers only the bracket case or the whole family. If a fix only rejects unclosed brackets, a variant that uses a different construct will still crash the program, and the bug is not really fixed.
Each variant below is a hypothesis, not a confirmed finding. The report only proves the bracket case. The rest are things worth trying, with a description of what a positive result would look like.
1. Other bracket and grouping characters
The trace shows parse_bracket_list as the frame that re-enters the cycle. That function is named after the square bracket, but the parser also has to handle other grouping characters. In Sass, as in most languages, ( and ) group a parenthesised expression, and { and } mark a block. Each of these is a delimiter: a character that marks the beginning or end of something.
The idea is to try the same long run with ( and with { inside an interpolated value, and to try mixing openers so that each character starts a different nested construct. For example, instead of a run of [, a run of ( inside the same #{...} wrapper. The question being asked is whether the parenthesis parser has the same recursive shape as the bracket parser. If it does, the same input length should produce the same crash.
A positive result is a repeating cycle of parser frames in the trace, even if the function names differ from parse_bracket_list. You would look for a different function name appearing at the point where the cycle restarts, but the same overall pattern: a fixed set of frames repeating with identical line numbers until the trace ends. If the trace shows a different cycle, that is itself useful information, because it tells you the fix needs to cover more than one entry point.
Mixing openers is a slightly different test. If you send [({[({ and so on, each character may start a different nested construct, so the cycle might not be a single repeating block of nine frames but a longer pattern that repeats every few characters. The evidence to look for is still repetition: the same sequence of frames coming round again and again.
2. Deeply nested function calls
A Sass value can call a function, and a function's argument list is itself a value. That sentence contains the whole idea. If a function's arguments are parsed as values, and a value can contain a function call, then a function call can contain a function call, and so on. A long chain of nested calls, each opening before the previous one closes, should drive the same descent.
A comparison: imagine a form where one of the questions is "list the names of your children", and for each child there is a follow-up form asking the same question about their children. If someone fills in the first form with a child, then fills in that child's form with a grandchild, and so on, the pile of forms grows with every generation. The parser reading nested function calls is doing the same thing: each call opens a new form before the previous one is finished.
The test is to write a value that is a function call whose argument is another function call whose argument is another, many levels deep. Look for the argument-parsing frames repeating in the trace.
Why does this variant matter for the fix? Because a bracket-balance check would not catch it at all. There are no brackets to balance. If this variant crashes, it proves that the fix has to be a depth counter rather than a check on one kind of delimiter.
3. Nested interpolation
The payload already uses #{...}. That syntax is interpolation: the parser sees #{, knows that an expression follows, and reads it until the matching }. The expression inside can itself contain interpolation, which means the parser can be sent back into the interpolation code from inside the interpolation code.
Nesting interpolation inside interpolation, many levels deep, exercises the same value parser from a different entry point. The input would look like #{#{#{...}}}, with each level opening before the previous one closes. The parser reads the outer #{, starts reading an expression, meets another #{, starts reading that expression, and so on.
A positive result is a stack overflow whose deepest frames are in the interpolation or value-parsing code rather than in the bracket-list code. That distinction is the interesting part. If the crash happens in a different set of functions from the bracket case, then the parser has more than one place where it can be driven deep, and a fix aimed only at parse_bracket_list would leave this path open.
This variant is also a good test of whether the parser tracks its own nesting at all. Interpolation is a construct where a depth counter would be natural to add, because the parser already has to keep track of how many #{ it has opened in order to know when to stop. If it keeps that count but never checks it against a maximum, the same bug is present in a slightly different form.
4. Nested lists and maps in other positions
The report only shows the construct in a variable assignment. A variable assignment is one of many places in a Sass file where a value can appear. Other places include:
- a property value, the part of a CSS rule after the colon, such as the colour in
color: red;; - a mixin or function argument, the values passed into a reusable block of styles;
- an
@ifcondition, the expression that decides whether a block of styles applies; - a map key or value, the two halves of an entry in a map, which is Sass's small dictionary type.
Each of these is a separate call into the expression parser. The question is whether every one of those call sites reaches the same recursive descent without a depth check, or whether some of them have a guard that the variable-assignment path lacks.
The test is to try the same bracket run in each of these positions. A positive result is the same crash, with the same repeating cycle, from each position. If some positions crash and others return a clean error, that tells you where the guards are and where they are missing, which is exactly the kind of detail a maintainer needs when writing the fix.
Why might the positions differ? Because a parser is written by people, and people add checks where they think of them. A developer might have added a limit to the @if condition parser after an earlier bug report, without realising that the property-value parser has the same problem. Trying each position is a way of mapping which paths are protected and which are not.
5. Other recursive-descent parsers
The pattern is not specific to Sass. Compilers and interpreters for CSS preprocessors, template languages, query languages, configuration formats and regular-expression engines all tend to parse nested constructs by recursion. A regular-expression engine is the part of a program that matches patterns in text, and it is a classic place to find this bug, because regular expressions are full of nested groups.
The method is the same everywhere: feed each one a value that opens far more grouping characters than it closes, through whatever interface accepts untrusted input, and watch for a crash rather than a syntax error. The interface matters. If you can only run the parser on your own machine, you are testing your own tool. If the parser sits behind a website that accepts a template or a query from visitors, you are testing something that strangers can reach.
A positive result is a process abort with a repeating call cycle in the backtrace. There is one important exception: a clean "maximum call stack size exceeded" message. Some languages, notably JavaScript, enforce their own call-depth limit and raise an error when it is reached. If you see that message, the parser has a limit, and the input was rejected rather than crashing the process. That is the behaviour the fix in this report is aiming for. Seeing it tells you that the implementation you are testing already does the right thing, at least for this input.
This variant is the broadest, and it is where the finding has the most value beyond Sass. The same mistake, a recursive parser with no depth cap, has been made in many projects. Knowing the shape of the evidence, a repeating cycle of frames ending in a stack-overflow summary, lets you recognise it quickly when you meet it elsewhere.
6. Well-formed but deep input
This is the most important variant, because it tests whether the fix would actually work. A balance check on unclosed delimiters would not catch input that is correctly closed but nested thousands of levels deep. Try a value with a very large number of matched bracket pairs, one inside the next: [[[[...]]]], with every [ matched by a ].
This input is valid Sass. There is nothing malformed about it. A parser that checks bracket balance will see that the brackets match and wave it through. But if the parser still descends one level per bracket, it will still run out of stack, because the depth is the problem, not the balance.
If this still overflows the stack, the parser has no depth cap at all, only, at best, a balance check, and the fix needs the explicit counter described above. That is the conclusion this variant is designed to force. It separates the two possible fixes: a balance check, which is cheap but narrow, and a depth counter, which is more work but covers everything.
A comparison: a balance check is like a doorman who counts how many people go in and how many come out, and refuses entry if the numbers do not match. A depth counter is like a doorman who refuses entry once the room is full, regardless of how many people are expected to leave later. The first catches people who never leave; the second catches the room being overfilled, which is the actual danger.
What to record for each variant
For each variant, the useful evidence is the same as in this report: the exact input, the exact command or request, and the sanitizer or interpreter output showing the repeated frames.
A symbolised trace is one where the raw addresses have been translated into function names, file names and line numbers, as in the trace in this report. Without that translation, a crash report is a list of numbers, and a maintainer cannot tell whether the program died from recursion, from a bad pointer, or from something else entirely. The difference between a symbolised trace and a raw one is the difference between "it crashed somewhere in the parser" and "it crashed here, in this function, at this line, after repeating this cycle two hundred and fifty times".
It also helps to record what did not crash. If a variant returns a clean syntax error, that is a useful data point: it shows that path has a guard, and it narrows down where the fix needs to go. A report that says "these five inputs crash and these three return errors" is more useful than one that says "it crashes", because it maps the boundary of the bug.
Finally, keep the inputs small. The whole point of this bug is that a short string is enough. If a variant needs a megabyte of text to trigger, it is a different and much less interesting problem, because a service that accepts a megabyte of input has other things to worry about. The bracket payload in this report is a single line, and the variants worth reporting are the ones that are similarly cheap to send.
Hunting notes: where this kind of bug hides
The previous sections covered the bug itself, what a fix would look like, and the variants worth trying. This last section is about the practical side: if you wanted to find a bug like this in the wild, where would you look, what would tell you that you had found a candidate, and how would you present it so that someone takes it seriously. None of this requires any special tooling beyond a browser, a terminal and the willingness to read error messages carefully.
The core idea to carry into all of it is this: parser stack exhaustion hides wherever a recursive-descent parser is exposed to input the author of the input controls. The pattern is easy to miss during recon because the vulnerable component is rarely the web front end. It is a library linked into a build step, a background worker, a preview service or a command-line tool that something else invokes. You will not usually see it by clicking around a website. You will see it by noticing that a website is doing something on the server that involves reading text you supplied.
Recon, short for reconnaissance, is the stage of security work where you look at a target and work out what it is made of before you try anything: what software it runs, what features it offers, what inputs it accepts. It is the equivalent of walking around a building and reading the signs before deciding which door to try.
The places worth looking at first are the ones where a stylesheet, template, query or configuration file is compiled on behalf of a user rather than by the user on their own machine. That distinction is the whole game. If the user compiles on their own laptop, a crash harms only them. If a server compiles on the user's behalf, a crash harms the server, and the user is the one who chose the input.
Where to look: four typical hiding places
1. Hosted compilers and previews
Any service that accepts Sass, Less, Stylus or a template language and returns compiled output is running a parser on someone else's input. Less and Stylus are two other stylesheet languages in the same family as Sass: they add variables, nesting and expressions to CSS, and like Sass they have to be compiled before a browser can use them. A template language is a way of writing a page with placeholders in it, such as "insert the user's name here", which a server fills in before sending the page to the browser.
The features to look for are the ones where a user supplies source and gets transformed output back:
- a theme upload, where a customer supplies a styling file for their storefront or profile;
- a "compile and preview" button, which takes what you typed and shows you the result;
- an API that takes source code and returns CSS.
An API, short for Application Programming Interface, is a way for one program to talk to another over the network. Where a website shows you a page with buttons, an API is the same service without the page: you send it a request in a defined format and it sends back data. Many websites use APIs internally, and some expose them publicly.
Why are these good candidates? Because the service has deliberately taken on the job of parsing text it did not write. That is exactly the precondition for this bug. The service's authors had to decide how much to trust the input, and if they trusted it enough to hand it to a parser with no depth limit, the crash is one short string away.
2. Build and CI infrastructure
CI stands for Continuous Integration, a practice where every change to a project's code is automatically built and tested by a server, so that mistakes are caught quickly. The server that does this is often called a runner. Pipelines that compile assets from pull requests, including from forks, run the parser on contributor-supplied files.
A pull request is a proposed change to a project, submitted so that the maintainers can review it before it is merged. A fork is a copy of a project that someone else controls. Many open-source projects run their automated build on pull requests from anyone, including strangers, because that is how contributions get checked. If the build compiles Sass from the pull request, then a stranger can put a crafted stylesheet in their pull request and have the project's own build server parse it.
A crash there can stall a job or a shared runner. A job is one unit of work in a build pipeline, such as "compile the stylesheets" or "run the tests". A shared runner is a machine that runs jobs for many projects or many contributors in turn. If one job crashes the runner, other jobs waiting on that machine are delayed or lost. The harm is not to the attacker, who gains nothing, but to the project, which loses build time and has to investigate.
This is a good example of why "low severity" does not mean "not worth fixing". A crash in a CI runner is not a data breach, but it is a real operational problem, and it is reachable by anyone who can open a pull request.
3. Editors, linters and language servers
These parse incomplete input constantly, and they often run in the same process as the user's session.
An editor is the program a developer writes code in. A linter is a tool that reads code and points out mistakes or style problems without running it. A language server is a helper program that an editor talks to in order to get features like autocomplete, go-to-definition and error highlighting. The editor sends the language server the text you are typing, and the language server parses it to work out what to suggest.
Why are these interesting? Because they parse text that is, by design, half-finished. You are typing a value, and the editor asks the language server what to do with it before you have closed the bracket. A parser that assumes its input is complete will be fed incomplete input many times a second. If it has no depth limit, a long run of opening brackets typed into the editor is enough to crash the language server, and because the language server often runs in the same process as the editor session, the crash can take the editor with it.
The harm here is usually to the developer using the tool, not to a remote attacker, so the severity is low. But it is a real robustness problem, and it is easy to demonstrate: type the payload into a file and watch the tool die.
4. Anything embedding libsass or a similar library
The library is designed to be linked into other tools, so the vulnerable parser can sit behind an interface that looks nothing like a compiler. This is the broadest category and the hardest to enumerate, because LibSass can be inside anything: a static site generator, a documentation tool, a design system's build script, a plugin for a content management system, a mobile app that renders themes.
A static site generator is a tool that takes source files and produces a finished website as plain files, without a database or server-side code. A content management system is software for building and editing a website through a browser, such as WordPress. A plugin is an add-on that extends another program's features.
The point is that you cannot tell from the outside whether a tool uses LibSass. You have to look for clues, which is what the next part is about.
Recon signals: how to tell you are looking at a parser
The recon signals that point at this kind of target are indirect. You are not looking for a sign that says "this site uses LibSass". You are looking for evidence that the site is parsing text you supplied, and for hints about which parser it is using.
Signal 1: a feature that takes source and returns transformed output
A page or API that accepts source code and returns transformed output is the clearest signal. If you can type Sass into a box and get CSS back, or upload a template and see a rendered page, then a parser is running on the server with your input. That is the precondition. Everything else is about confirming which parser and whether it has a depth limit.
Signal 2: names in version strings, error messages and stack traces
Version strings, error messages and stack traces that name a parser library, a source file or a line number tell you which implementation is behind the interface and whether it is the one you have a payload for.
A version string is the label a program gives for its release, such as "1.2.3". Programs often include it in error pages, response headers or a footer. If the version string names LibSass, or names a tool known to use it, you have a strong lead.
An error message is what a program says when it cannot do what was asked. A parser's error message often quotes the offending input and says what it expected. If the message mentions a file like parser.cpp or a function like parse_value, you know the implementation is LibSass, because those names come from its source. If it mentions a different file or a different library, you know it is something else, and you can go and look for that library's equivalent bug.
A stack trace in an error page is the same kind of list described earlier: the chain of function calls the program was in when it failed. A stack trace that leaks to the public is a gift, because it names the functions and files directly. Many production systems hide stack traces from users, but development and staging environments often show them, and so do some misconfigured production ones.
Signal 3: a syntax error that quotes your input
A response that returns a syntax error quoting the offending input confirms that the input reached the parser rather than being rejected earlier. This is a simple but important check. Send something obviously invalid, like a single [, and see what comes back. If the response says "unexpected end of input" or "unclosed bracket" and shows your [, then the parser read your text and complained about it. That means the path from your input to the parser is open.
Why does this matter? Because many services validate input before parsing it. They might reject anything that does not look like Sass, or cap the length, or strip certain characters. If your invalid input comes back with a parser error, you know the validation did not stop it. If it comes back with a generic "invalid input" message, you know something rejected it earlier, and you need to find a way past that first.
Signal 4: build logs and public issue trackers
Build logs and public issue trackers that mention the library name are useful for the same reason. A build log is the record a build system keeps of what it did: which commands it ran, what output they produced, and whether they succeeded. Build logs are often public for open-source projects, because the build runs on a public CI service. If the log shows a command like sassc or a library name like libsass, you know the project compiles Sass, and you know which tool it uses.
An issue tracker is the place where a project records bugs, feature requests and discussions. Searching it for the library name can tell you whether the project has already hit parser problems, and whether the maintainers are aware of the risk. It can also tell you which version they use, if someone has mentioned it.
How to present the finding
The demonstration in this report is a good model for how to present the finding. They gave the exact input, the exact command that consumed it, and the full sanitizer output. That combination is what makes a report convincing: anyone reading it can repeat the experiment and see the same result.
Why does that matter so much? Because a bug report is a claim, and a claim without evidence is just an opinion. A maintainer receives many reports, some of them wrong, some of them describing behaviour that is actually intended, and some of them impossible to reproduce. The reports that get acted on are the ones where the maintainer can see the problem for themselves without having to guess what the reporter did.
Three things in the output make the case on their own:
- The trace is symbolised, with function names, source paths and line numbers, so the reader can see the recursion rather than take it on trust. A symbolised trace shows exactly which functions were repeating, which is the evidence that the cause is recursion and not something else.
- The same nine frames repeat with identical line numbers, which shows a cycle rather than a one-off deep call. A single deep call could be a legitimate piece of code doing a lot of work. A repeating cycle with the same line numbers is the signature of a loop that never exits.
- The
SUMMARYline names the failure class directly, so there is no argument about whether the process crashed or merely returned an error. The lineSUMMARY: AddressSanitizer: stack-overflowsays, in the tool's own words, what happened. A maintainer does not have to interpret it.
A crash report without symbols, or one that stops at a raw address, is much weaker: it does not distinguish unbounded recursion from an unrelated memory bug, and a maintainer can reasonably ask for more. Building with AddressSanitizer and debug information, as was done here, costs little and turns a vague "it crashes" into evidence that stands by itself.
A comparison: presenting a crash without symbols is like reporting a fire by saying "something smells burnt". Presenting it with a symbolised trace is like saying "the fire is in the kitchen, at the back of the oven, and here is a photo". The second gets a fire engine; the first gets a puzzled look.
There is one more thing worth doing when you present a finding: say what you did not find. If you tried to read data and could not, say so. If you tried to run code and could not, say so. That honesty makes the parts you did find more credible, because it shows you are not overstating.
Scope and honesty about severity
The last point is scope. The report is honest about what it shows: a local process abort from a single short string. That framing is what makes it credible. Claiming remote code execution or data exposure from a stack overflow in a parser would have been unsupported by the trace, and the trace is the whole argument.
Why is honesty about severity so important? Because severity claims are checked. If you claim that a crash lets an attacker run code, a maintainer will look for the mechanism, and if there is none, the whole report loses credibility, including the parts that were true. If you claim low severity and describe exactly what you saw, the maintainer can verify it quickly and decide what to do. A modest, accurate report gets fixed. An inflated one gets closed.
The same applies to scope. The report does not claim that every deployment is affected. It shows a crash in a local build and leaves the question of who is exposed to the reader. That is the right scope, because the researcher cannot know how every deployment uses the library. A report that says "this crashes the compiler" is true and useful. A report that says "this takes down every website that uses Sass" would be a guess, and a wrong one.
For anyone starting out in security, this is the most useful lesson in the whole report. The finding is not dramatic. It is a crash, in a local tool, with no data lost and no code run. But it is described precisely, demonstrated reproducibly, and rated honestly. That combination is what makes a report worth reading, and it is a better model to follow than any amount of dramatic language.
Glossary
- AddressSanitizer (ASan): a tool added when a program is built that watches for memory problems and prints a detailed report when one occurs.
- API (Application Programming Interface): a way for one program to talk to another over a network, sending requests in a defined format and receiving data back.
- Availability: the property of a service being usable by the people who need it; a bug that stops a service working breaks availability.
- Backtrace: another name for a stack trace, the list of function calls a program was in when it stopped.
- Binary: the compiled, runnable form of a program, as opposed to its source code.
- Bracketed list: a Sass value written between square brackets,
[and]. - Build log: the record a build system keeps of the commands it ran and the output they produced.
- Build pipeline: an automated sequence of steps that turns source files into a finished product, such as compiling stylesheets and running tests.
- CI (Continuous Integration): the practice of automatically building and testing every change to a project on a server.
- Code execution: an attacker getting their own instructions to run on a machine.
- Command-line compiler: a program run by typing its name in a terminal, which reads input and writes output without a graphical interface.
- Compiling: translating a stylesheet or program from one form into another; for Sass, turning Sass text into CSS text.
- Confidentiality: the property of data being kept secret; a bug that lets someone read data they should not see breaks confidentiality.
- Content management system: software for building and editing a website through a browser.
- CSS (Cascading Style Sheets): the language browsers use to decide how a web page looks.
- C++: a programming language often used where speed matters; LibSass is written in it.
- Data exposure: private information leaking out to someone who should not have it.
- Debug information: extra data stored inside a compiled program that records which source code each part came from, allowing crashes to be traced to function names and line numbers.
- Delimiter: a character that marks the beginning or end of something, such as
[and]or(and). - Denial of service (DoS): making a service unavailable to its legitimate users without breaking into it.
- Depth counter: a variable that goes up each time a parser descends a level and down each time it returns, used to enforce a maximum nesting depth.
- Diagnostic: a message that tells the user what is wrong with their input.
- Editor: the program a developer writes code in.
- Error message: what a program says when it cannot do what was asked.
- Expression: a piece of Sass that produces a value, such as a sum or a comparison.
- Factor: one of the building blocks of an expression, such as a number or a bracketed list.
- Flag: a short option that changes how a command behaves, such as
-s. - Fork: a copy of a project that someone else controls.
- Frame: one entry in a stack trace, representing one function that had been called and had not yet returned.
- Function: a named block of code that does one job and can be called by name from elsewhere.
- Headroom: a safety margin; spare capacity left unused so that a limit is not reached unexpectedly.
- HTML: the language that holds the content of a web page, such as headings, paragraphs and links.
- Integrity: the property of data being correct and unaltered; a bug that lets someone change data breaks integrity.
- Interpolation: the Sass feature where an expression is embedded inside text using
#{...}and replaced with its result. - Issue tracker: the place where a project records bugs, feature requests and discussions.
- Job: one unit of work in a build pipeline.
- Language server: a helper program an editor talks to for features like autocomplete and error highlighting.
- Less: a stylesheet language in the same family as Sass, which adds variables, nesting and expressions to CSS.
- LibSass: a C++ library that contains the logic for understanding Sass and producing CSS, designed to be linked into other tools.
- Library: a bundle of code that other programs can use, rather than a program you run yourself.
- Linter: a tool that reads code and points out mistakes or style problems without running it.
- malloc: the standard way a C or C++ program asks the operating system for a chunk of memory.
- Map: a Sass value made of key-and-value pairs, like a small dictionary.
- Maximum nesting constant: the fixed number a depth check compares against.
- Memory corruption: a program writing data into the wrong place in memory, which can sometimes be turned into running an attacker's code.
- Mixin: a reusable block of styles in Sass that can be included in other rules.
- Operator: a symbol such as
+or>that combines or compares values. - Parse error: the ordinary response to input a parser cannot understand: the program says "this is not valid" and carries on.
- Parser: the part of a program that reads text and works out its structure.
- Parsing: the step that turns a sequence of characters into a structure the program can work with.
- Patch: a change to a program's source code that fixes a bug.
- Plugin: an add-on that extends another program's features.
- Pre-pass: a separate, simpler scan of the input that runs before the main parser.
- Pull request: a proposed change to a project, submitted for review before it is merged.
- Recursive descent: a style of parser where each grammar rule becomes one function, and functions call one another to work down through the grammar.
- Regular-expression engine: the part of a program that matches patterns in text.
- Repository: the shared store of a project's files, where developers keep and review changes.
- Recon (reconnaissance): the stage of security work where you look at a target and work out what it is made of before trying anything.
- Runner: a machine that runs jobs for a build pipeline.
- Sass: a stylesheet language that adds variables, nesting and expressions to CSS and must be compiled to CSS before a browser can use it.
- sassc: a small command-line compiler that links against LibSass, reads a stylesheet and writes the compiled CSS.
- Severity: a rough measure of how much harm a bug can do in a realistic deployment.
- Shared runner: a machine that runs build jobs for many projects or contributors in turn.
- Source code: the text files a programmer writes to build a program.
- Stack: the region of memory a program uses to keep track of which function called which, and where to return to.
- Stack overflow: the situation where calls keep piling up until the stack is full and there is no room for another frame.
- Stack trace: the list of function calls a program was in when it stopped, with the most recent at the top.
- Standard input: the stream of text a program receives when you type into the terminal after starting it, or pipe text into it.
- Static site generator: a tool that takes source files and produces a finished website as plain files.
- Stylus: a stylesheet language in the same family as Sass.
- Symbolised trace: a stack trace where raw addresses have been translated into function names, file names and line numbers.
- Syntax error: an error reported when text does not follow the rules of the language.
- Template language: a way of writing a page with placeholders that a server fills in before sending the page.
- Token: a small unit of text that a parser recognises, such as a number or a bracket.
- Uncontrolled resource consumption: a family of bugs where a program uses up a limited resource because nothing limits how much the input can demand.
- Value: any piece of data in a stylesheet, such as a colour, a number, a list, a map or an expression.
- Variable: a named place to store a value so it can be referred to by name elsewhere.
- Version string: the label a program gives for its release, such as "1.2.3".
__interceptor_malloc: AddressSanitizer's replacement formalloc, which intercepts every memory request so it can be checked.