cppcheck: drop unreachable DEBUG_VALIDATE_BUG_ONs

Remove unreachable DEBUG_VALIDATE_BUG_ON statements.
This commit is contained in:
Victor Julien
2026-09-12 16:12:26 -06:00
committed by Jason Ish
parent a4e4c3cd7b
commit d996d85dcf
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -1970,7 +1970,6 @@ static int StreamTcp3whsStoreSyn(TcpSession *ssn, Packet *p)
return 0;
if (ssn->queue != NULL && ssn->queue_len == stream_config.max_syn_queued) {
DEBUG_VALIDATE_BUG_ON(ssn->queue == NULL);
SCLogDebug("%" PRIu64 ": ssn %p: =~ SYN queue limit reached, rotate", PcapPacketCntGet(p),
ssn);
StreamTcpSetEvent(p, STREAM_3WHS_SYN_FLOOD);
-1
View File
@@ -187,7 +187,6 @@ int FileSwfLzmaDecompression(DetectEngineThreadCtx *det_ctx, const uint8_t *comp
DetectEngineSetEvent(det_ctx, FILE_DECODER_EVENT_LZMA_MEMLIMIT_ERROR);
} else if (ret == LzmaXzError) {
/* We should not see XZ compressed SWF files */
DEBUG_VALIDATE_BUG_ON(ret == LzmaXzError);
DetectEngineSetEvent(det_ctx, FILE_DECODER_EVENT_LZMA_XZ_ERROR);
} else {
DetectEngineSetEvent(det_ctx, FILE_DECODER_EVENT_LZMA_UNKNOWN_ERROR);