From 3fadd91fb5d025949ac1cfdbbead6ff8cb66786f Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Fri, 30 Apr 2021 16:41:06 +0300 Subject: [PATCH] [LMCS] Add an assert in deriveReshapeParametersSDR to remove static analyser warning --- src/reshape.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reshape.c b/src/reshape.c index 254de12c..70270b63 100644 --- a/src/reshape.c +++ b/src/reshape.c @@ -489,6 +489,7 @@ static void deriveReshapeParametersSDR(lmcs_aps* aps, bool* intraAdp, bool* inte double percBinVarLessThenVal1 = 0.0; double percBinVarLessThenVal2 = 0.0; double percBinVarLessThenVal3 = 0.0; + assert(aps->m_binNum > 2); // For static analyzer to figure out we are not out-of-bounds assert(aps->m_binNum <= PIC_ANALYZE_CW_BINS); //int* binIdxSortDsd = malloc(sizeof(int) * aps->m_binNum); //double* binVarSortDsd = malloc(sizeof(double) * aps->m_binNum);