Merge pull request #3231 from eduar-hte/remove-copies-transformations

Remove unnecessary heap allocated copies in Transformation actions
This commit is contained in:
Ervin Hegedus
2024-08-28 14:33:59 +02:00
committed by GitHub
146 changed files with 1185 additions and 2816 deletions

View File

@@ -19,6 +19,14 @@
#include "src/operators/operator.h"
constexpr int UNICODE_ERROR_CHARACTERS_MISSING = -1;
constexpr int UNICODE_ERROR_INVALID_ENCODING = -2;
constexpr int UNICODE_ERROR_OVERLONG_CHARACTER = -3;
constexpr int UNICODE_ERROR_RESTRICTED_CHARACTER = -4;
constexpr int UNICODE_ERROR_DECODING_ERROR = -5;
namespace modsecurity {
namespace operators {

View File

@@ -22,13 +22,6 @@
#include "src/operators/operator.h"
#define UNICODE_ERROR_CHARACTERS_MISSING -1
#define UNICODE_ERROR_INVALID_ENCODING -2
#define UNICODE_ERROR_OVERLONG_CHARACTER -3
#define UNICODE_ERROR_RESTRICTED_CHARACTER -4
#define UNICODE_ERROR_DECODING_ERROR -5
namespace modsecurity {
namespace operators {