From: G.E Date: Thu, 16 May 2024 06:53:03 +0000 (+0300) Subject: the segfault we ran into, included_frag_id should be X-Git-Tag: vectorscan/5.4.12^2~39^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d653822a82aaa09bc9d2d0e8ac5e2ba5a45c87a4;p=thirdparty%2Fvectorscan.git the segfault we ran into, included_frag_id should be included_delay_frag_id. --- diff --git a/src/rose/rose_build_bytecode.cpp b/src/rose/rose_build_bytecode.cpp index 06f36582..2be7dbcd 100644 --- a/src/rose/rose_build_bytecode.cpp +++ b/src/rose/rose_build_bytecode.cpp @@ -2992,7 +2992,7 @@ void buildFragmentPrograms(const RoseBuildImpl &build, pfrag.lit_ids); if (pfrag.included_delay_frag_id != INVALID_FRAG_ID && !rebuild_prog.empty()) { - auto &cfrag = fragments[pfrag.included_delay_frag_id]; + const auto &cfrag = fragments[pfrag.included_delay_frag_id]; assert(pfrag.s.length() >= cfrag.s.length() && !pfrag.s.any_nocase() >= !cfrag.s.any_nocase()); u32 child_offset = cfrag.delay_program_offset;