]> git.ipfire.org Git - thirdparty/snort3.git/commit
Merge pull request #2778 in SNORT/snort3 from ~OSERHIIE/snort3:javascript_normalizati...
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Tue, 23 Mar 2021 13:05:23 +0000 (13:05 +0000)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Tue, 23 Mar 2021 13:05:23 +0000 (13:05 +0000)
commit8f60341a896291945acbb81fdb2b1ea5189016d3
treedf614c719b2e4130e3605902855807ee6e43e97a
parent34951f316db69714e80eac6181c614929f27ba09
Merge pull request #2778 in SNORT/snort3 from ~OSERHIIE/snort3:javascript_normalization to master

Squashed commit of the following:

commit 5371730d74442a199d46ed862639172f18437193
Author: Oleksandr Serhiienko <oserhiie@cisco.com>
Date:   Mon Feb 1 16:01:38 2021 +0200

    http_inspect: add JavaScript whitespace normalization

        http_inspect: integrate JSNormalizer (whitespace normalizzation) keeping the old one
        http_inspect: add normalization_depth config option
        utils: add JSNormalizer
        cmake: add flex build dependency
        doc: update http_inspect feature doc
16 files changed:
cmake/include_libraries.cmake
doc/user/http_inspect.txt
src/service_inspectors/http_inspect/http_js_norm.cc
src/service_inspectors/http_inspect/http_js_norm.h
src/service_inspectors/http_inspect/http_module.cc
src/service_inspectors/http_inspect/http_module.h
src/service_inspectors/http_inspect/test/http_module_test.cc
src/service_inspectors/http_inspect/test/http_uri_norm_test.cc
src/utils/CMakeLists.txt
src/utils/js_normalizer.cc [new file with mode: 0644]
src/utils/js_normalizer.h [new file with mode: 0644]
src/utils/js_tokenizer.h [new file with mode: 0644]
src/utils/js_tokenizer.l [new file with mode: 0644]
src/utils/test/CMakeLists.txt
src/utils/test/js_normalizer_test.cc [new file with mode: 0644]
src/utils/util_jsnorm.h