mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Fix validate byte range table initizliation
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
#include "operators/operator.h"
|
#include "operators/operator.h"
|
||||||
|
|
||||||
@@ -29,7 +30,9 @@ class ValidateByteRange : public Operator {
|
|||||||
public:
|
public:
|
||||||
/** @ingroup ModSecurity_Operator */
|
/** @ingroup ModSecurity_Operator */
|
||||||
ValidateByteRange(std::string op, std::string param, bool negation)
|
ValidateByteRange(std::string op, std::string param, bool negation)
|
||||||
: Operator(op, param, negation) { }
|
: Operator(op, param, negation) {
|
||||||
|
std::memset(table, '\0', sizeof(char) * 32);
|
||||||
|
}
|
||||||
|
|
||||||
~ValidateByteRange() override { }
|
~ValidateByteRange() override { }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user