mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
C++: Move some stuff from tests3.cpp to common tests.h
This commit is contained in:
@@ -12,3 +12,11 @@ public:
|
||||
void setSecurityManager(SecurityManager *const manager);
|
||||
void parse(const InputSource &data);
|
||||
};
|
||||
|
||||
typedef unsigned int XMLCh;
|
||||
|
||||
class XMLUni
|
||||
{
|
||||
public:
|
||||
static const XMLCh fgXercesDisableDefaultEntityResolution[];
|
||||
};
|
||||
|
||||
@@ -1,17 +1,9 @@
|
||||
// test cases for rule CWE-611
|
||||
// test cases for rule CWE-611 (SAX2XMLReader)
|
||||
|
||||
#include "tests.h"
|
||||
|
||||
// ---
|
||||
|
||||
typedef unsigned int XMLCh;
|
||||
|
||||
class XMLUni
|
||||
{
|
||||
public:
|
||||
static const XMLCh fgXercesDisableDefaultEntityResolution[];
|
||||
};
|
||||
|
||||
class SAX2XMLReader
|
||||
{
|
||||
public:
|
||||
@@ -25,6 +17,14 @@ public:
|
||||
static SAX2XMLReader *createXMLReader();
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ---
|
||||
|
||||
void test3_1(InputSource &data) {
|
||||
|
||||
Reference in New Issue
Block a user