soxr-0.1.3-17.fc42
List of Findings
Error: GCC_ANALYZER_WARNING: [#def1]
soxr-0.1.3-build/soxr-0.1.3-Source/examples/3-options-input-fn.c: scope_hint: In function ‘main’
soxr-0.1.3-build/soxr-0.1.3-Source/examples/3-options-input-fn.c:71:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
soxr-0.1.3-build/soxr-0.1.3-Source/examples/3-options-input-fn.c:71:23: note: only use operands of an integer type inside the size argument
Error: GCC_ANALYZER_WARNING: [#def2]
soxr-0.1.3-build/soxr-0.1.3-Source/examples/3-options-input-fn.c:72:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
soxr-0.1.3-build/soxr-0.1.3-Source/examples/3-options-input-fn.c:72:23: note: only use operands of an integer type inside the size argument
Error: GCC_ANALYZER_WARNING (CWE-688): [#def3]
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr.c: scope_hint: In function ‘stage_process’
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr.c:506:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: CPPCHECK_WARNING (CWE-401): [#def4]
soxr-0.1.3-build/soxr-0.1.3-Source/src/fft4g_cache.h:43: error[memleakOnRealloc]: Common realloc mistake: 'lsx_fft_br' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def5]
soxr-0.1.3-build/soxr-0.1.3-Source/src/fft4g_cache.h:43: error[memleakOnRealloc]: Common realloc mistake: 'lsx_fft_br_f' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING: [#def6]
soxr-0.1.3-build/soxr-0.1.3-Source/src/filter.c:28: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/fft4g_cache.h: scope_hint: In function ‘update_fft_cache’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fft4g_cache.h:43:20: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
soxr-0.1.3-build/soxr-0.1.3-Source/src/filter.c:12: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/fft4g_cache.h:38:5: note: in expansion of macro ‘ccrw2_cease_reading’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fft4g_cache.h:43:20: note: only use operands of an integer type inside the size argument
Error: CPPCHECK_WARNING (CWE-401): [#def7]
soxr-0.1.3-build/soxr-0.1.3-Source/src/fft4g_cache.h:44: error[memleakOnRealloc]: Common realloc mistake: 'lsx_fft_sc' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def8]
soxr-0.1.3-build/soxr-0.1.3-Source/src/fft4g_cache.h:44: error[memleakOnRealloc]: Common realloc mistake: 'lsx_fft_sc_f' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
soxr-0.1.3-build/soxr-0.1.3-Source/src/fft4g_cache.h:46:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fft4g_cache.h:38:5: note: in expansion of macro ‘ccrw2_cease_reading’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr.h:8: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr.c:18: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h: scope_hint: In function ‘fifo_write’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:74:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def11]
soxr-0.1.3-build/soxr-0.1.3-Source/src/filter.c: scope_hint: In function ‘_soxr_fir_to_phase’
soxr-0.1.3-build/soxr-0.1.3-Source/src/filter.c:166:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘work’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
soxr-0.1.3-build/soxr-0.1.3-Source/src/filter.c:183:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pi_wraps’
Error: COMPILER_WARNING: [#def13]
soxr-0.1.3-build/soxr-0.1.3-Source/src/pffft.c:154: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/pffft-wrap.c:27: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/pffft64s.c:5: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/pffft.c: scope_hint: In function ‘pffft_zreorder’
soxr-0.1.3-build/soxr-0.1.3-Source/src/pffft-avx.h:19:3: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
soxr-0.1.3-build/soxr-0.1.3-Source/src/pffft.c:1355:9: note: in expansion of macro ‘INTERLEAVE2’
Error: COMPILER_WARNING: [#def14]
soxr-0.1.3-build/soxr-0.1.3-Source/src/pffft.c:154: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/util-simd.c:43: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/util64s.c:8: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/util-simd.c: scope_hint: In function ‘_soxr_ordered_convolve_simd64’
soxr-0.1.3-build/soxr-0.1.3-Source/src/pffft-avx.h:24:3: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
soxr-0.1.3-build/soxr-0.1.3-Source/src/util-simd.c:58:5: note: in expansion of macro ‘UNINTERLEAVE2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr-core.c:200: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr32.c:8: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h: scope_hint: In function ‘vpoly3’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:49:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:81:29: note: in expansion of macro ‘END’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:114:45: note: in expansion of macro ‘highPrecCore’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:50:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:128:3: note: in expansion of macro ‘CORE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:121:13: note: in expansion of macro ‘FUNCTION’
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr.h:8: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr-core.c:15: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:50:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:128:3: note: in expansion of macro ‘CORE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:75:55: note: in expansion of macro ‘integer’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:114:45: note: in expansion of macro ‘highPrecCore’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:50:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:128:3: note: in expansion of macro ‘CORE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr-core.c:199:21: note: in expansion of macro ‘VAR_CONVOLVE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:81:16: note: in expansion of macro ‘CONVOLVE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:114:45: note: in expansion of macro ‘highPrecCore’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:50:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:128:3: note: in expansion of macro ‘CORE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:81:29: note: in expansion of macro ‘END’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:114:45: note: in expansion of macro ‘highPrecCore’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:50:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:128:3: note: in expansion of macro ‘CORE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:81:29: note: in expansion of macro ‘END’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:114:45: note: in expansion of macro ‘highPrecCore’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:50:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:128:3: note: in expansion of macro ‘CORE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:81:29: note: in expansion of macro ‘END’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:114:45: note: in expansion of macro ‘highPrecCore’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:50:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir.h:128:3: note: in expansion of macro ‘CORE’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr-core.c:210: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h: scope_hint: In function ‘U100_0’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:20:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:28:40: note: in expansion of macro ‘END’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:21:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:39:5: note: in expansion of macro ‘CORE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:30:13: note: in expansion of macro ‘FUNCTION’
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr.h:123:38: note: in expansion of macro ‘fifo_read_ptr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:34:30: note: in expansion of macro ‘stage_read_p’
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr.h:123:38: note: in expansion of macro ‘fifo_read_ptr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:34:30: note: in expansion of macro ‘stage_read_p’
soxr-0.1.3-build/soxr-0.1.3-Source/src/cr.h:123:38: note: in expansion of macro ‘fifo_read_ptr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:34:30: note: in expansion of macro ‘stage_read_p’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:21:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:39:5: note: in expansion of macro ‘CORE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:21:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:39:5: note: in expansion of macro ‘CORE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:28:40: note: in expansion of macro ‘END’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:21:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:39:5: note: in expansion of macro ‘CORE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:28:40: note: in expansion of macro ‘END’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:21:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:39:5: note: in expansion of macro ‘CORE’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:28:40: note: in expansion of macro ‘END’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:21:19: note: in expansion of macro ‘core’
soxr-0.1.3-build/soxr-0.1.3-Source/src/poly-fir0.h:39:5: note: in expansion of macro ‘CORE’
Error: COMPILER_WARNING (CWE-843): [#def17]
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr-lsr.c: scope_hint: In function ‘src_callback_new’
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr-lsr.c:82:37: warning[-Wcast-function-type]: cast between incompatible function types from ‘src_callback_t’ {aka ‘long int (*)(void *, float **)’} to ‘size_t (*)(void *, const void **, size_t)’ {aka ‘long unsigned int (*)(void *, const void **, long unsigned int)’}
Error: COMPILER_WARNING: [#def18]
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c: scope_hint: In function ‘soxr_create’
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c:396:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c:396:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def19]
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c: scope_hint: In function ‘initialise’
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c:533:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c:533:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def20]
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c:535:32: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c:535:32: note: earlier argument should specify number of elements, later size of each element
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c: scope_hint: In function ‘initialise’
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c:541:8: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(channel_size, 1)’
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c:11: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c:388:5: note: in expansion of macro ‘lsx_debug’
soxr-0.1.3-build/soxr-0.1.3-Source/src/soxr.c:543:13: note: in expansion of macro ‘resampler_create’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c: scope_hint: In function ‘prepare_coefs’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:137:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:268:58: note: in definition of macro ‘shiftr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:305:33: note: in expansion of macro ‘shiftl’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h: scope_hint: In function ‘prepare_coefs’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:10: included_from: Included from here.
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:309:5: note: in expansion of macro ‘lsx_debug’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:309:5: note: in expansion of macro ‘lsx_debug’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:130:34: note: in expansion of macro ‘COEF’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:130:34: note: in expansion of macro ‘COEF’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:272:26: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:268:58: note: in definition of macro ‘shiftr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:305:33: note: in expansion of macro ‘shiftl’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h: scope_hint: In function ‘vr_init’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:309:5: note: in expansion of macro ‘lsx_debug’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:309:5: note: in expansion of macro ‘lsx_debug’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:268:58: note: in definition of macro ‘shiftr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:305:33: note: in expansion of macro ‘shiftl’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h: scope_hint: In function ‘vr_init’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:309:5: note: in expansion of macro ‘lsx_debug’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def24]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:272:26: warning[-Wanalyzer-null-argument]: use of NULL ‘**p.stages.fifo.data’ where non-null expected
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:594:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:594:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:594:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:594:5: note: in expansion of macro ‘stage_preload’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def25]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:272:26: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*s.fifo.data’ where non-null expected
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:268:58: note: in definition of macro ‘shiftr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:305:33: note: in expansion of macro ‘shiftl’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h: scope_hint: In function ‘vr_init’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:309:5: note: in expansion of macro ‘lsx_debug’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:309:5: note: in expansion of macro ‘lsx_debug’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:122:22: note: in expansion of macro ‘FIFO_MALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:268:58: note: in definition of macro ‘shiftr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:305:33: note: in expansion of macro ‘shiftl’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h: scope_hint: In function ‘vr_init’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def26]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:272:26: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fifo_reserve(&*s.fifo, <unknown>)’ where non-null expected
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:122:22: note: in expansion of macro ‘FIFO_MALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:268:58: note: in definition of macro ‘shiftr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:305:33: note: in expansion of macro ‘shiftl’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h: scope_hint: In function ‘vr_init’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c: scope_hint: In function ‘vr_init’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:305:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:268:58: note: in definition of macro ‘shiftr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:305:33: note: in expansion of macro ‘shiftl’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:308:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*s.fifo.data’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:268:58: note: in definition of macro ‘shiftr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:305:33: note: in expansion of macro ‘shiftl’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h: scope_hint: In function ‘vr_init’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:309:5: note: in expansion of macro ‘lsx_debug’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:309:5: note: in expansion of macro ‘lsx_debug’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:122:22: note: in expansion of macro ‘FIFO_MALLOC’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:268:58: note: in definition of macro ‘shiftr’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:305:33: note: in expansion of macro ‘shiftl’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h: scope_hint: In function ‘vr_init’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:307:5: note: in expansion of macro ‘stage_preload’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:314:38: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c: scope_hint: In function ‘do_input_stage’
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:392:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:409:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:411:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:416:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
soxr-0.1.3-build/soxr-0.1.3-Source/src/vr32.c:417:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
soxr-0.1.3-build/soxr-0.1.3-Source/src/fifo.h:62:15: note: in expansion of macro ‘FIFO_REALLOC’
Error: GCC_ANALYZER_WARNING: [#def35]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c: scope_hint: In function ‘main’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:82:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:82:23: note: only use operands of an integer type inside the size argument
Error: GCC_ANALYZER_WARNING: [#def36]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:83:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:83:23: note: only use operands of an integer type inside the size argument
Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:113:58: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ibuf’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:105:21: note: in expansion of macro ‘ranqd1’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:106:15: note: in expansion of macro ‘dranqd1’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:113:68: note: in expansion of macro ‘RAND’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:114:58: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ibuf’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:105:21: note: in expansion of macro ‘ranqd1’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:106:15: note: in expansion of macro ‘dranqd1’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:114:68: note: in expansion of macro ‘RAND’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:115:58: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ibuf’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:105:21: note: in expansion of macro ‘ranqd1’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:106:15: note: in expansion of macro ‘dranqd1’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:115:79: note: in expansion of macro ‘RAND’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:116:58: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ibuf’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:105:21: note: in expansion of macro ‘ranqd1’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:106:15: note: in expansion of macro ‘dranqd1’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/throughput.c:116:79: note: in expansion of macro ‘RAND’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-cmp.c: scope_hint: In function ‘main’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-cmp.c:28:51: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(arg[1], "rb")’
soxr-0.1.3-build/soxr-0.1.3-Source/src/rint.h:97:19: note: in expansion of macro ‘rint32D’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-cmp.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-cmp.c:28:51: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(arg[1], "rb")’
soxr-0.1.3-build/soxr-0.1.3-Source/src/rint.h:97:19: note: in expansion of macro ‘rint32D’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-cmp.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-cmp.c:29:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(arg[1], "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-cmp.c:29:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(arg[1], "rb")’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def45]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-cmp.c:35:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(arg[1], "rb")’ where non-null expected
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-cmp.c:9: included_from: Included from here.
/usr/include/stdio.h:769:12: note: argument 1 of ‘fseek’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def46]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-cmp.c:37:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘f2’ where non-null expected
soxr-0.1.3-build/soxr-0.1.3-Source/src/rint.h:97:19: note: in expansion of macro ‘rint32D’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-cmp.c: scope_hint: In function ‘main’
/usr/include/stdio.h:769:12: note: argument 1 of ‘fseek’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-gen.c: scope_hint: In function ‘main’
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-gen.c:54:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[7], "wb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
soxr-0.1.3-build/soxr-0.1.3-Source/tests/vector-gen.c:54:37: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[7], "wb")’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-57.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | soxr-0.1.3-17.fc42 |
store-results-to | /tmp/tmpwrgrbci1/soxr-0.1.3-17.fc42.tar.xz |
time-created | 2024-11-13 03:17:12 |
time-finished | 2024-11-13 03:18:47 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpwrgrbci1/soxr-0.1.3-17.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpwrgrbci1/soxr-0.1.3-17.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |