mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Makes m_fileName a shared pointer
This commit is contained in:
@@ -2318,7 +2318,7 @@ namespace yy {
|
||||
/* op */ op,
|
||||
/* variables */ v,
|
||||
/* actions */ a,
|
||||
/* file name */ *yystack_[3].location.end.filename,
|
||||
/* file name */ std::unique_ptr<std::string>(new std::string(*yystack_[3].location.end.filename)),
|
||||
/* line number */ yystack_[3].location.end.line
|
||||
));
|
||||
|
||||
@@ -2341,7 +2341,7 @@ namespace yy {
|
||||
/* op */ yystack_[0].value.as < std::unique_ptr<Operator> > ().release(),
|
||||
/* variables */ v,
|
||||
/* actions */ NULL,
|
||||
/* file name */ *yystack_[2].location.end.filename,
|
||||
/* file name */ std::unique_ptr<std::string>(new std::string(*yystack_[2].location.end.filename)),
|
||||
/* line number */ yystack_[2].location.end.line
|
||||
));
|
||||
if (driver.addSecRule(std::move(rule)) == false) {
|
||||
@@ -2362,7 +2362,7 @@ namespace yy {
|
||||
/* op */ NULL,
|
||||
/* variables */ NULL,
|
||||
/* actions */ a,
|
||||
/* file name */ *yystack_[1].location.end.filename,
|
||||
/* file name */ std::unique_ptr<std::string>(new std::string(*yystack_[1].location.end.filename)),
|
||||
/* line number */ yystack_[1].location.end.line
|
||||
));
|
||||
driver.addSecAction(std::move(rule));
|
||||
@@ -2381,7 +2381,7 @@ namespace yy {
|
||||
std::unique_ptr<RuleScript> r(new RuleScript(
|
||||
/* path to script */ yystack_[1].value.as < std::string > (),
|
||||
/* actions */ a,
|
||||
/* file name */ *yystack_[1].location.end.filename,
|
||||
/* file name */ std::unique_ptr<std::string>(new std::string(*yystack_[1].location.end.filename)),
|
||||
/* line number */ yystack_[1].location.end.line
|
||||
));
|
||||
|
||||
|
@@ -1080,7 +1080,7 @@ expression:
|
||||
/* op */ op,
|
||||
/* variables */ v,
|
||||
/* actions */ a,
|
||||
/* file name */ *@1.end.filename,
|
||||
/* file name */ std::unique_ptr<std::string>(new std::string(*@1.end.filename)),
|
||||
/* line number */ @1.end.line
|
||||
));
|
||||
|
||||
@@ -1099,7 +1099,7 @@ expression:
|
||||
/* op */ $3.release(),
|
||||
/* variables */ v,
|
||||
/* actions */ NULL,
|
||||
/* file name */ *@1.end.filename,
|
||||
/* file name */ std::unique_ptr<std::string>(new std::string(*@1.end.filename)),
|
||||
/* line number */ @1.end.line
|
||||
));
|
||||
if (driver.addSecRule(std::move(rule)) == false) {
|
||||
@@ -1116,7 +1116,7 @@ expression:
|
||||
/* op */ NULL,
|
||||
/* variables */ NULL,
|
||||
/* actions */ a,
|
||||
/* file name */ *@1.end.filename,
|
||||
/* file name */ std::unique_ptr<std::string>(new std::string(*@1.end.filename)),
|
||||
/* line number */ @1.end.line
|
||||
));
|
||||
driver.addSecAction(std::move(rule));
|
||||
@@ -1131,7 +1131,7 @@ expression:
|
||||
std::unique_ptr<RuleScript> r(new RuleScript(
|
||||
/* path to script */ $1,
|
||||
/* actions */ a,
|
||||
/* file name */ *@1.end.filename,
|
||||
/* file name */ std::unique_ptr<std::string>(new std::string(*@1.end.filename)),
|
||||
/* line number */ @1.end.line
|
||||
));
|
||||
|
||||
|
Reference in New Issue
Block a user