]> gitweb.michael.orlitzky.com - libsvgtiny.git/commit
src/svgtiny_css.c: empty substrings don't match anything in CSS
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 22 Oct 2024 10:40:07 +0000 (06:40 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 22 Oct 2024 10:40:07 +0000 (06:40 -0400)
commit50bfca986511c3ee17dc8328da30567fae74116a
treeac4aa2ef009841aa7e668edd6b76fe0c83ca646a
parent8909d6ddfdbdde1bfe8416279a7eb121fe6880b9
src/svgtiny_css.c: empty substrings don't match anything in CSS

The _node_has_attribute_substring() function is responsible for
handling foo[bar*=baz] selectors. It returns "match" by reference, but
there's a special case early on for the empty substring that did not
set *match to false. This could lead to it being used ininitialized by
the caller.
src/svgtiny_css.c