summaryrefslogtreecommitdiff
path: root/liborcus/liborcus-handle-invalid-xml.patch.1
blob: 4cb091d3e61bee6c6827b24bb823aa82e78c08c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur liborcus.org/include/orcus/sax_parser.hpp liborcus/include/orcus/sax_parser.hpp
--- liborcus.org/include/orcus/sax_parser.hpp	2013-12-13 20:51:55.126503773 +0100
+++ liborcus/include/orcus/sax_parser.hpp	2013-12-13 20:57:39.076174743 +0100
@@ -278,6 +278,8 @@
             special_tag();
         break;
         default:
+            if (!is_alpha(c))
+                throw malformed_xml_error("expect an alphabet.");
             element_open(pos);
     }
 }