File tree Expand file tree Collapse file tree
cpp/ql/test/query-tests/Security/CWE/CWE-611 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,3 +12,11 @@ class AbstractDOMParser {
1212 void setSecurityManager (SecurityManager *const manager);
1313 void parse (const InputSource &data);
1414};
15+
16+ typedef unsigned int XMLCh;
17+
18+ class XMLUni
19+ {
20+ public:
21+ static const XMLCh fgXercesDisableDefaultEntityResolution[];
22+ };
Original file line number Diff line number Diff line change 1- // test cases for rule CWE-611
1+ // test cases for rule CWE-611 (SAX2XMLReader)
22
33#include " tests.h"
44
55// ---
66
7- typedef unsigned int XMLCh;
8-
9- class XMLUni
10- {
11- public:
12- static const XMLCh fgXercesDisableDefaultEntityResolution[];
13- };
14-
157class SAX2XMLReader
168{
179public:
@@ -25,6 +17,14 @@ class XMLReaderFactory
2517 static SAX2XMLReader *createXMLReader ();
2618};
2719
20+
21+
22+
23+
24+
25+
26+
27+
2828// ---
2929
3030void test3_1 (InputSource &data) {
You can’t perform that action at this time.
0 commit comments