]> git.ipfire.org Git - thirdparty/snort3.git/commit
Pull request #3169: Reset Normalizer's context when new script starts
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Fri, 19 Nov 2021 14:02:33 +0000 (14:02 +0000)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Fri, 19 Nov 2021 14:02:33 +0000 (14:02 +0000)
commit31ea616ecfd4f889e63477ae5d908d4457c4f0f3
tree8d90cb04d5dcbc3bb410b18aa448f925b4713b80
parent047cdfb2c76d691e176f31a08de8bd6f11cddff3
Pull request #3169: Reset Normalizer's context when new script starts

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

Squashed commit of the following:

commit bdee3121765f854f41e2a46b9a2a557408314fab
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date:   Tue Nov 16 11:18:33 2021 +0200

    utils: reset Normalizer context when new script starts

    Since Normalizer context are no longer recreated for each new script started,
    a method to reset internal state was added.

    If a script continues in the next chunk, then context is not reset,
    but is being prepared to process the new chunk as a continuation.
src/utils/js_tokenizer.h
src/utils/js_tokenizer.l
src/utils/test/js_normalizer_test.cc