2025-05-08 21:03 ftp://ftp.de.debian.org/debian/pool/main/w/wavpack/wavpack_5.8.1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 66c9938 (2025-05-08 13:55:11 +0200) count: 642 627 elapsed-time: 9.7 10.1 head-timing-info: old-timing-info: head results: wavpack-5.8.1/cli/aiff_write.c:85:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/aiff.c:69:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_IGNORE_LENGTH [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/caff.c:164:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_NO_STORE_WRAPPER [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/aiff_write.c:106:15: style: Variable 'compressionType' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/aiff_write.c:106:33: style: Variable 'compressionName' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/caff_write.c:136:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/caff_write.c:66:59: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] wavpack-5.8.1/cli/caff_write.c:67:53: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] wavpack-5.8.1/cli/caff_write.c:210:25: warning: If memory allocation fails, then there is a possible null pointer dereference: new_channel_order [nullPointerOutOfMemory] wavpack-5.8.1/cli/caff_write.c:207:48: note: Assuming allocation function fails wavpack-5.8.1/cli/caff_write.c:207:48: note: Assignment 'new_channel_order=malloc(num_channels)', assigned value is 0 wavpack-5.8.1/cli/caff_write.c:210:25: note: Null pointer dereference wavpack-5.8.1/cli/caff_write.c:199:17: style: Local variable 'i' shadows outer variable [shadowVariable] wavpack-5.8.1/cli/caff_write.c:96:31: note: Shadowed declaration wavpack-5.8.1/cli/caff_write.c:199:17: note: Shadow variable wavpack-5.8.1/cli/caff_write.c:73:14: style: struct member 'CAFChannelDescription::mChannelFlags' is never used. [unusedStructMember] wavpack-5.8.1/cli/caff_write.c:74:11: style: struct member 'CAFChannelDescription::mCoordinates' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:83:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_NO_STORE_WRAPPER [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/dsdiff.c:68:68: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/dsdiff.c:170:47: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/dsdiff.c:36:10: style: struct member 'DFFVersionChunk::ckID' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:37:13: style: struct member 'DFFVersionChunk::ckDataSize' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:38:14: style: struct member 'DFFVersionChunk::version' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:42:10: style: struct member 'DFFSampleRateChunk::ckID' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:43:13: style: struct member 'DFFSampleRateChunk::ckDataSize' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:44:14: style: struct member 'DFFSampleRateChunk::sampleRate' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:48:10: style: struct member 'DFFChannelsHeader::ckID' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:49:13: style: struct member 'DFFChannelsHeader::ckDataSize' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:50:14: style: struct member 'DFFChannelsHeader::numChannels' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:54:10: style: struct member 'DFFCompressionHeader::ckID' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:55:13: style: struct member 'DFFCompressionHeader::ckDataSize' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsdiff.c:56:10: style: struct member 'DFFCompressionHeader::compressionType' is never used. [unusedStructMember] wavpack-5.8.1/cli/dsf.c:73:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_NO_STORE_WRAPPER [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/dsf.c:56:65: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/aiff.c:55:66: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/dsf_write.c:102:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_DSD_LSB_FIRST [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/import_id3.c:658:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/riff.c:60:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_IGNORE_LENGTH [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/import_id3.c:191:17: warning: If memory allocation fails, then there is a possible null pointer dereference: frame_body [nullPointerOutOfMemory] wavpack-5.8.1/cli/import_id3.c:189:29: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:189:29: note: Assignment 'frame_body=malloc(frame_size+4)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:191:17: note: Null pointer dereference wavpack-5.8.1/cli/import_id3.c:263:43: warning: If memory allocation fails, then there is a possible null pointer dereference: utf8_string [nullPointerOutOfMemory] wavpack-5.8.1/cli/import_id3.c:260:53: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:260:53: note: Assignment 'utf8_string=malloc(frame_size*2)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:263:43: note: Null pointer dereference wavpack-5.8.1/cli/import_id3.c:348:25: warning: If memory allocation fails, then there is a possible null pointer dereference: binary_tag_image [nullPointerOutOfMemory] wavpack-5.8.1/cli/import_id3.c:346:49: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:346:49: note: Assignment 'binary_tag_image=malloc(binary_tag_size)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:348:25: note: Null pointer dereference wavpack-5.8.1/cli/import_id3.c:349:25: warning: If memory allocation fails, then there is a possible null pointer dereference: binary_tag_image [nullPointerOutOfMemory] wavpack-5.8.1/cli/import_id3.c:346:49: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:346:49: note: Assignment 'binary_tag_image=malloc(binary_tag_size)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:349:25: note: Null pointer dereference wavpack-5.8.1/cli/import_id3.c:653:12: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] wavpack-5.8.1/cli/import_id3.c:645:25: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:645:25: note: Assignment 'temp=malloc(len)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:653:12: note: Null pointer dereference wavpack-5.8.1/cli/import_id3.c:670:22: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] wavpack-5.8.1/cli/import_id3.c:645:25: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:645:25: note: Assignment 'temp=malloc(len)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:665:13: note: Assuming condition is false wavpack-5.8.1/cli/import_id3.c:670:22: note: Null pointer dereference wavpack-5.8.1/cli/import_id3.c:350:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/import_id3.c:346:49: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:346:49: note: Assignment 'binary_tag_image=malloc(binary_tag_size)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:350:42: note: Null pointer addition wavpack-5.8.1/cli/import_id3.c:466:74: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/import_id3.c:466:34: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:466:34: note: Assignment 'new_value=malloc(max_vsize)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:466:74: note: Null pointer addition wavpack-5.8.1/cli/import_id3.c:521:34: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/import_id3.c:197:49: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:197:49: note: Assignment 'utf8_string=malloc(frame_size*2)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:199:96: note: Calling function 'ID3v2StringsToUTF8', 4th argument 'utf8_string' value is 0 wavpack-5.8.1/cli/import_id3.c:521:34: note: Null pointer addition wavpack-5.8.1/cli/import_id3.c:278:31: style: Variable 'extension' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/import_id3.c:390:40: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/import_id3.c:521:20: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/import_id3.c:525:24: style: Variable 'fp' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/import_id3.c:525:35: style: Variable 'fe' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/import_id3.c:545:35: style: Variable 'fe' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/riff_write.c:124:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ChunkHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/riff_write.c:36:10: style: struct member 'JunkChunk::junk' is never used. [unusedStructMember] wavpack-5.8.1/cli/caff.c:71:59: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] wavpack-5.8.1/cli/caff.c:72:53: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] wavpack-5.8.1/cli/caff.c:338:33: warning: If memory allocation fails, then there is a possible null pointer dereference: channel_reorder [nullPointerOutOfMemory] wavpack-5.8.1/cli/caff.c:337:50: note: Assuming allocation function fails wavpack-5.8.1/cli/caff.c:337:50: note: Assignment 'channel_reorder=malloc(num_descriptions)', assigned value is 0 wavpack-5.8.1/cli/caff.c:338:33: note: Null pointer dereference wavpack-5.8.1/cli/utils.c:129:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_sec [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/utils.c:221:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOB_MARK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/utils.c:348:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/utils.c:540:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/utils.c:628:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/utils.c:863:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/caff.c:145:66: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/utils.c:135:9: style: Obsolescent function 'utimes' called. It is recommended to use 'utimensat' instead. [prohibitedutimesCalled] wavpack-5.8.1/cli/utils.c:283:28: style: Parameter 'filespec' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/utils.c:728:37: style: Parameter 'lpBuffer' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/utils.c:842:25: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/utils.c:861:31: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wave64_write.c:108:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WaveHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wave64.c:61:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_NO_STORE_WRAPPER [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wavpack.c:447:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wavpack.c:1686:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wavpack.c:2562:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_FLOAT [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wavpack.c:2776:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_DSD_IN_BLOCKS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wavpack.c:2905:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wavpack.c:3605:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_REORDERED_CHANS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wavpack.c:3819:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_WVC [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wavpack.c:4029:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_FAST_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wavpack.c:4098:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wavpack.c:4275:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wavpack.c:4552:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/riff.c:46:66: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/riff.c:36:10: style: struct member 'JunkChunk::junk' is never used. [unusedStructMember] wavpack-5.8.1/cli/wvgain.c:185:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvgain.c:619:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_WVC [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvgain.c:793:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_EDIT_TAGS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvgain.c:898:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_TAGS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvgain.c:504:20: style: The if condition is the same as the previous if condition [duplicateCondition] wavpack-5.8.1/cli/wvgain.c:491:20: note: First condition wavpack-5.8.1/cli/wvgain.c:504:20: note: Second condition wavpack-5.8.1/cli/wvgain.c:248:13: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvgain.c:318:17: error: Common realloc mistake: 'listbuff' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvgain.c:346:21: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvgain.c:342:25: warning: If memory allocation fails, then there is a possible null pointer dereference: fname [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvgain.c:338:42: note: Assuming allocation function fails wavpack-5.8.1/cli/wvgain.c:338:42: note: Assignment 'fname=malloc(1024)', assigned value is 0 wavpack-5.8.1/cli/wvgain.c:342:25: note: Null pointer dereference wavpack-5.8.1/cli/wvgain.c:345:21: warning: If memory allocation fails, then there is a possible null pointer dereference: fname [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvgain.c:338:42: note: Assuming allocation function fails wavpack-5.8.1/cli/wvgain.c:338:42: note: Assignment 'fname=malloc(1024)', assigned value is 0 wavpack-5.8.1/cli/wvgain.c:345:21: note: Null pointer dereference wavpack-5.8.1/cli/wvgain.c:701:40: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.8.1/cli/wvgain.c:705:40: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.8.1/cli/wvgain.c:709:40: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.8.1/cli/wvgain.c:713:40: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.8.1/cli/wvgain.c:717:31: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.8.1/cli/wvgain.c:718:36: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.8.1/cli/wvgain.c:719:61: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.8.1/cli/wvgain.c:300:37: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvgain.c:686:22: style: Variable 'src' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvgain.c:937:41: style: Parameter 'histogram' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvgain.c:962:49: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvgain.c:1370:14: style: Variable 'in_samples' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wave64.c:42:68: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvtag.c:228:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtag.c:730:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_TAGS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtag.c:984:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtag.c:1028:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_VALID_TAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtag.c:1055:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_VALID_TAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtag.c:1161:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_VALID_TAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtag.c:1249:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_VALID_TAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtag.c:1371:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtag.c:1527:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtest.c:145:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_MD5_CHECKSUM [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtest.c:326:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_THREADS_SHFT [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtest.c:589:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtest.c:614:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_FAST_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtest.c:714:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtest.c:1061:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_THREADS_SHFT [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtest.c:1239:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtest.c:1464:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvtag.c:333:17: error: Common realloc mistake: 'tag_items' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvtag.c:358:13: error: Common realloc mistake: 'tag_items' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvtag.c:366:13: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvtag.c:552:17: error: Common realloc mistake: 'listbuff' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvtag.c:580:21: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvtag.c:903:5: error: Common realloc mistake: 'tag_extractions' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvtag.c:430:25: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:428:37: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:428:37: note: Assignment 'temp=malloc(strlen(matches[0])+1024)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:430:25: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:446:29: warning: If memory allocation fails, then there is a possible null pointer dereference: new_value [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:445:40: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:445:40: note: Assignment 'new_value=malloc(tag_items[i].vsize+2)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:446:29: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:576:25: warning: If memory allocation fails, then there is a possible null pointer dereference: fname [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:572:42: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:572:42: note: Assignment 'fname=malloc(1024)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:576:25: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:579:21: warning: If memory allocation fails, then there is a possible null pointer dereference: fname [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:572:42: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:572:42: note: Assignment 'fname=malloc(1024)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:579:21: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:916:37: warning: If memory allocation fails, then there is a possible null pointer dereference: extraction_spec [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:915:40: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:915:40: note: Assignment 'extraction_spec=strdup(tag_extractions[i])', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:916:37: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:930:21: warning: If memory allocation fails, then there is a possible null pointer dereference: full_filename [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:929:36: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:929:36: note: Assignment 'full_filename=malloc(max_length*2+1)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:930:21: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1076:36: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1070:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1070:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1076:36: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1076:50: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1070:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1070:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1076:50: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1105:36: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1102:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1102:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1105:36: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1105:50: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1102:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1102:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1105:50: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1195:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: value [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1191:28: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1191:28: note: Assignment 'value=malloc(value_len)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1195:22: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1293:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1180:28: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1180:28: note: Assignment 'value=malloc(value_len*2+1)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1182:31: note: Calling function 'dump_UTF8_string', 1st argument 'value' value is 0 wavpack-5.8.1/cli/wvtag.c:1293:13: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1297:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1180:28: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1180:28: note: Assignment 'value=malloc(value_len*2+1)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1182:31: note: Calling function 'dump_UTF8_string', 1st argument 'value' value is 0 wavpack-5.8.1/cli/wvtag.c:1294:19: note: Assignment 'p=string', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1297:17: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1370:12: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1361:25: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1361:25: note: Assignment 'temp=malloc(len)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1370:12: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1388:22: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1361:25: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1361:25: note: Assignment 'temp=malloc(len)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1383:13: note: Assuming condition is false wavpack-5.8.1/cli/wvtag.c:1388:22: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1526:12: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1508:25: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1508:25: note: Assignment 'temp=malloc(len)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1519:87: note: Assuming condition is false wavpack-5.8.1/cli/wvtag.c:1526:12: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1625:11: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:428:37: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:428:37: note: Assignment 'temp=malloc(strlen(matches[0])+1024)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:432:36: note: Calling function 'wild_fopen', 1st argument 'temp' value is 0 wavpack-5.8.1/cli/wvtag.c:1625:11: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:1638:21: warning: If memory allocation fails, then there is a possible null pointer dereference: matchname [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1637:32: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1637:32: note: Assignment 'matchname=malloc(strlen(globbuf.gl_pathv[i])+10)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1638:21: note: Null pointer dereference wavpack-5.8.1/cli/wvtag.c:331:21: style: Local variable 'i' shadows outer variable [shadowVariable] wavpack-5.8.1/cli/wvtag.c:189:17: note: Shadowed declaration wavpack-5.8.1/cli/wvtag.c:331:21: note: Shadow variable wavpack-5.8.1/cli/wvtag.c:351:17: style: Local variable 'i' shadows outer variable [shadowVariable] wavpack-5.8.1/cli/wvtag.c:189:17: note: Shadowed declaration wavpack-5.8.1/cli/wvtag.c:351:17: note: Shadow variable wavpack-5.8.1/cli/wvtag.c:804:18: style: Local variable 'error' shadows outer variable [shadowVariable] wavpack-5.8.1/cli/wvtag.c:732:10: note: Shadowed declaration wavpack-5.8.1/cli/wvtag.c:804:18: note: Shadow variable wavpack-5.8.1/cli/wvtag.c:813:21: style: Local variable 'res' shadows outer variable [shadowVariable] wavpack-5.8.1/cli/wvtag.c:765:16: note: Shadowed declaration wavpack-5.8.1/cli/wvtag.c:813:21: note: Shadow variable wavpack-5.8.1/cli/wvtag.c:217:45: style: Variable 'long_param' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvtag.c:328:19: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvtag.c:534:37: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvtag.c:901:47: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvtag.c:1059:15: style: Variable 'spaces' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvtag.c:1208:31: style: Variable 'sanitized_tag_value' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvtag.c:1367:11: style: Variable 'old_locale' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvtag.c:1514:11: style: Variable 'old_locale' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvtag.c:1530:19: style: Variable 'utf16p' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvtag.c:1617:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvtag.c:509:29: style: Variable 'total_tag_size' is assigned a value that is never used. [unreadVariable] wavpack-5.8.1/cli/wvtag.c:765:20: style: Variable 'res' is assigned a value that is never used. [unreadVariable] wavpack-5.8.1/cli/wvtest.c:343:27: style: Redundant condition: The condition 'total_samples == -1' is redundant since 'total_samples < 2' is sufficient. [redundantCondition] wavpack-5.8.1/cli/wvtest.c:626:9: style: The if condition is the same as the previous if condition [duplicateCondition] wavpack-5.8.1/cli/wvtest.c:621:9: note: First condition wavpack-5.8.1/cli/wvtest.c:626:9: note: Second condition wavpack-5.8.1/cli/wvtest.c:664:20: style: The if condition is the same as the previous if condition [duplicateCondition] wavpack-5.8.1/cli/wvtest.c:659:20: note: First condition wavpack-5.8.1/cli/wvtest.c:664:20: note: Second condition wavpack-5.8.1/cli/wvtest.c:1016:9: style: The if condition is the same as the previous if condition [duplicateCondition] wavpack-5.8.1/cli/wvtest.c:1013:9: note: First condition wavpack-5.8.1/cli/wvtest.c:1016:9: note: Second condition wavpack-5.8.1/cli/wavpack.c:2613:13: style: Condition 'sample_count' is always true [knownConditionTrueFalse] wavpack-5.8.1/cli/wavpack.c:2816:17: style: Condition 'sample_count' is always true [knownConditionTrueFalse] wavpack-5.8.1/cli/wvtest.c:841:21: warning: If memory allocation fails, then there is a possible null pointer dereference: filename_c [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtest.c:839:39: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtest.c:839:39: note: Assignment 'filename_c=malloc(strlen(filename)+10)', assigned value is 0 wavpack-5.8.1/cli/wvtest.c:841:21: note: Null pointer dereference wavpack-5.8.1/cli/wvtest.c:842:21: warning: If memory allocation fails, then there is a possible null pointer dereference: filename_c [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtest.c:839:39: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtest.c:839:39: note: Assignment 'filename_c=malloc(strlen(filename)+10)', assigned value is 0 wavpack-5.8.1/cli/wvtest.c:842:21: note: Null pointer dereference wavpack-5.8.1/cli/wvtest.c:844:43: warning: If memory allocation fails, then there is a possible null pointer dereference: filename_c [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtest.c:839:39: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtest.c:839:39: note: Assignment 'filename_c=malloc(strlen(filename)+10)', assigned value is 0 wavpack-5.8.1/cli/wvtest.c:844:43: note: Null pointer dereference wavpack-5.8.1/cli/wvtest.c:982:38: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] wavpack-5.8.1/cli/wvtest.c:983:32: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] wavpack-5.8.1/cli/wvtest.c:984:35: portability:inconclusive: Casting from float * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] wavpack-5.8.1/cli/wvtest.c:1416:10: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] wavpack-5.8.1/cli/wvtest.c:1446:10: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] wavpack-5.8.1/cli/wavpack.c:394:17: error: Common realloc mistake: 'argv_fn' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wavpack.c:891:17: error: Common realloc mistake: 'tag_items' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wavpack.c:946:13: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wavpack.c:1203:17: error: Common realloc mistake: 'listbuff' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wavpack.c:1231:21: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wavpack.c:2133:17: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wavpack.c:1532:9: warning: Either the condition 'wid' is redundant or there is possible null pointer dereference: wid. [nullPointerRedundantCheck] wavpack-5.8.1/cli/wavpack.c:1535:9: note: Assuming that condition 'wid' is not redundant wavpack-5.8.1/cli/wavpack.c:1532:9: note: Null pointer dereference wavpack-5.8.1/cli/wavpack.c:1630:21: warning: If memory allocation fails, then there is a possible null pointer dereference: matchname [nullPointerOutOfMemory] wavpack-5.8.1/cli/wavpack.c:1629:32: note: Assuming allocation function fails wavpack-5.8.1/cli/wavpack.c:1629:32: note: Assignment 'matchname=malloc(strlen(globbuf.gl_pathv[i])+10)', assigned value is 0 wavpack-5.8.1/cli/wavpack.c:1630:21: note: Null pointer dereference wavpack-5.8.1/cli/wavpack.c:3046:21: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: outfilename_temp [nullPointerOutOfMemory] wavpack-5.8.1/cli/wavpack.c:3040:35: note: Assuming allocation function fails wavpack-5.8.1/cli/wavpack.c:3040:35: note: Assignment 'outfilename_temp=malloc(strlen(outfilename)+16)', assigned value is 0 wavpack-5.8.1/cli/wavpack.c:3046:21: note: Null pointer dereference wavpack-5.8.1/cli/wavpack.c:3612:21: warning: If memory allocation fails, then there is a possible null pointer dereference: new_channel_order [nullPointerOutOfMemory] wavpack-5.8.1/cli/wavpack.c:3609:44: note: Assuming allocation function fails wavpack-5.8.1/cli/wavpack.c:3609:44: note: Assignment 'new_channel_order=malloc(num_channels)', assigned value is 0 wavpack-5.8.1/cli/wavpack.c:3612:21: note: Null pointer dereference wavpack-5.8.1/cli/wavpack.c:3865:17: warning: If memory allocation fails, then there is a possible null pointer dereference: new_channel_order [nullPointerOutOfMemory] wavpack-5.8.1/cli/wavpack.c:3862:40: note: Assuming allocation function fails wavpack-5.8.1/cli/wavpack.c:3862:40: note: Assignment 'new_channel_order=malloc(num_channels)', assigned value is 0 wavpack-5.8.1/cli/wavpack.c:3865:17: note: Null pointer dereference wavpack-5.8.1/cli/wavpack.c:4025:13: warning: If memory allocation fails, then there is a possible null pointer dereference: settings [nullPointerOutOfMemory] wavpack-5.8.1/cli/wavpack.c:3314:32: note: Assuming allocation function fails wavpack-5.8.1/cli/wavpack.c:3314:32: note: Assignment 'value=malloc(256)', assigned value is 0 wavpack-5.8.1/cli/wavpack.c:3315:39: note: Calling function 'make_settings_string', 1st argument 'value' value is 0 wavpack-5.8.1/cli/wavpack.c:4025:13: note: Null pointer dereference wavpack-5.8.1/cli/wavpack.c:4551:12: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] wavpack-5.8.1/cli/wavpack.c:4533:25: note: Assuming allocation function fails wavpack-5.8.1/cli/wavpack.c:4533:25: note: Assignment 'temp=malloc(len)', assigned value is 0 wavpack-5.8.1/cli/wavpack.c:4544:87: note: Assuming condition is false wavpack-5.8.1/cli/wavpack.c:4551:12: note: Null pointer dereference wavpack-5.8.1/cli/wavpack.c:2634:42: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.8.1/cli/wavpack.c:2635:26: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.8.1/cli/wavpack.c:3653:38: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.8.1/cli/wavpack.c:3654:22: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.8.1/cli/wvtest.c:807:13: style: Local variable 'i' shadows outer variable [shadowVariable] wavpack-5.8.1/cli/wvtest.c:730:9: note: Shadowed declaration wavpack-5.8.1/cli/wvtest.c:807:13: note: Shadow variable wavpack-5.8.1/cli/wvtest.c:312:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvtest.c:1217:32: style: Parameter 'id' can be declared as pointer to const. However it seems that 'get_pos' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/cli/wvtest.c:1253:17: note: You might need to cast the function pointer here wavpack-5.8.1/cli/wvtest.c:1217:32: note: Parameter 'id' can be declared as pointer to const wavpack-5.8.1/cli/wvtest.c:1222:31: style: Parameter 'id' can be declared as pointer to const. However it seems that 'set_pos_abs' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/cli/wvtest.c:1253:26: note: You might need to cast the function pointer here wavpack-5.8.1/cli/wvtest.c:1222:31: note: Parameter 'id' can be declared as pointer to const wavpack-5.8.1/cli/wvtest.c:1227:31: style: Parameter 'id' can be declared as pointer to const. However it seems that 'set_pos_rel' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/cli/wvtest.c:1253:39: note: You might need to cast the function pointer here wavpack-5.8.1/cli/wvtest.c:1227:31: note: Parameter 'id' can be declared as pointer to const wavpack-5.8.1/cli/wvtest.c:1242:35: style: Parameter 'id' can be declared as pointer to const. However it seems that 'get_length' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/cli/wvtest.c:1253:68: note: You might need to cast the function pointer here wavpack-5.8.1/cli/wvtest.c:1242:35: note: Parameter 'id' can be declared as pointer to const wavpack-5.8.1/cli/wvtest.c:1247:28: style: Parameter 'id' can be declared as pointer to const. However it seems that 'can_seek' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/cli/wvtest.c:1253:80: note: You might need to cast the function pointer here wavpack-5.8.1/cli/wvtest.c:1247:28: note: Parameter 'id' can be declared as pointer to const wavpack-5.8.1/cli/wvtest.c:1374:58: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvtest.c:1476:72: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvtest.c:1520:70: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvtest.c:1564:69: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvtest.c:1608:67: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wavpack.c:1310:19: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.8.1/cli/wavpack.c:1304:11: note: c is assigned wavpack-5.8.1/cli/wavpack.c:1310:19: note: c is overwritten wavpack-5.8.1/cli/wavpack.c:3582:42: style:inconclusive: Function 'repack_audio' argument 1 names different: declaration 'wpc' definition 'outfile'. [funcArgNamesDifferent] wavpack-5.8.1/cli/wavpack.c:342:42: note: Function 'repack_audio' argument 1 names different: declaration 'wpc' definition 'outfile'. wavpack-5.8.1/cli/wavpack.c:3582:42: note: Function 'repack_audio' argument 1 names different: declaration 'wpc' definition 'outfile'. wavpack-5.8.1/cli/wavpack.c:3758:58: style:inconclusive: Function 'reorder_channels' argument 2 names different: declaration 'new_order' definition 'order'. [funcArgNamesDifferent] wavpack-5.8.1/cli/wavpack.c:2525:58: note: Function 'reorder_channels' argument 2 names different: declaration 'new_order' definition 'order'. wavpack-5.8.1/cli/wavpack.c:3758:58: note: Function 'reorder_channels' argument 2 names different: declaration 'new_order' definition 'order'. wavpack-5.8.1/cli/wavpack.c:889:21: style: Local variable 'i' shadows outer variable [shadowVariable] wavpack-5.8.1/cli/wavpack.c:368:23: note: Shadowed declaration wavpack-5.8.1/cli/wavpack.c:889:21: note: Shadow variable wavpack-5.8.1/cli/wavpack.c:1989:14: style: Local variable 'dummy' shadows outer variable [shadowVariable] wavpack-5.8.1/cli/wavpack.c:1656:63: note: Shadowed declaration wavpack-5.8.1/cli/wavpack.c:1989:14: note: Shadow variable wavpack-5.8.1/cli/wavpack.c:3253:18: style: Local variable 'error' shadows outer variable [shadowVariable] wavpack-5.8.1/cli/wavpack.c:2915:10: note: Shadowed declaration wavpack-5.8.1/cli/wavpack.c:3253:18: note: Shadow variable wavpack-5.8.1/cli/wavpack.c:384:19: style: Variable 'open_brace' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wavpack.c:867:19: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wavpack.c:1185:37: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wavpack.c:1609:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wavpack.c:2838:36: style: Variable 'iptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wavpack.c:3758:58: style: Parameter 'order' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wavpack.c:3786:63: style: Parameter 'order' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wavpack.c:3817:59: style: Parameter 'md5_digest_source' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wavpack.c:4287:72: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wavpack.c:4331:70: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvtest.c:316:63: style: Variable 'sample_count' is assigned a value that is never used. [unreadVariable] wavpack-5.8.1/cli/wavpack.c:4375:69: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wavpack.c:4419:67: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wavpack.c:4539:11: style: Variable 'old_locale' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wavpack.c:4555:19: style: Variable 'utf16p' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wavpack.c:2546:23: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] wavpack-5.8.1/cli/wavpack.c:3779:24: warning: Uninitialized variable: temp [uninitvar] wavpack-5.8.1/cli/wavpack.c:3761:39: note: Assignment 'temp=reorder_buffer', assigned value is wavpack-5.8.1/cli/wavpack.c:3764:38: note: Assuming condition is false wavpack-5.8.1/cli/wavpack.c:3779:24: note: Uninitialized variable: temp wavpack-5.8.1/src/common_utils.c:60:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/common_utils.c:265:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable block_samples [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/common_utils.c:379:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cb_func [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:368:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:1074:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:1177:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIN_STREAM_VERS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:1225:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:1606:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_NORMALIZE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:2149:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_REORDERED_CHANS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:2299:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_REORDERED_CHANS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:2510:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:2569:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:2795:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_WVC [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:3105:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_DSD_AUDIO [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:3167:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_VALID_TAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:3439:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/decorr_utils.c:48:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/decorr_utils.c:67:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/decorr_utils.c:106:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/decorr_utils.c:180:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/common_utils.c:140:47: style: Parameter 'wpc' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/common_utils.c:209:46: style: Parameter 'wpc' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/common_utils.c:214:47: style: Parameter 'wpc' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/common_utils.c:303:51: style: Parameter 'wpc' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/common_utils.c:328:20: style: Variable 'src' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/common_utils.c:658:53: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/common_utils.c:697:53: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/common_utils.c:743:50: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/common_utils.c:782:50: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/decorr_utils.c:107:53: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/decorr_utils.c:121:57: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/decorr_utils.c:146:61: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/decorr_utils.c:180:65: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/decorr_utils.c:193:64: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/decorr_utils.c:35:20: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/decorr_utils.c:64:11: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/decorr_utils.c:97:20: style: Variable 'endptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/decorr_utils.c:174:15: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/entropy_utils.c:115:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/entropy_utils.c:141:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_BITRATE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/entropy_utils.c:196:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/entropy_utils.c:367:25: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.8.1/src/entropy_utils.c:142:53: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/entropy_utils.c:154:49: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/entropy_utils.c:166:53: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/entropy_utils.c:113:20: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/entropy_utils.c:139:20: style: Variable 'endptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/entropy_utils.c:292:31: style: Parameter 'samples' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/extra1.c:259:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_FAST_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra1.c:320:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra1.c:399:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra1.c:426:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra1.c:490:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NEW_SHAPING [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra1.c:555:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra2.c:419:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CROSS_DECORR [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra2.c:484:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra2.c:563:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra2.c:590:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra2.c:654:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NEW_SHAPING [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra2.c:733:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JOINT_STEREO [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra1.c:570:17: warning: If memory allocation fails, then there is a possible null pointer dereference: noisy_buffer [nullPointerOutOfMemory] wavpack-5.8.1/src/extra1.c:569:31: note: Assuming allocation function fails wavpack-5.8.1/src/extra1.c:569:31: note: Assignment 'noisy_buffer=malloc(buf_size)', assigned value is 0 wavpack-5.8.1/src/extra1.c:570:17: note: Null pointer dereference wavpack-5.8.1/src/extra1.c:420:56: style: Parameter 'samples' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/extra1.c:491:12: style: Variable 'shaping_array' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/extra1.c:97:13: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra1.c:114:13: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:763:17: warning: If memory allocation fails, then there is a possible null pointer dereference: noisy_buffer [nullPointerOutOfMemory] wavpack-5.8.1/src/extra2.c:762:31: note: Assuming allocation function fails wavpack-5.8.1/src/extra2.c:762:31: note: Assignment 'noisy_buffer=malloc(buf_size)', assigned value is 0 wavpack-5.8.1/src/extra2.c:763:17: note: Null pointer dereference wavpack-5.8.1/src/extra2.c:187:21: style: Local variable 'k' shadows outer variable [shadowVariable] wavpack-5.8.1/src/extra2.c:164:17: note: Shadowed declaration wavpack-5.8.1/src/extra2.c:187:21: note: Shadow variable wavpack-5.8.1/src/open_filename.c:286:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/extra2.c:339:53: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/extra2.c:584:58: style: Parameter 'samples' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/extra2.c:655:12: style: Variable 'shaping_array' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/extra2.c:104:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:110:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:126:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:132:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:148:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:154:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:171:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:176:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:208:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:212:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:227:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:231:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:249:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/extra2.c:254:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/open_filename.c:302:17: warning: If memory allocation fails, then there is a possible null pointer dereference: in2filename [nullPointerOutOfMemory] wavpack-5.8.1/src/open_filename.c:300:36: note: Assuming allocation function fails wavpack-5.8.1/src/open_filename.c:300:36: note: Assignment 'in2filename=malloc(strlen(infilename)+10)', assigned value is 0 wavpack-5.8.1/src/open_filename.c:302:17: note: Null pointer dereference wavpack-5.8.1/src/open_filename.c:303:17: warning: If memory allocation fails, then there is a possible null pointer dereference: in2filename [nullPointerOutOfMemory] wavpack-5.8.1/src/open_filename.c:300:36: note: Assuming allocation function fails wavpack-5.8.1/src/open_filename.c:300:36: note: Assignment 'in2filename=malloc(strlen(infilename)+10)', assigned value is 0 wavpack-5.8.1/src/open_filename.c:303:17: note: Null pointer dereference wavpack-5.8.1/src/open_filename.c:155:45: style: Parameter 'data' can be declared as pointer to const. However it seems that 'write_bytes' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/src/open_filename.c:240:17: note: You might need to cast the function pointer here wavpack-5.8.1/src/open_filename.c:155:45: note: Parameter 'data' can be declared as pointer to const wavpack-5.8.1/src/open_legacy.c:103:9: warning: If memory allocation fails, then there is a possible null pointer dereference: trans_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_legacy.c:102:54: note: Assuming allocation function fails wavpack-5.8.1/src/open_legacy.c:102:20: note: Assignment 'trans_wv=(struct WavpackReaderTranslator*)malloc(sizeof(struct WavpackReaderTranslator))', assigned value is 0 wavpack-5.8.1/src/open_legacy.c:103:9: note: Null pointer dereference wavpack-5.8.1/src/open_legacy.c:104:9: warning: If memory allocation fails, then there is a possible null pointer dereference: trans_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_legacy.c:102:54: note: Assuming allocation function fails wavpack-5.8.1/src/open_legacy.c:102:20: note: Assignment 'trans_wv=(struct WavpackReaderTranslator*)malloc(sizeof(struct WavpackReaderTranslator))', assigned value is 0 wavpack-5.8.1/src/open_legacy.c:104:9: note: Null pointer dereference wavpack-5.8.1/src/open_legacy.c:109:9: warning: If memory allocation fails, then there is a possible null pointer dereference: trans_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_legacy.c:108:55: note: Assuming allocation function fails wavpack-5.8.1/src/open_legacy.c:108:21: note: Assignment 'trans_wvc=(struct WavpackReaderTranslator*)malloc(sizeof(struct WavpackReaderTranslator))', assigned value is 0 wavpack-5.8.1/src/open_legacy.c:109:9: note: Null pointer dereference wavpack-5.8.1/src/open_legacy.c:110:9: warning: If memory allocation fails, then there is a possible null pointer dereference: trans_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_legacy.c:108:55: note: Assuming allocation function fails wavpack-5.8.1/src/open_legacy.c:108:21: note: Assignment 'trans_wvc=(struct WavpackReaderTranslator*)malloc(sizeof(struct WavpackReaderTranslator))', assigned value is 0 wavpack-5.8.1/src/open_legacy.c:110:9: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:176:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FINAL_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_raw.c:311:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable block_samples [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:160:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:328:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:432:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_WVX_NEW_BITSTREAM [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:586:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_EXTRA_MODE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:724:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_LARGE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:837:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_MD5_CHECKSUM [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:932:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_MD5_CHECKSUM [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:972:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIN_STREAM_VERS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:1003:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INITIAL_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:1057:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INITIAL_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:1197:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeader [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_utils.c:1274:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeader [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/open_raw.c:143:18: warning: Either the condition 'main_data' is redundant or there is possible null pointer dereference: main_data. [nullPointerRedundantCheck] wavpack-5.8.1/src/open_raw.c:282:13: note: Assuming that condition 'main_data' is not redundant wavpack-5.8.1/src/open_raw.c:143:18: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:151:17: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:150:25: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:150:25: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:151:17: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:155:21: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:154:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:154:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:155:21: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:203:25: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:202:47: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:202:47: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:203:25: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:204:25: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:202:47: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:202:47: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:204:25: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:205:17: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:202:47: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:202:47: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:205:17: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:206:37: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:202:47: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:202:47: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:206:37: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:207:17: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:202:47: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:202:47: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:207:17: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:208:17: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:202:47: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:202:47: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:208:17: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:209:17: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:202:47: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:202:47: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:209:17: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:210:17: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:202:47: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:202:47: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:210:17: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:250:29: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:249:51: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:249:51: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:250:29: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:251:29: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:249:51: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:249:51: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:251:29: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:252:21: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:249:51: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:249:51: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:252:21: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:253:41: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:249:51: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:249:51: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:253:41: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:254:21: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:249:51: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:249:51: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:254:21: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:255:21: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:249:51: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:249:51: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:255:21: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:256:21: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:249:51: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:249:51: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:256:21: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:257:21: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:249:51: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:249:51: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:257:21: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:284:21: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:284:21: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:285:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:285:13: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:286:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:286:13: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:286:62: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:286:62: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:287:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:287:13: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:287:41: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:287:41: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:288:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:288:13: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:288:41: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:288:41: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:289:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:289:13: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:294:21: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:294:21: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:295:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:295:13: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:296:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:296:13: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:296:63: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:296:63: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:297:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:297:13: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:297:42: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:297:42: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:298:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:298:13: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:298:42: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:298:42: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:299:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:299:13: note: Null pointer dereference wavpack-5.8.1/src/open_raw.c:216:75: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/open_raw.c:202:47: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:202:47: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:215:75: note: Assignment 'raw_wv->segments[msi].dptr=raw_wv->segments[msi].sptr=(unsigned char*)wphdr', assigned value is 0 wavpack-5.8.1/src/open_raw.c:216:75: note: Null pointer addition wavpack-5.8.1/src/open_raw.c:263:81: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/open_raw.c:249:51: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:249:51: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:262:81: note: Assignment 'raw_wvc->segments[csi].dptr=raw_wvc->segments[csi].sptr=(unsigned char*)wphdr', assigned value is 0 wavpack-5.8.1/src/open_raw.c:263:81: note: Null pointer addition wavpack-5.8.1/src/open_raw.c:64:39: style: Parameter 'id' can be declared as pointer to const. However it seems that 'raw_write_bytes' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/src/open_raw.c:120:21: note: You might need to cast the function pointer here wavpack-5.8.1/src/open_raw.c:64:39: note: Parameter 'id' can be declared as pointer to const wavpack-5.8.1/src/open_raw.c:64:49: style: Parameter 'data' can be declared as pointer to const. However it seems that 'raw_write_bytes' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/src/open_raw.c:120:21: note: You might need to cast the function pointer here wavpack-5.8.1/src/open_raw.c:64:49: note: Parameter 'data' can be declared as pointer to const wavpack-5.8.1/src/open_raw.c:69:35: style: Parameter 'id' can be declared as pointer to const. However it seems that 'raw_get_pos' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/src/open_raw.c:120:38: note: You might need to cast the function pointer here wavpack-5.8.1/src/open_raw.c:69:35: note: Parameter 'id' can be declared as pointer to const wavpack-5.8.1/src/open_raw.c:74:35: style: Parameter 'id' can be declared as pointer to const. However it seems that 'raw_set_pos_abs' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/src/open_raw.c:120:51: note: You might need to cast the function pointer here wavpack-5.8.1/src/open_raw.c:74:35: note: Parameter 'id' can be declared as pointer to const wavpack-5.8.1/src/open_raw.c:79:35: style: Parameter 'id' can be declared as pointer to const. However it seems that 'raw_set_pos_rel' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/src/open_raw.c:120:68: note: You might need to cast the function pointer here wavpack-5.8.1/src/open_raw.c:79:35: note: Parameter 'id' can be declared as pointer to const wavpack-5.8.1/src/open_raw.c:92:38: style: Parameter 'id' can be declared as pointer to const. However it seems that 'raw_get_length' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/src/open_raw.c:121:25: note: You might need to cast the function pointer here wavpack-5.8.1/src/open_raw.c:92:38: note: Parameter 'id' can be declared as pointer to const wavpack-5.8.1/src/open_raw.c:97:32: style: Parameter 'id' can be declared as pointer to const. However it seems that 'raw_can_seek' is a callback function, if 'id' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wavpack-5.8.1/src/open_raw.c:121:41: note: You might need to cast the function pointer here wavpack-5.8.1/src/open_raw.c:97:32: note: Parameter 'id' can be declared as pointer to const wavpack-5.8.1/src/open_utils.c:279:53: style: Parameter 'wpc' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/open_utils.c:455:11: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/open_utils.c:471:11: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/open_utils.c:553:20: style: Variable 'idents' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/open_utils.c:577:20: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/open_utils.c:608:20: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/open_utils.c:678:20: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/open_utils.c:700:69: style: Parameter 'wpmd' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/open_utils.c:715:20: style: Variable 'wphdr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/open_utils.c:716:20: style: Variable 'buffend' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/open_utils.c:953:78: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/pack_dns.c:32:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_dns.c:188:13: warning: If memory allocation fails, then there is a possible null pointer dereference: values [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_dns.c:50:36: note: Assuming allocation function fails wavpack-5.8.1/src/pack_dns.c:50:36: note: Assignment 'new_values=malloc(sample_count*sizeof(short))', assigned value is 0 wavpack-5.8.1/src/pack_dns.c:57:115: note: Calling function 'generate_dns_values', 5th argument 'new_values' value is 0 wavpack-5.8.1/src/pack_dns.c:188:13: note: Null pointer dereference wavpack-5.8.1/src/pack_dns.c:238:9: warning: If memory allocation fails, then there is a possible null pointer dereference: low_freq [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_dns.c:193:23: note: Assuming allocation function fails wavpack-5.8.1/src/pack_dns.c:193:23: note: Assignment 'low_freq=malloc(filtered_count*sizeof(float))', assigned value is 0 wavpack-5.8.1/src/pack_dns.c:238:9: note: Null pointer dereference wavpack-5.8.1/src/pack_dns.c:238:25: warning: If memory allocation fails, then there is a possible null pointer dereference: low_freq [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_dns.c:193:23: note: Assuming allocation function fails wavpack-5.8.1/src/pack_dns.c:193:23: note: Assignment 'low_freq=malloc(filtered_count*sizeof(float))', assigned value is 0 wavpack-5.8.1/src/pack_dns.c:238:25: note: Null pointer dereference wavpack-5.8.1/src/pack_dns.c:240:5: warning: If memory allocation fails, then there is a possible null pointer dereference: low_freq [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_dns.c:193:23: note: Assuming allocation function fails wavpack-5.8.1/src/pack_dns.c:193:23: note: Assignment 'low_freq=malloc(filtered_count*sizeof(float))', assigned value is 0 wavpack-5.8.1/src/pack_dns.c:240:5: note: Null pointer dereference wavpack-5.8.1/src/pack_dns.c:240:20: warning: If memory allocation fails, then there is a possible null pointer dereference: low_freq [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_dns.c:193:23: note: Assuming allocation function fails wavpack-5.8.1/src/pack_dns.c:193:23: note: Assignment 'low_freq=malloc(filtered_count*sizeof(float))', assigned value is 0 wavpack-5.8.1/src/pack_dns.c:240:20: note: Null pointer dereference wavpack-5.8.1/src/pack_dns.c:58:75: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack_dns.c:50:36: note: Assuming allocation function fails wavpack-5.8.1/src/pack_dns.c:50:36: note: Assignment 'new_values=malloc(sample_count*sizeof(short))', assigned value is 0 wavpack-5.8.1/src/pack_dns.c:58:75: note: Null pointer addition wavpack-5.8.1/src/pack_dns.c:303:40: style: Parameter 'values' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvunpack.c:317:17: error: Common realloc mistake: 'argv_fn' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvunpack.c:626:17: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvunpack.c:762:17: error: Common realloc mistake: 'listbuff' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvunpack.c:790:21: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvunpack.c:2423:5: error: Common realloc mistake: 'tag_extractions' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.8.1/cli/wvunpack.c:318:25: warning: If memory allocation fails, then there is a possible null pointer dereference: option [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:315:39: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:315:39: note: Assignment 'option=malloc(option_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:318:25: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:320:17: warning: If memory allocation fails, then there is a possible null pointer dereference: option [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:315:39: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:315:39: note: Assignment 'option=malloc(option_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:320:17: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:621:25: warning: If memory allocation fails, then there is a possible null pointer dereference: outfilename [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:620:38: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:620:38: note: Assignment 'outfilename=malloc(strlen(argcp)+1024)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:621:25: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:786:25: warning: If memory allocation fails, then there is a possible null pointer dereference: fname [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:782:42: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:782:42: note: Assignment 'fname=malloc(1024)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:786:25: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:789:21: warning: If memory allocation fails, then there is a possible null pointer dereference: fname [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:782:42: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:782:42: note: Assignment 'fname=malloc(1024)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:789:21: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:923:25: warning: If memory allocation fails, then there is a possible null pointer dereference: outfilename [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:922:38: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:922:38: note: Assignment 'outfilename=malloc(strlen(matches[file_index])+10)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:923:25: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:1273:17: warning: If memory allocation fails, then there is a possible null pointer dereference: infilename_c [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:1271:37: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:1271:37: note: Assignment 'infilename_c=malloc(strlen(infilename)+10)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:1273:17: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:1274:17: warning: If memory allocation fails, then there is a possible null pointer dereference: infilename_c [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:1271:37: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:1271:37: note: Assignment 'infilename_c=malloc(strlen(infilename)+10)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:1274:17: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:1354:17: warning: If memory allocation fails, then there is a possible null pointer dereference: block_buffer [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:1353:31: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:1353:31: note: Assignment 'block_buffer=malloc(sizeof(wphdr)+wphdr.ckSize-24)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:1354:17: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:1393:29: warning: If memory allocation fails, then there is a possible null pointer dereference: block_buffer_c [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:1392:45: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:1392:45: note: Assignment 'block_buffer_c=malloc(sizeof(wphdr_c)+wphdr_c.ckSize-24)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:1393:29: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:2156:17: warning: If memory allocation fails, then there is a possible null pointer dereference: new_channel_order [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:2153:40: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:2153:40: note: Assignment 'new_channel_order=malloc(num_channels)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:2156:17: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:2306:17: warning: If memory allocation fails, then there is a possible null pointer dereference: new_channel_order [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:2303:40: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:2303:40: note: Assignment 'new_channel_order=malloc(num_channels)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:2306:17: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:2436:37: warning: If memory allocation fails, then there is a possible null pointer dereference: extraction_spec [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:2435:40: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:2435:40: note: Assignment 'extraction_spec=strdup(tag_extractions[i])', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:2436:37: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:2450:21: warning: If memory allocation fails, then there is a possible null pointer dereference: full_filename [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:2449:36: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:2449:36: note: Assignment 'full_filename=malloc(max_length*2+1)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:2450:21: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:2976:36: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:2970:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:2970:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:2976:36: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:2976:50: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:2970:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:2970:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:2976:50: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:3005:36: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:3002:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:3002:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:3005:36: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:3005:50: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:3002:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:3002:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:3005:50: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:3201:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: value [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:3197:28: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:3197:28: note: Assignment 'value=malloc(value_len)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:3201:22: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:3252:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:3186:28: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:3186:28: note: Assignment 'value=malloc(value_len*2+1)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:3188:31: note: Calling function 'dump_UTF8_string', 1st argument 'value' value is 0 wavpack-5.8.1/cli/wvunpack.c:3252:13: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:3256:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:3186:28: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:3186:28: note: Assignment 'value=malloc(value_len*2+1)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:3188:31: note: Calling function 'dump_UTF8_string', 1st argument 'value' value is 0 wavpack-5.8.1/cli/wvunpack.c:3253:19: note: Assignment 'p=string', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:3256:17: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:3438:12: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:3429:25: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:3429:25: note: Assignment 'temp=malloc(len)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:3438:12: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:3456:22: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:3429:25: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:3429:25: note: Assignment 'temp=malloc(len)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:3451:13: note: Assuming condition is false wavpack-5.8.1/cli/wvunpack.c:3456:22: note: Null pointer dereference wavpack-5.8.1/cli/wvunpack.c:1356:34: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:1353:31: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:1353:31: note: Assignment 'block_buffer=malloc(sizeof(wphdr)+wphdr.ckSize-24)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:1356:34: note: Null pointer addition wavpack-5.8.1/cli/wvunpack.c:1395:48: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:1392:45: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:1392:45: note: Assignment 'block_buffer_c=malloc(sizeof(wphdr_c)+wphdr_c.ckSize-24)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:1395:48: note: Null pointer addition wavpack-5.8.1/src/pack.c:43:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_DYNAMIC_SHAPING [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:107:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_DECORR_TERMS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:127:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_DECORR_WEIGHTS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:168:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_DECORR_SAMPLES [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:237:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_SHAPING_WEIGHTS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:280:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_INT32_INFO [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:293:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_FLOAT_INFO [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:311:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_CHANNEL_INFO [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:346:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_CHANNEL_IDENTITIES [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:360:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_CONFIG_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:385:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_NEW_CONFIG_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:430:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_SAMPLE_RATE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:473:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLOAT_DATA [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:730:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:833:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:901:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_OPTIMIZE_32BIT [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:966:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SRATE_MASK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack.c:1062:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_floats.c:163:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/cli/wvunpack.c:869:19: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.8.1/cli/wvunpack.c:863:11: note: c is assigned wavpack-5.8.1/cli/wvunpack.c:869:19: note: c is overwritten wavpack-5.8.1/cli/wvunpack.c:3163:95: style:inconclusive: Function 'dump_tag_item_to_file' argument 4 names different: declaration 'fn' definition 'fname'. [funcArgNamesDifferent] wavpack-5.8.1/cli/wvunpack.c:1571:95: note: Function 'dump_tag_item_to_file' argument 4 names different: declaration 'fn' definition 'fname'. wavpack-5.8.1/cli/wvunpack.c:3163:95: note: Function 'dump_tag_item_to_file' argument 4 names different: declaration 'fn' definition 'fname'. wavpack-5.8.1/cli/wvunpack.c:3123:115: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/cli/wvunpack.c:307:19: style: Variable 'open_brace' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvunpack.c:744:37: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvunpack.c:1158:78: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvunpack.c:2421:47: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvunpack.c:2581:72: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvunpack.c:2625:70: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvunpack.c:2669:69: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvunpack.c:2713:67: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvunpack.c:2757:63: style: Parameter 'order' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvunpack.c:2785:54: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvunpack.c:2915:24: style: Variable 'header_data' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvunpack.c:2935:28: style: Variable 'trailer_data' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvunpack.c:2961:15: style: Variable 'spaces' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvunpack.c:3067:56: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/cli/wvunpack.c:3214:31: style: Variable 'sanitized_tag_value' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/cli/wvunpack.c:3435:11: style: Variable 'old_locale' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/pack_utils.c:70:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_ALT_EXTENSION [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:193:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_COMPATIBLE_WRITE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:213:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_WAVPACK_SAMPLES [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:606:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_HIGH_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:686:112: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_RIFF_HEADER [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:850:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_RIFF_HEADER [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:868:95: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_MD5_CHECKSUM [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:967:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ChunkHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1031:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1052:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1111:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1305:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1334:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1354:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeader [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1407:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_LARGE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1471:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_ODD_SIZE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1501:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeader [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1576:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeader [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1622:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HAS_CHECKSUM [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_floats.c:48:76: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack_floats.c:105:22: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack_floats.c:130:29: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack_floats.c:250:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack_floats.c:256:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/read_words.c:271:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/read_words.c:352:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/pack_utils.c:1242:16: style: Condition 'wps->discontinuous' is always false [knownConditionTrueFalse] wavpack-5.8.1/src/pack_utils.c:1236:34: note: Assignment 'wps->discontinuous=0', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1242:16: note: Condition 'wps->discontinuous' is always false wavpack-5.8.1/src/pack_utils.c:402:9: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_utils.c:395:37: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:395:37: note: Assignment 'wps=calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:402:9: note: Null pointer dereference wavpack-5.8.1/src/pack_utils.c:403:9: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_utils.c:395:37: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:395:37: note: Assignment 'wps=calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:403:9: note: Null pointer dereference wavpack-5.8.1/src/pack_utils.c:1514:17: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_utils.c:1511:56: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:1511:17: note: Assignment 'wphdr=(WavpackHeader*)(block_buff=malloc(block_size+6))', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1514:17: note: Null pointer dereference wavpack-5.8.1/src/pack_utils.c:1515:29: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_utils.c:1511:56: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:1511:17: note: Assignment 'wphdr=(WavpackHeader*)(block_buff=malloc(block_size+6))', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1515:29: note: Null pointer dereference wavpack-5.8.1/src/pack_utils.c:1516:9: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_utils.c:1511:56: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:1511:17: note: Assignment 'wphdr=(WavpackHeader*)(block_buff=malloc(block_size+6))', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1516:9: note: Null pointer dereference wavpack-5.8.1/src/pack_utils.c:1517:9: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_utils.c:1511:56: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:1511:17: note: Assignment 'wphdr=(WavpackHeader*)(block_buff=malloc(block_size+6))', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1517:9: note: Null pointer dereference wavpack-5.8.1/src/pack_utils.c:1518:9: warning: If memory allocation fails, then there is a possible null pointer dereference: wphdr [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_utils.c:1511:56: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:1511:17: note: Assignment 'wphdr=(WavpackHeader*)(block_buff=malloc(block_size+6))', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1518:9: note: Null pointer dereference wavpack-5.8.1/src/pack_utils.c:1143:40: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack_utils.c:1142:33: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:1142:33: note: Assignment 'wps->blockbuff=malloc(max_blocksize)', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1143:40: note: Null pointer addition wavpack-5.8.1/src/pack_utils.c:1520:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack_utils.c:1511:56: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:1511:17: note: Assignment 'wphdr=(WavpackHeader*)(block_buff=malloc(block_size+6))', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1520:36: note: Null pointer addition wavpack-5.8.1/src/pack_utils.c:647:87: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/pack_utils.c:699:90: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/pack_utils.c:1244:108: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/pack_utils.c:1248:128: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/pack_utils.c:1249:79: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/pack_utils.c:1254:125: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/pack_utils.c:1275:89: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/pack_utils.c:1276:88: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/pack_utils.c:1462:47: style: Parameter 'wpmd' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/pack_utils.c:1562:76: style: Parameter 'buffer_end' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/pack_utils.c:875:14: style: struct member 'CS64Chunk::chunkSize64' is never used. [unusedStructMember] wavpack-5.8.1/src/pack_utils.c:880:14: style: struct member 'DS64Chunk::tableLength' is never used. [unusedStructMember] wavpack-5.8.1/src/pack_utils.c:886:10: style: struct member 'JunkChunk::junk' is never used. [unusedStructMember] wavpack-5.8.1/src/tags.c:153:23: style: Parameter 'm_tag' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/tags.c:166:26: style: Parameter 'm_tag' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/tag_utils.c:480:16: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.8.1/src/tag_utils.c:471:20: note: result is assigned wavpack-5.8.1/src/tag_utils.c:480:16: note: result is overwritten wavpack-5.8.1/src/tag_utils.c:480:16: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.8.1/src/tag_utils.c:476:20: note: result is assigned wavpack-5.8.1/src/tag_utils.c:480:16: note: result is overwritten wavpack-5.8.1/src/tag_utils.c:542:16: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.8.1/src/tag_utils.c:538:20: note: result is assigned wavpack-5.8.1/src/tag_utils.c:542:16: note: result is overwritten wavpack-5.8.1/src/tag_utils.c:545:16: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.8.1/src/tag_utils.c:542:16: note: result is assigned wavpack-5.8.1/src/tag_utils.c:545:16: note: result is overwritten wavpack-5.8.1/src/tag_utils.c:188:24: style: Variable 'q' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/tag_utils.c:239:20: style: Variable 'q' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/tag_utils.c:330:20: style: Variable 'q' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/tag_utils.c:564:11: style: Variable 's1' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/tag_utils.c:564:22: style: Variable 's2' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/tag_utils.c:585:11: style: Variable 's1' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/tag_utils.c:585:22: style: Variable 's2' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/tag_utils.c:386:83: style: Variable 'index' is assigned a value that is never used. [unreadVariable] wavpack-5.8.1/src/pack.c:240:13: warning: If memory allocation fails, then there is a possible null pointer dereference: byteptr++ [nullPointerOutOfMemory] wavpack-5.8.1/src/pack.c:236:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:236:26: note: Assignment 'byteptr=wpmd->data=malloc(12)', assigned value is 0 wavpack-5.8.1/src/pack.c:240:13: note: Null pointer dereference wavpack-5.8.1/src/pack.c:281:13: warning: If memory allocation fails, then there is a possible null pointer dereference: byteptr++ [nullPointerOutOfMemory] wavpack-5.8.1/src/pack.c:279:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:279:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:281:13: note: Null pointer dereference wavpack-5.8.1/src/pack.c:294:13: warning: If memory allocation fails, then there is a possible null pointer dereference: byteptr++ [nullPointerOutOfMemory] wavpack-5.8.1/src/pack.c:292:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:292:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:294:13: note: Null pointer dereference wavpack-5.8.1/src/pack.c:361:13: warning: If memory allocation fails, then there is a possible null pointer dereference: byteptr++ [nullPointerOutOfMemory] wavpack-5.8.1/src/pack.c:359:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:359:26: note: Assignment 'byteptr=wpmd->data=malloc(8)', assigned value is 0 wavpack-5.8.1/src/pack.c:361:13: note: Null pointer dereference wavpack-5.8.1/src/pack.c:431:13: warning: If memory allocation fails, then there is a possible null pointer dereference: byteptr++ [nullPointerOutOfMemory] wavpack-5.8.1/src/pack.c:429:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:429:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:431:13: note: Null pointer dereference wavpack-5.8.1/src/pack.c:569:21: warning: If memory allocation fails, then there is a possible null pointer dereference: orig_data [nullPointerOutOfMemory] wavpack-5.8.1/src/pack.c:568:32: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:568:32: note: Assignment 'orig_data=malloc(sizeof(f32)*((flags&MONO_DATA)?sample_count:sample_count*2))', assigned value is 0 wavpack-5.8.1/src/pack.c:569:21: note: Null pointer dereference wavpack-5.8.1/src/pack.c:1109:17: warning: If memory allocation fails, then there is a possible null pointer dereference: saved_buffer [nullPointerOutOfMemory] wavpack-5.8.1/src/pack.c:1108:31: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:1108:31: note: Assignment 'saved_buffer=malloc(sample_count*sizeof(int32_t)*(flags&MONO_DATA?1:2))', assigned value is 0 wavpack-5.8.1/src/pack.c:1109:17: note: Null pointer dereference wavpack-5.8.1/src/pack.c:240:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:236:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:236:26: note: Assignment 'byteptr=wpmd->data=malloc(12)', assigned value is 0 wavpack-5.8.1/src/pack.c:240:13: note: Null pointer addition wavpack-5.8.1/src/pack.c:281:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:279:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:279:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:281:13: note: Null pointer addition wavpack-5.8.1/src/pack.c:294:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:292:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:292:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:294:13: note: Null pointer addition wavpack-5.8.1/src/pack.c:361:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:359:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:359:26: note: Assignment 'byteptr=wpmd->data=malloc(8)', assigned value is 0 wavpack-5.8.1/src/pack.c:361:13: note: Null pointer addition wavpack-5.8.1/src/pack.c:416:43: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:383:41: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:383:32: note: Assignment 'byteptr=wpmd->data=malloc(260)', assigned value is 0 wavpack-5.8.1/src/pack.c:387:66: note: Assuming condition is false wavpack-5.8.1/src/pack.c:416:43: note: Null pointer subtraction wavpack-5.8.1/src/pack.c:431:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:429:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:429:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:431:13: note: Null pointer addition wavpack-5.8.1/src/pack.c:462:14: style:inconclusive: Same expression used in consecutive assignments of 'flags' and 'sflags'. [duplicateAssignExpression] wavpack-5.8.1/src/pack.c:462:40: note: Same expression used in consecutive assignments of 'flags' and 'sflags'. wavpack-5.8.1/src/pack.c:462:14: note: Same expression used in consecutive assignments of 'flags' and 'sflags'. wavpack-5.8.1/src/pack.c:55:68: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.8.1/src/pack.c:1108:85: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/pack.c:1109:92: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/pack.c:1488:100: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/pack.c:275:46: style: Parameter 'wps' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/pack.c:288:46: style: Parameter 'wps' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/pack.c:342:59: style: Parameter 'wps' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/pack.c:1063:18: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/pack.c:1072:18: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/pack.c:1120:16: style: Variable 'shaping_array' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/pack.c:1191:30: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/pack.c:1532:21: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/pack.c:1254:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1261:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1364:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1365:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1376:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1379:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1392:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1393:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1543:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1548:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1560:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1565:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1576:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1580:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1594:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1597:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1608:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1611:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1625:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1629:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:1695:13: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/pack.c:547:18: style: Variable 'mag' is assigned a value that is never used. [unreadVariable] wavpack-5.8.1/src/unpack.c:77:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/unpack.c:700:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/unpack_seek.c:68:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INITIAL_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/unpack_seek.c:300:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIN_STREAM_VERS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/unpack_seek.c:163:13: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/unpack_seek.c:162:77: note: Assuming allocation function fails wavpack-5.8.1/src/unpack_seek.c:162:51: note: Assignment 'wps=wpc->streams[wpc->num_streams]=(struct WavpackStream*)calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/unpack_seek.c:163:13: note: Null pointer dereference wavpack-5.8.1/src/unpack_seek.c:164:13: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/unpack_seek.c:162:77: note: Assuming allocation function fails wavpack-5.8.1/src/unpack_seek.c:162:51: note: Assignment 'wps=wpc->streams[wpc->num_streams]=(struct WavpackStream*)calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/unpack_seek.c:164:13: note: Null pointer dereference wavpack-5.8.1/src/unpack_seek.c:172:13: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/unpack_seek.c:162:77: note: Assuming allocation function fails wavpack-5.8.1/src/unpack_seek.c:162:51: note: Assignment 'wps=wpc->streams[wpc->num_streams]=(struct WavpackStream*)calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/unpack_seek.c:167:24: note: Assuming condition is false wavpack-5.8.1/src/unpack_seek.c:172:13: note: Null pointer dereference wavpack-5.8.1/src/unpack_seek.c:172:55: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/unpack_seek.c:162:77: note: Assuming allocation function fails wavpack-5.8.1/src/unpack_seek.c:162:51: note: Assignment 'wps=wpc->streams[wpc->num_streams]=(struct WavpackStream*)calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/unpack_seek.c:167:24: note: Assuming condition is false wavpack-5.8.1/src/unpack_seek.c:172:55: note: Null pointer dereference wavpack-5.8.1/src/unpack_seek.c:173:21: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/unpack_seek.c:162:77: note: Assuming allocation function fails wavpack-5.8.1/src/unpack_seek.c:162:51: note: Assignment 'wps=wpc->streams[wpc->num_streams]=(struct WavpackStream*)calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/unpack_seek.c:167:24: note: Assuming condition is false wavpack-5.8.1/src/unpack_seek.c:173:21: note: Null pointer dereference wavpack-5.8.1/src/unpack_seek.c:175:54: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/unpack_seek.c:162:77: note: Assuming allocation function fails wavpack-5.8.1/src/unpack_seek.c:162:51: note: Assignment 'wps=wpc->streams[wpc->num_streams]=(struct WavpackStream*)calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/unpack_seek.c:167:24: note: Assuming condition is false wavpack-5.8.1/src/unpack_seek.c:175:54: note: Null pointer dereference wavpack-5.8.1/src/unpack_seek.c:175:75: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/unpack_seek.c:162:77: note: Assuming allocation function fails wavpack-5.8.1/src/unpack_seek.c:162:51: note: Assignment 'wps=wpc->streams[wpc->num_streams]=(struct WavpackStream*)calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/unpack_seek.c:167:24: note: Assuming condition is false wavpack-5.8.1/src/unpack_seek.c:175:75: note: Null pointer dereference wavpack-5.8.1/src/unpack_seek.c:176:17: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/unpack_seek.c:162:77: note: Assuming allocation function fails wavpack-5.8.1/src/unpack_seek.c:162:51: note: Assignment 'wps=wpc->streams[wpc->num_streams]=(struct WavpackStream*)calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/unpack_seek.c:167:24: note: Assuming condition is false wavpack-5.8.1/src/unpack_seek.c:176:17: note: Null pointer dereference wavpack-5.8.1/src/unpack_seek.c:41:57: style: Variable 'samples_to_decode' is assigned a value that is never used. [unreadVariable] wavpack-5.8.1/src/unpack_seek.c:41:39: style: Variable 'samples_to_decode' is assigned a value that is never used. [unreadVariable] wavpack-5.8.1/src/unpack_utils.c:43:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/unpack_utils.c:136:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INITIAL_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/unpack_utils.c:43:55: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/unpack_floats.c:111:48: style: Parameter 'wps' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/unpack_floats.c:104:82: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/write_words.c:44:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/write_words.c:58:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_BITRATE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/write_words.c:105:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_ENTROPY_VARS [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/write_words.c:141:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_HYBRID_PROFILE [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/write_words.c:213:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/write_words.c:337:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/write_words.c:521:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/write_words.c:585:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.8.1/src/write_words.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] wavpack-5.8.1/src/write_words.c:107:13: warning: If memory allocation fails, then there is a possible null pointer dereference: byteptr++ [nullPointerOutOfMemory] wavpack-5.8.1/src/write_words.c:104:35: note: Assuming allocation function fails wavpack-5.8.1/src/write_words.c:104:26: note: Assignment 'byteptr=wpmd->data=malloc(12)', assigned value is 0 wavpack-5.8.1/src/write_words.c:107:13: note: Null pointer dereference wavpack-5.8.1/src/write_words.c:153:13: warning: If memory allocation fails, then there is a possible null pointer dereference: byteptr++ [nullPointerOutOfMemory] wavpack-5.8.1/src/write_words.c:140:35: note: Assuming allocation function fails wavpack-5.8.1/src/write_words.c:140:26: note: Assignment 'byteptr=wpmd->data=malloc(512)', assigned value is 0 wavpack-5.8.1/src/write_words.c:143:26: note: Assuming condition is false wavpack-5.8.1/src/write_words.c:153:13: note: Null pointer dereference wavpack-5.8.1/src/write_words.c:107:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/write_words.c:104:35: note: Assuming allocation function fails wavpack-5.8.1/src/write_words.c:104:26: note: Assignment 'byteptr=wpmd->data=malloc(12)', assigned value is 0 wavpack-5.8.1/src/write_words.c:107:13: note: Null pointer addition wavpack-5.8.1/src/write_words.c:153:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/write_words.c:140:35: note: Assuming allocation function fails wavpack-5.8.1/src/write_words.c:140:26: note: Assignment 'byteptr=wpmd->data=malloc(512)', assigned value is 0 wavpack-5.8.1/src/write_words.c:143:26: note: Assuming condition is false wavpack-5.8.1/src/write_words.c:153:13: note: Null pointer addition wavpack-5.8.1/src/write_words.c:332:56: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] wavpack-5.8.1/src/unpack.c:789:59: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.8.1/src/unpack.c:794:61: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.8.1/src/unpack.c:799:63: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.8.1/src/unpack.c:804:75: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.8.1/src/unpack.c:459:62: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/unpack.c:509:66: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.8.1/src/unpack.c:107:18: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/unpack.c:163:18: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/unpack.c:491:18: style: Variable 'sptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/unpack.c:526:21: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/unpack.c:587:21: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.8.1/src/unpack.c:250:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:366:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:367:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:374:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:377:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:382:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:391:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:536:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:547:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:557:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:598:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:603:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:615:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:620:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:631:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:636:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:650:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:653:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:664:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:667:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:678:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.8.1/src/unpack.c:680:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] diff: 2.17.0 wavpack-5.8.1/cli/import_id3.c:350:42: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/import_id3.c:346:49: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:346:49: note: Assignment 'binary_tag_image=malloc(binary_tag_size)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:350:42: note: Null pointer addition head wavpack-5.8.1/cli/import_id3.c:350:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/import_id3.c:346:49: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:346:49: note: Assignment 'binary_tag_image=malloc(binary_tag_size)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:350:42: note: Null pointer addition 2.17.0 wavpack-5.8.1/cli/import_id3.c:466:74: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/import_id3.c:466:34: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:466:34: note: Assignment 'new_value=malloc(max_vsize)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:466:74: note: Null pointer addition head wavpack-5.8.1/cli/import_id3.c:466:74: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/import_id3.c:466:34: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:466:34: note: Assignment 'new_value=malloc(max_vsize)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:466:74: note: Null pointer addition 2.17.0 wavpack-5.8.1/cli/import_id3.c:521:34: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/import_id3.c:197:49: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:197:49: note: Assignment 'utf8_string=malloc(frame_size*2)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:199:96: note: Calling function 'ID3v2StringsToUTF8', 4th argument 'utf8_string' value is 0 wavpack-5.8.1/cli/import_id3.c:521:34: note: Null pointer addition head wavpack-5.8.1/cli/import_id3.c:521:34: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/import_id3.c:197:49: note: Assuming allocation function fails wavpack-5.8.1/cli/import_id3.c:197:49: note: Assignment 'utf8_string=malloc(frame_size*2)', assigned value is 0 wavpack-5.8.1/cli/import_id3.c:199:96: note: Calling function 'ID3v2StringsToUTF8', 4th argument 'utf8_string' value is 0 wavpack-5.8.1/cli/import_id3.c:521:34: note: Null pointer addition head wavpack-5.8.1/cli/wvtag.c:1076:50: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1070:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1070:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1076:50: note: Null pointer dereference head wavpack-5.8.1/cli/wvtag.c:1105:50: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvtag.c:1102:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvtag.c:1102:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvtag.c:1105:50: note: Null pointer dereference 2.17.0 wavpack-5.8.1/cli/wvunpack.c:1356:34: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:1353:31: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:1353:31: note: Assignment 'block_buffer=malloc(sizeof(wphdr)+wphdr.ckSize-24)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:1356:34: note: Null pointer addition head wavpack-5.8.1/cli/wvunpack.c:1356:34: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:1353:31: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:1353:31: note: Assignment 'block_buffer=malloc(sizeof(wphdr)+wphdr.ckSize-24)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:1356:34: note: Null pointer addition 2.17.0 wavpack-5.8.1/cli/wvunpack.c:1395:48: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:1392:45: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:1392:45: note: Assignment 'block_buffer_c=malloc(sizeof(wphdr_c)+wphdr_c.ckSize-24)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:1395:48: note: Null pointer addition head wavpack-5.8.1/cli/wvunpack.c:1395:48: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:1392:45: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:1392:45: note: Assignment 'block_buffer_c=malloc(sizeof(wphdr_c)+wphdr_c.ckSize-24)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:1395:48: note: Null pointer addition head wavpack-5.8.1/cli/wvunpack.c:2976:50: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:2970:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:2970:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:2976:50: note: Null pointer dereference head wavpack-5.8.1/cli/wvunpack.c:3005:50: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] wavpack-5.8.1/cli/wvunpack.c:3002:27: note: Assuming allocation function fails wavpack-5.8.1/cli/wvunpack.c:3002:27: note: Assignment 'item=malloc(item_len+1)', assigned value is 0 wavpack-5.8.1/cli/wvunpack.c:3005:50: note: Null pointer dereference 2.17.0 wavpack-5.8.1/src/open_raw.c:216:75: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/open_raw.c:202:47: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:202:47: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:215:75: note: Assignment 'raw_wv->segments[msi].dptr=raw_wv->segments[msi].sptr=(unsigned char*)wphdr', assigned value is 0 wavpack-5.8.1/src/open_raw.c:216:75: note: Null pointer addition head wavpack-5.8.1/src/open_raw.c:216:75: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/open_raw.c:202:47: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:202:47: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:215:75: note: Assignment 'raw_wv->segments[msi].dptr=raw_wv->segments[msi].sptr=(unsigned char*)wphdr', assigned value is 0 wavpack-5.8.1/src/open_raw.c:216:75: note: Null pointer addition 2.17.0 wavpack-5.8.1/src/open_raw.c:263:81: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/open_raw.c:249:51: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:249:51: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:262:81: note: Assignment 'raw_wvc->segments[csi].dptr=raw_wvc->segments[csi].sptr=(unsigned char*)wphdr', assigned value is 0 wavpack-5.8.1/src/open_raw.c:263:81: note: Null pointer addition head wavpack-5.8.1/src/open_raw.c:263:81: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/open_raw.c:249:51: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:249:51: note: Assignment 'wphdr=malloc(sizeof(WavpackHeader))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:262:81: note: Assignment 'raw_wvc->segments[csi].dptr=raw_wvc->segments[csi].sptr=(unsigned char*)wphdr', assigned value is 0 wavpack-5.8.1/src/open_raw.c:263:81: note: Null pointer addition head wavpack-5.8.1/src/open_raw.c:286:62: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:286:62: note: Null pointer dereference head wavpack-5.8.1/src/open_raw.c:287:41: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:287:41: note: Null pointer dereference head wavpack-5.8.1/src/open_raw.c:288:41: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wv [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:283:29: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:283:29: note: Assignment 'raw_wv=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:288:41: note: Null pointer dereference head wavpack-5.8.1/src/open_raw.c:296:63: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:296:63: note: Null pointer dereference head wavpack-5.8.1/src/open_raw.c:297:42: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:297:42: note: Null pointer dereference head wavpack-5.8.1/src/open_raw.c:298:42: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_wvc [nullPointerOutOfMemory] wavpack-5.8.1/src/open_raw.c:293:30: note: Assuming allocation function fails wavpack-5.8.1/src/open_raw.c:293:30: note: Assignment 'raw_wvc=malloc(sizeof(struct WavpackRawContext))', assigned value is 0 wavpack-5.8.1/src/open_raw.c:298:42: note: Null pointer dereference 2.17.0 wavpack-5.8.1/src/pack.c:240:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:236:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:236:26: note: Assignment 'byteptr=wpmd->data=malloc(12)', assigned value is 0 wavpack-5.8.1/src/pack.c:240:13: note: Null pointer addition head wavpack-5.8.1/src/pack.c:240:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:236:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:236:26: note: Assignment 'byteptr=wpmd->data=malloc(12)', assigned value is 0 wavpack-5.8.1/src/pack.c:240:13: note: Null pointer addition 2.17.0 wavpack-5.8.1/src/pack.c:281:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:279:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:279:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:281:13: note: Null pointer addition head wavpack-5.8.1/src/pack.c:281:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:279:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:279:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:281:13: note: Null pointer addition 2.17.0 wavpack-5.8.1/src/pack.c:294:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:292:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:292:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:294:13: note: Null pointer addition head wavpack-5.8.1/src/pack.c:294:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:292:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:292:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:294:13: note: Null pointer addition 2.17.0 wavpack-5.8.1/src/pack.c:361:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:359:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:359:26: note: Assignment 'byteptr=wpmd->data=malloc(8)', assigned value is 0 wavpack-5.8.1/src/pack.c:361:13: note: Null pointer addition head wavpack-5.8.1/src/pack.c:361:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:359:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:359:26: note: Assignment 'byteptr=wpmd->data=malloc(8)', assigned value is 0 wavpack-5.8.1/src/pack.c:361:13: note: Null pointer addition 2.17.0 wavpack-5.8.1/src/pack.c:416:43: error: If memory allocation fail: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:383:41: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:383:32: note: Assignment 'byteptr=wpmd->data=malloc(260)', assigned value is 0 wavpack-5.8.1/src/pack.c:387:66: note: Assuming condition is false wavpack-5.8.1/src/pack.c:416:43: note: Null pointer subtraction head wavpack-5.8.1/src/pack.c:416:43: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:383:41: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:383:32: note: Assignment 'byteptr=wpmd->data=malloc(260)', assigned value is 0 wavpack-5.8.1/src/pack.c:387:66: note: Assuming condition is false wavpack-5.8.1/src/pack.c:416:43: note: Null pointer subtraction 2.17.0 wavpack-5.8.1/src/pack.c:431:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:429:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:429:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:431:13: note: Null pointer addition head wavpack-5.8.1/src/pack.c:431:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack.c:429:35: note: Assuming allocation function fails wavpack-5.8.1/src/pack.c:429:26: note: Assignment 'byteptr=wpmd->data=malloc(4)', assigned value is 0 wavpack-5.8.1/src/pack.c:431:13: note: Null pointer addition head wavpack-5.8.1/src/pack_dns.c:238:25: warning: If memory allocation fails, then there is a possible null pointer dereference: low_freq [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_dns.c:193:23: note: Assuming allocation function fails wavpack-5.8.1/src/pack_dns.c:193:23: note: Assignment 'low_freq=malloc(filtered_count*sizeof(float))', assigned value is 0 wavpack-5.8.1/src/pack_dns.c:238:25: note: Null pointer dereference head wavpack-5.8.1/src/pack_dns.c:240:20: warning: If memory allocation fails, then there is a possible null pointer dereference: low_freq [nullPointerOutOfMemory] wavpack-5.8.1/src/pack_dns.c:193:23: note: Assuming allocation function fails wavpack-5.8.1/src/pack_dns.c:193:23: note: Assignment 'low_freq=malloc(filtered_count*sizeof(float))', assigned value is 0 wavpack-5.8.1/src/pack_dns.c:240:20: note: Null pointer dereference 2.17.0 wavpack-5.8.1/src/pack_dns.c:58:75: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack_dns.c:50:36: note: Assuming allocation function fails wavpack-5.8.1/src/pack_dns.c:50:36: note: Assignment 'new_values=malloc(sample_count*sizeof(short))', assigned value is 0 wavpack-5.8.1/src/pack_dns.c:58:75: note: Null pointer addition head wavpack-5.8.1/src/pack_dns.c:58:75: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack_dns.c:50:36: note: Assuming allocation function fails wavpack-5.8.1/src/pack_dns.c:50:36: note: Assignment 'new_values=malloc(sample_count*sizeof(short))', assigned value is 0 wavpack-5.8.1/src/pack_dns.c:58:75: note: Null pointer addition 2.17.0 wavpack-5.8.1/src/pack_utils.c:1143:40: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack_utils.c:1142:33: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:1142:33: note: Assignment 'wps->blockbuff=malloc(max_blocksize)', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1143:40: note: Null pointer addition head wavpack-5.8.1/src/pack_utils.c:1143:40: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack_utils.c:1142:33: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:1142:33: note: Assignment 'wps->blockbuff=malloc(max_blocksize)', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1143:40: note: Null pointer addition 2.17.0 wavpack-5.8.1/src/pack_utils.c:1520:36: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack_utils.c:1511:56: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:1511:17: note: Assignment 'wphdr=(WavpackHeader*)(block_buff=malloc(block_size+6))', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1520:36: note: Null pointer addition head wavpack-5.8.1/src/pack_utils.c:1520:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/pack_utils.c:1511:56: note: Assuming allocation function fails wavpack-5.8.1/src/pack_utils.c:1511:17: note: Assignment 'wphdr=(WavpackHeader*)(block_buff=malloc(block_size+6))', assigned value is 0 wavpack-5.8.1/src/pack_utils.c:1520:36: note: Null pointer addition head wavpack-5.8.1/src/unpack_seek.c:172:55: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/unpack_seek.c:162:77: note: Assuming allocation function fails wavpack-5.8.1/src/unpack_seek.c:162:51: note: Assignment 'wps=wpc->streams[wpc->num_streams]=(struct WavpackStream*)calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/unpack_seek.c:167:24: note: Assuming condition is false wavpack-5.8.1/src/unpack_seek.c:172:55: note: Null pointer dereference head wavpack-5.8.1/src/unpack_seek.c:175:75: warning: If memory allocation fails, then there is a possible null pointer dereference: wps [nullPointerOutOfMemory] wavpack-5.8.1/src/unpack_seek.c:162:77: note: Assuming allocation function fails wavpack-5.8.1/src/unpack_seek.c:162:51: note: Assignment 'wps=wpc->streams[wpc->num_streams]=(struct WavpackStream*)calloc(1,sizeof(struct WavpackStream))', assigned value is 0 wavpack-5.8.1/src/unpack_seek.c:167:24: note: Assuming condition is false wavpack-5.8.1/src/unpack_seek.c:175:75: note: Null pointer dereference head wavpack-5.8.1/src/unpack_seek.c:41:39: style: Variable 'samples_to_decode' is assigned a value that is never used. [unreadVariable] 2.17.0 wavpack-5.8.1/src/write_words.c:107:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/write_words.c:104:35: note: Assuming allocation function fails wavpack-5.8.1/src/write_words.c:104:26: note: Assignment 'byteptr=wpmd->data=malloc(12)', assigned value is 0 wavpack-5.8.1/src/write_words.c:107:13: note: Null pointer addition head wavpack-5.8.1/src/write_words.c:107:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/write_words.c:104:35: note: Assuming allocation function fails wavpack-5.8.1/src/write_words.c:104:26: note: Assignment 'byteptr=wpmd->data=malloc(12)', assigned value is 0 wavpack-5.8.1/src/write_words.c:107:13: note: Null pointer addition 2.17.0 wavpack-5.8.1/src/write_words.c:153:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/write_words.c:140:35: note: Assuming allocation function fails wavpack-5.8.1/src/write_words.c:140:26: note: Assignment 'byteptr=wpmd->data=malloc(512)', assigned value is 0 wavpack-5.8.1/src/write_words.c:143:26: note: Assuming condition is false wavpack-5.8.1/src/write_words.c:153:13: note: Null pointer addition head wavpack-5.8.1/src/write_words.c:153:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wavpack-5.8.1/src/write_words.c:140:35: note: Assuming allocation function fails wavpack-5.8.1/src/write_words.c:140:26: note: Assignment 'byteptr=wpmd->data=malloc(512)', assigned value is 0 wavpack-5.8.1/src/write_words.c:143:26: note: Assuming condition is false wavpack-5.8.1/src/write_words.c:153:13: note: Null pointer addition DONE