]> git.ipfire.org Git - thirdparty/suricata.git/commit
cppcheck: Address cpcheck report of an FP
authorJeff Lucovsky <jlucovsky@oisf.net>
Sat, 25 Nov 2023 14:22:19 +0000 (09:22 -0500)
committerVictor Julien <victor@inliniac.net>
Thu, 29 Feb 2024 10:24:41 +0000 (11:24 +0100)
commite34e9c966964360a53779a38e0bdaa8ed7492665
tree15c5f77b51a050c0c3b4171ee75620dc8248049a
parent56915b2cc1d69c20807569946b01f3948e04c7a5
cppcheck: Address cpcheck report of an FP

Issue: 6527

Address the FP raised by cppcheck -- note that although the code
corectly checks to ensure that `to_shift != &sb->reqion`, the logic was
detected as a FP. Rework the code to eliminate the FP.

(cherry picked from commit 40e3514e7a6c89a786ebf17469404524fb0d2d52)
src/util-streaming-buffer.c