mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Adds sanity check for inputs
This commit is contained in:
@@ -231,7 +231,7 @@ class Assay {
|
||||
std::string* resolve_variable_first(const std::string collectionName,
|
||||
std::string var);
|
||||
|
||||
void store_variable(std::string, const std::string &value);
|
||||
void store_variable(std::string, std::string value);
|
||||
bool update_variable_first(std::string var, const std::string &value);
|
||||
void delete_variable(std::string key);
|
||||
|
||||
|
@@ -50,7 +50,8 @@ class Driver;
|
||||
class Rules : public RulesProperties {
|
||||
public:
|
||||
Rules()
|
||||
: RulesProperties(NULL),
|
||||
: debugLog(NULL),
|
||||
RulesProperties(NULL),
|
||||
unicode_codepage(0) {
|
||||
unicode_map_table = reinterpret_cast<int *>(
|
||||
malloc(sizeof(int)*65536));
|
||||
@@ -58,7 +59,8 @@ class Rules : public RulesProperties {
|
||||
}
|
||||
|
||||
explicit Rules(DebugLog *customLog)
|
||||
: unicode_codepage(0),
|
||||
: debugLog(NULL),
|
||||
unicode_codepage(0),
|
||||
RulesProperties(customLog) {
|
||||
unicode_map_table = reinterpret_cast<int *>(
|
||||
malloc(sizeof(int)*65536));
|
||||
|
Reference in New Issue
Block a user