Task #90678 - fixed.err
back to task #90678download
Error: CPPCHECK_WARNING (CWE-682): brotli-1.1.0/c/enc/block_splitter_inc.h:232: error[nullPointerArithmetic]: Pointer addition with NULL pointer. # 230| size_t i; # 231| uint32_t* BROTLI_RESTRICT const sizes = u32 + 0 * HISTOGRAMS_PER_BATCH; # 232|-> uint32_t* BROTLI_RESTRICT const new_clusters = u32 + 1 * HISTOGRAMS_PER_BATCH; # 233| uint32_t* BROTLI_RESTRICT const symbols = u32 + 2 * HISTOGRAMS_PER_BATCH; # 234| uint32_t* BROTLI_RESTRICT const remap = u32 + 3 * HISTOGRAMS_PER_BATCH; Error: CPPCHECK_WARNING (CWE-682): brotli-1.1.0/c/enc/block_splitter_inc.h:233: error[nullPointerArithmetic]: Pointer addition with NULL pointer. # 231| uint32_t* BROTLI_RESTRICT const sizes = u32 + 0 * HISTOGRAMS_PER_BATCH; # 232| uint32_t* BROTLI_RESTRICT const new_clusters = u32 + 1 * HISTOGRAMS_PER_BATCH; # 233|-> uint32_t* BROTLI_RESTRICT const symbols = u32 + 2 * HISTOGRAMS_PER_BATCH; # 234| uint32_t* BROTLI_RESTRICT const remap = u32 + 3 * HISTOGRAMS_PER_BATCH; # 235| uint32_t* BROTLI_RESTRICT const block_lengths = Error: CPPCHECK_WARNING (CWE-682): brotli-1.1.0/c/enc/block_splitter_inc.h:234: error[nullPointerArithmetic]: Pointer addition with NULL pointer. # 232| uint32_t* BROTLI_RESTRICT const new_clusters = u32 + 1 * HISTOGRAMS_PER_BATCH; # 233| uint32_t* BROTLI_RESTRICT const symbols = u32 + 2 * HISTOGRAMS_PER_BATCH; # 234|-> uint32_t* BROTLI_RESTRICT const remap = u32 + 3 * HISTOGRAMS_PER_BATCH; # 235| uint32_t* BROTLI_RESTRICT const block_lengths = # 236| u32 + 4 * HISTOGRAMS_PER_BATCH; Error: CPPCHECK_WARNING (CWE-682): brotli-1.1.0/c/enc/block_splitter_inc.h:236: error[nullPointerArithmetic]: Pointer addition with NULL pointer. # 234| uint32_t* BROTLI_RESTRICT const remap = u32 + 3 * HISTOGRAMS_PER_BATCH; # 235| uint32_t* BROTLI_RESTRICT const block_lengths = # 236|-> u32 + 4 * HISTOGRAMS_PER_BATCH; # 237| /* TODO(eustas): move to arena? */ # 238| HistogramType* tmp = BROTLI_ALLOC(m, HistogramType, 2); Error: GCC_ANALYZER_WARNING (CWE-476): brotli-1.1.0/c/enc/block_splitter_inc.h:278:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u32’ brotli-1.1.0/c/enc/block_splitter_inc.h:201:13: enter_function: entry to ‘ClusterBlocksCommand’ brotli-1.1.0/c/enc/block_splitter_inc.h:206:33: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... brotli-1.1.0/c/enc/block_splitter_inc.h:206:33: branch_true: ...to here brotli-1.1.0/c/enc/block_splitter_inc.h:208:7: branch_false: following ‘false’ branch (when ‘num_blocks == 18446744073709551360’)... brotli-1.1.0/c/enc/block_splitter_inc.h:210:7: branch_false: ...to here brotli-1.1.0/c/enc/block_splitter_inc.h:214:7: branch_false: following ‘false’ branch (when ‘expected_num_clusters == 0’)... brotli-1.1.0/c/enc/block_splitter_inc.h:219:31: branch_false: ...to here brotli-1.1.0/c/enc/block_splitter_inc.h:219:31: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... brotli-1.1.0/c/enc/block_splitter_inc.h:219:31: call_function: inlined call to ‘brotli_min_size_t’ from ‘ClusterBlocksCommand’ brotli-1.1.0/c/enc/block_splitter_inc.h:263:15: branch_true: following ‘true’ branch (when ‘i < num_blocks’)... brotli-1.1.0/c/enc/block_splitter_inc.h:265:9: branch_true: ...to here brotli-1.1.0/c/enc/block_splitter_inc.h:268:17: branch_true: following ‘true’ branch... brotli-1.1.0/c/enc/block_splitter_inc.h:270:43: branch_true: ...to here brotli-1.1.0/c/enc/block_splitter_inc.h:272:19: branch_false: following ‘false’ branch (when ‘k >= block_length’)... brotli-1.1.0/c/enc/block_splitter_inc.h:275:33: branch_false: ...to here brotli-1.1.0/c/enc/block_splitter_inc.h:278:7: danger: dereference of NULL ‘u32 + j * 4’ # 276| new_clusters[j] = (uint32_t)j; # 277| symbols[j] = (uint32_t)j; # 278|-> sizes[j] = 1; # 279| } # 280| num_new_clusters = FN(BrotliHistogramCombine)( Error: COMPILER_WARNING (CWE-686): brotli-1.1.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-konhm0/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘log2’; expected ‘double(double)’