]> git.ipfire.org Git - thirdparty/vectorscan.git/commit
Fix stack buffer overflow in `rvermicelliDoubleExecReal()` (#392) develop
authorGabe DiFiore <difioregabe@gmail.com>
Mon, 20 Apr 2026 07:36:16 +0000 (03:36 -0400)
committerGitHub <noreply@github.com>
Mon, 20 Apr 2026 07:36:16 +0000 (10:36 +0300)
commitfe94004d513ab9cdb44c9b9f1b60bd54b118aef7
tree5178d27722e0a4b205463552201e1534e094bfab
parentecab70848ad41c8b5a0302bfaeb387203118045e
Fix stack buffer overflow in `rvermicelliDoubleExecReal()` (#392)

Fix stack buffer overflow in rvermicelliDoubleExecReal

Remove unconditional snprintf that writes input buffer length into
fixed 255-byte stack buffer. On inputs >255 bytes, this causes stack
smash detected by FORTIFY_SOURCE. The removed lines were debug
scaffolding that duplicated the DEBUG_PRINTF above them.

Fixes crash on patterns like ".*literal" with buffers >255 bytes.
src/nfa/vermicelli_simd.cpp