]> git.ipfire.org Git - thirdparty/snort3.git/commit
Pull request #3128: JS Normalization: single pass processing
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Tue, 2 Nov 2021 14:12:46 +0000 (14:12 +0000)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Tue, 2 Nov 2021 14:12:46 +0000 (14:12 +0000)
commit6c900f293ee47f2fd1eadfeccaab79d6e1c28dc5
treedb0b477f55f85d3e35667fe2207615d18cbedc80
parent8788c7c07328e168213a74ccedf403d1b3f65cb4
Pull request #3128: JS Normalization: single pass processing

Merge in SNORT/snort3 from ~OSHUMEIK/snort3:spp to master

Squashed commit of the following:

commit f09974f5dca6d48223f441e61ccd1b7676fd64e2
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date:   Fri Oct 22 15:55:56 2021 +0300

    utils: correct Normalizer's output upon the next scan

    The output stream buffer was updated with a special-case code to speed up
    getting the output size.

commit 0f66f7491fcd07c44934a4a473d26354dd39a859
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date:   Mon Oct 18 16:23:35 2021 +0300

    http_inspect: eliminate cumulative js data processing

    Input data is fed by portions (script_detection, chunked HTTP) to JSNormalizer.
    Output data is accumulated in output stream buffer, which resides in
    JSNormalizer context. Accumulated output data is deleted at the end of PDU.

commit 7fe0cc81badb99a2a732c74cddc1aa042e40cbd2
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date:   Fri Oct 15 16:50:09 2021 +0300

    utils: add get methods to peek in internal buffer
19 files changed:
src/pub_sub/test/pub_sub_http_request_body_event_test.cc
src/service_inspectors/http_inspect/dev_notes.txt
src/service_inspectors/http_inspect/http_flow_data.cc
src/service_inspectors/http_inspect/http_flow_data.h
src/service_inspectors/http_inspect/http_inspect.cc
src/service_inspectors/http_inspect/http_js_norm.cc
src/service_inspectors/http_inspect/http_js_norm.h
src/service_inspectors/http_inspect/http_msg_body.cc
src/service_inspectors/http_inspect/http_msg_body.h
src/service_inspectors/http_inspect/http_msg_header.cc
src/service_inspectors/http_inspect/http_stream_splitter_scan.cc
src/utils/js_normalizer.cc
src/utils/js_normalizer.h
src/utils/js_tokenizer.h
src/utils/js_tokenizer.l
src/utils/streambuf.cc
src/utils/streambuf.h
src/utils/test/js_normalizer_test.cc
src/utils/test/streambuf_test.cc