]> git.ipfire.org Git - thirdparty/suricata.git/commit
streaming/buffer: fix buf_offset getting out of sync
authorVictor Julien <vjulien@oisf.net>
Wed, 7 Jun 2023 05:38:52 +0000 (07:38 +0200)
committerVictor Julien <vjulien@oisf.net>
Wed, 7 Jun 2023 19:45:30 +0000 (21:45 +0200)
commitf06a0ee836ff738945292dc88a496b2aab9b6a57
treea4eef4551dc821a52b7632018b44388d9663cabd
parente69583da54d957bb0f96d853272c9ba83d56b1c8
streaming/buffer: fix buf_offset getting out of sync

During consolidation of regions, buf_offset could get out of sync if
the region was grown on the left side.

To fix, reset it and let "sbb slide" logic correct it.

Bug: #6117.
src/util-streaming-buffer.c