Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/engine/lua.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class LuaScriptBlob {
m_data(NULL),
m_len(0) { }

LuaScriptBlob(const LuaScriptBlob&) = delete;
LuaScriptBlob& operator=(const LuaScriptBlob&) = delete;

~LuaScriptBlob() {
if (m_data) {
free(m_data);
Expand Down
4 changes: 4 additions & 0 deletions src/operators/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class Pm : public Operator {
: Operator(n, std::move(param)) {
m_p = acmp_create(0);
}

Pm(const Pm&) = delete;
Pm& operator=(const Pm&) = delete;

~Pm() override;
bool evaluate(Transaction *transaction, RuleWithActions *rule,
const std::string &str,
Expand Down
3 changes: 3 additions & 0 deletions src/operators/rx.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class Rx : public Operator {
m_couldContainsMacro = true;
}

Rx(const Rx&) = delete;
Rx& operator=(const Rx&) = delete;

~Rx() override {
if (m_string->m_containsMacro == false && m_re != NULL) {
delete m_re;
Expand Down
3 changes: 3 additions & 0 deletions src/operators/rx_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class RxGlobal : public Operator {
m_couldContainsMacro = true;
}

RxGlobal(const RxGlobal&) = delete;
RxGlobal& operator=(const RxGlobal&) = delete;

~RxGlobal() override {
if (m_string->m_containsMacro == false && m_re != NULL) {
delete m_re;
Expand Down
4 changes: 4 additions & 0 deletions src/request_body_processor/multipart.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ class MultipartPart {
class Multipart {
public:
Multipart(const std::string &header, Transaction *transaction);

Multipart(const Multipart&) = delete;
Multipart& operator=(const Multipart&) = delete;

~Multipart();

bool init(std::string *err);
Expand Down
2 changes: 2 additions & 0 deletions src/utils/ip_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ namespace Utils {
class IpTree {
public:
IpTree();
IpTree(const IpTree&) = delete;
IpTree& operator=(const IpTree&) = delete;
~IpTree();

bool contains(const std::string &ip);
Expand Down
8 changes: 4 additions & 4 deletions src/variables/rule.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class Rule_DictElement : public VariableDictElement { \
: VariableDictElement(m_rule, dictElement) { }

static void id(Transaction *t,
RuleWithActions *rule,
const RuleWithActions *rule,
std::vector<const VariableValue *> *l) {
RuleWithActions *r = rule;
const RuleWithActions *r = rule;

while (r && r->m_ruleId == 0) {
r = r->m_chainedRuleParent;
Expand Down Expand Up @@ -72,9 +72,9 @@ class Rule_DictElement : public VariableDictElement { \


static void severity(Transaction *t,
RuleWithActions *rule,
const RuleWithActions *rule,
std::vector<const VariableValue *> *l) {
RuleWithActions *r = rule;
const RuleWithActions *r = rule;

while (r && !r->hasSeverity()) {
r = r->m_chainedRuleParent;
Expand Down
Loading