2024-05-04 09:49 ftp://ftp.de.debian.org/debian/pool/main/w/wavpack/wavpack_5.7.0.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 -j1 platform: Linux-5.15.0-102-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.59 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.14.0 head-info: 84cf512 (2024-05-03 17:58:11 +0200) count: 469 469 elapsed-time: 29.8 29.4 head-timing-info: old-timing-info: head results: wavpack-5.7.0/cli/aiff.c:69:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_IGNORE_LENGTH [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/aiff.c:55:66: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/aiff_write.c:85:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/aiff_write.c:106:15: style: Variable 'compressionType' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/aiff_write.c:106:33: style: Variable 'compressionName' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/caff.c:164:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_NO_STORE_WRAPPER [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/caff.c:71:59: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] wavpack-5.7.0/cli/caff.c:72:53: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] wavpack-5.7.0/cli/caff.c:145:66: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/caff_write.c:136:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/caff_write.c:66:59: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] wavpack-5.7.0/cli/caff_write.c:67:53: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] wavpack-5.7.0/cli/caff_write.c:200:17: style: Local variable 'i' shadows outer variable [shadowVariable] wavpack-5.7.0/cli/caff_write.c:95:31: note: Shadowed declaration wavpack-5.7.0/cli/caff_write.c:200:17: note: Shadow variable wavpack-5.7.0/cli/caff_write.c:73:14: style: struct member 'CAFChannelDescription::mChannelFlags' is never used. [unusedStructMember] wavpack-5.7.0/cli/caff_write.c:74:11: style: struct member 'CAFChannelDescription::mCoordinates' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:83:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_NO_STORE_WRAPPER [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/dsdiff.c:68:68: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/dsdiff.c:170:47: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/dsdiff.c:36:10: style: struct member 'DFFVersionChunk::ckID' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:37:13: style: struct member 'DFFVersionChunk::ckDataSize' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:38:14: style: struct member 'DFFVersionChunk::version' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:42:10: style: struct member 'DFFSampleRateChunk::ckID' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:43:13: style: struct member 'DFFSampleRateChunk::ckDataSize' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:44:14: style: struct member 'DFFSampleRateChunk::sampleRate' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:48:10: style: struct member 'DFFChannelsHeader::ckID' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:49:13: style: struct member 'DFFChannelsHeader::ckDataSize' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:50:14: style: struct member 'DFFChannelsHeader::numChannels' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:54:10: style: struct member 'DFFCompressionHeader::ckID' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:55:13: style: struct member 'DFFCompressionHeader::ckDataSize' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsdiff.c:56:10: style: struct member 'DFFCompressionHeader::compressionType' is never used. [unusedStructMember] wavpack-5.7.0/cli/dsf.c:73:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_NO_STORE_WRAPPER [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/dsf.c:56:65: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/dsf_write.c:102:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_DSD_LSB_FIRST [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/import_id3.c:657:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/import_id3.c:277:31: style: Variable 'extension' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/import_id3.c:389:40: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/import_id3.c:520:20: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/import_id3.c:524:24: style: Variable 'fp' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/import_id3.c:524:35: style: Variable 'fe' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/import_id3.c:544:35: style: Variable 'fe' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/riff.c:60:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_IGNORE_LENGTH [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/riff.c:46:66: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/riff.c:36:10: style: struct member 'JunkChunk::junk' is never used. [unusedStructMember] wavpack-5.7.0/cli/riff_write.c:124:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ChunkHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/riff_write.c:36:10: style: struct member 'JunkChunk::junk' is never used. [unusedStructMember] wavpack-5.7.0/cli/utils.c:104:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_sec [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/utils.c:196:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOB_MARK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/utils.c:323:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/utils.c:515:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/utils.c:603:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/utils.c:798:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/utils.c:110:9: style: Obsolescent function 'utimes' called. It is recommended to use 'utimensat' instead. [prohibitedutimesCalled] wavpack-5.7.0/cli/utils.c:258:28: style: Parameter 'filespec' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/utils.c:664:37: style: Parameter 'lpBuffer' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/utils.c:777:25: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/utils.c:796:31: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wave64.c:61:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_NO_STORE_WRAPPER [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wave64.c:42:68: style: Parameter 'fourcc' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wave64_write.c:108:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WaveHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:439:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:1676:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:2552:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_FLOAT [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:2745:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_DSD_IN_BLOCKS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:2874:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:3574:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_REORDERED_CHANS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:3788:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_WVC [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:3998:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_FAST_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:4067:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:4244:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:4521:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wavpack.c:2598:13: style: Condition 'sample_count' is always true [knownConditionTrueFalse] wavpack-5.7.0/cli/wavpack.c:2785:17: style: Condition 'sample_count' is always true [knownConditionTrueFalse] wavpack-5.7.0/cli/wavpack.c:390:17: error: Common realloc mistake: 'argv_fn' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wavpack.c:881:17: error: Common realloc mistake: 'tag_items' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wavpack.c:936:13: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wavpack.c:1193:17: error: Common realloc mistake: 'listbuff' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wavpack.c:1221:21: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wavpack.c:2123:17: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wavpack.c:1522:9: warning: Either the condition 'wid' is redundant or there is possible null pointer dereference: wid. [nullPointerRedundantCheck] wavpack-5.7.0/cli/wavpack.c:1525:9: note: Assuming that condition 'wid' is not redundant wavpack-5.7.0/cli/wavpack.c:1522:9: note: Null pointer dereference wavpack-5.7.0/cli/wavpack.c:2619:42: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.7.0/cli/wavpack.c:2620:26: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.7.0/cli/wavpack.c:3622:38: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.7.0/cli/wavpack.c:3623:22: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.7.0/cli/wavpack.c:1300:19: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.7.0/cli/wavpack.c:1294:11: note: c is assigned wavpack-5.7.0/cli/wavpack.c:1300:19: note: c is overwritten wavpack-5.7.0/cli/wavpack.c:3551:42: style:inconclusive: Function 'repack_audio' argument 1 names different: declaration 'wpc' definition 'outfile'. [funcArgNamesDifferent] wavpack-5.7.0/cli/wavpack.c:338:42: note: Function 'repack_audio' argument 1 names different: declaration 'wpc' definition 'outfile'. wavpack-5.7.0/cli/wavpack.c:3551:42: note: Function 'repack_audio' argument 1 names different: declaration 'wpc' definition 'outfile'. wavpack-5.7.0/cli/wavpack.c:3727:58: style:inconclusive: Function 'reorder_channels' argument 2 names different: declaration 'new_order' definition 'order'. [funcArgNamesDifferent] wavpack-5.7.0/cli/wavpack.c:2515:58: note: Function 'reorder_channels' argument 2 names different: declaration 'new_order' definition 'order'. wavpack-5.7.0/cli/wavpack.c:3727:58: note: Function 'reorder_channels' argument 2 names different: declaration 'new_order' definition 'order'. wavpack-5.7.0/cli/wavpack.c:879:21: style: Local variable 'i' shadows outer variable [shadowVariable] wavpack-5.7.0/cli/wavpack.c:364:23: note: Shadowed declaration wavpack-5.7.0/cli/wavpack.c:879:21: note: Shadow variable wavpack-5.7.0/cli/wavpack.c:1979:14: style: Local variable 'dummy' shadows outer variable [shadowVariable] wavpack-5.7.0/cli/wavpack.c:1646:63: note: Shadowed declaration wavpack-5.7.0/cli/wavpack.c:1979:14: note: Shadow variable wavpack-5.7.0/cli/wavpack.c:3222:18: style: Local variable 'error' shadows outer variable [shadowVariable] wavpack-5.7.0/cli/wavpack.c:2884:10: note: Shadowed declaration wavpack-5.7.0/cli/wavpack.c:3222:18: note: Shadow variable wavpack-5.7.0/cli/wavpack.c:380:19: style: Variable 'open_brace' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wavpack.c:857:19: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wavpack.c:1175:37: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wavpack.c:1599:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wavpack.c:2807:36: style: Variable 'iptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wavpack.c:3727:58: style: Parameter 'order' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wavpack.c:3755:63: style: Parameter 'order' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wavpack.c:3786:59: style: Parameter 'md5_digest_source' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wavpack.c:4300:70: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wavpack.c:4388:67: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wavpack.c:4508:11: style: Variable 'old_locale' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wavpack.c:4524:19: style: Variable 'utf16p' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wavpack.c:2536: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.7.0/cli/wavpack.c:3748:24: error: Uninitialized variable: temp [uninitvar] wavpack-5.7.0/cli/wavpack.c:3730:39: note: Assignment 'temp=reorder_buffer', assigned value is wavpack-5.7.0/cli/wavpack.c:3748:24: note: Uninitialized variable: temp wavpack-5.7.0/cli/wvgain.c:180:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvgain.c:610:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_WVC [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvgain.c:784:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_EDIT_TAGS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvgain.c:889:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_TAGS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvgain.c:239:13: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvgain.c:309:17: error: Common realloc mistake: 'listbuff' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvgain.c:337:21: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvgain.c:692:40: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.7.0/cli/wvgain.c:696:40: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.7.0/cli/wvgain.c:700:40: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.7.0/cli/wvgain.c:704:40: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.7.0/cli/wvgain.c:708:31: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.7.0/cli/wvgain.c:709:36: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.7.0/cli/wvgain.c:710:61: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] wavpack-5.7.0/cli/wvgain.c:291:37: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvgain.c:677:22: style: Variable 'src' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvgain.c:928:41: style: Parameter 'histogram' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvgain.c:1361:14: style: Variable 'in_samples' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvtag.c:228:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtag.c:730:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_TAGS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtag.c:984:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtag.c:1028:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_VALID_TAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtag.c:1055:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_VALID_TAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtag.c:1161:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_VALID_TAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtag.c:1249:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_VALID_TAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtag.c:1371:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtag.c:1527:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtag.c:333:17: error: Common realloc mistake: 'tag_items' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvtag.c:358:13: error: Common realloc mistake: 'tag_items' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvtag.c:366:13: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvtag.c:552:17: error: Common realloc mistake: 'listbuff' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvtag.c:580:21: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvtag.c:903:5: error: Common realloc mistake: 'tag_extractions' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvtag.c:331:21: style: Local variable 'i' shadows outer variable [shadowVariable] wavpack-5.7.0/cli/wvtag.c:189:17: note: Shadowed declaration wavpack-5.7.0/cli/wvtag.c:331:21: note: Shadow variable wavpack-5.7.0/cli/wvtag.c:351:17: style: Local variable 'i' shadows outer variable [shadowVariable] wavpack-5.7.0/cli/wvtag.c:189:17: note: Shadowed declaration wavpack-5.7.0/cli/wvtag.c:351:17: note: Shadow variable wavpack-5.7.0/cli/wvtag.c:804:18: style: Local variable 'error' shadows outer variable [shadowVariable] wavpack-5.7.0/cli/wvtag.c:732:10: note: Shadowed declaration wavpack-5.7.0/cli/wvtag.c:804:18: note: Shadow variable wavpack-5.7.0/cli/wvtag.c:813:21: style: Local variable 'res' shadows outer variable [shadowVariable] wavpack-5.7.0/cli/wvtag.c:765:16: note: Shadowed declaration wavpack-5.7.0/cli/wvtag.c:813:21: note: Shadow variable wavpack-5.7.0/cli/wvtag.c:328:19: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvtag.c:534:37: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvtag.c:901:47: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvtag.c:1059:15: style: Variable 'spaces' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvtag.c:1208:31: style: Variable 'sanitized_tag_value' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvtag.c:1367:11: style: Variable 'old_locale' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvtag.c:1514:11: style: Variable 'old_locale' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvtag.c:1530:19: style: Variable 'utf16p' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvtag.c:1617:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvtag.c:509:29: style: Variable 'total_tag_size' is assigned a value that is never used. [unreadVariable] wavpack-5.7.0/cli/wvtag.c:765:20: style: Variable 'res' is assigned a value that is never used. [unreadVariable] wavpack-5.7.0/cli/wvtest.c:147:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_MD5_CHECKSUM [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtest.c:328:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_THREADS_SHFT [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtest.c:591:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtest.c:616:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_FAST_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtest.c:716:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtest.c:1063:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_THREADS_SHFT [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtest.c:1241:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtest.c:1466:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvtest.c:345:27: style: Redundant condition: The condition 'total_samples == -1' is redundant since 'total_samples < 2' is sufficient. [redundantCondition] wavpack-5.7.0/cli/wvtest.c:984:38: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] wavpack-5.7.0/cli/wvtest.c:985:32: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] wavpack-5.7.0/cli/wvtest.c:986:35: portability:inconclusive: Casting from float * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] wavpack-5.7.0/cli/wvtest.c:1418:10: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] wavpack-5.7.0/cli/wvtest.c:1448:10: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] wavpack-5.7.0/cli/wvtest.c:809:13: style: Local variable 'i' shadows outer variable [shadowVariable] wavpack-5.7.0/cli/wvtest.c:732:9: note: Shadowed declaration wavpack-5.7.0/cli/wvtest.c:809:13: note: Shadow variable wavpack-5.7.0/cli/wvtest.c:314:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvtest.c:1219: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.7.0/cli/wvtest.c:1255:17: note: You might need to cast the function pointer here wavpack-5.7.0/cli/wvtest.c:1219:32: note: Parameter 'id' can be declared as pointer to const wavpack-5.7.0/cli/wvtest.c:1224: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.7.0/cli/wvtest.c:1255:26: note: You might need to cast the function pointer here wavpack-5.7.0/cli/wvtest.c:1224:31: note: Parameter 'id' can be declared as pointer to const wavpack-5.7.0/cli/wvtest.c:1229: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.7.0/cli/wvtest.c:1255:39: note: You might need to cast the function pointer here wavpack-5.7.0/cli/wvtest.c:1229:31: note: Parameter 'id' can be declared as pointer to const wavpack-5.7.0/cli/wvtest.c:1244: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.7.0/cli/wvtest.c:1255:68: note: You might need to cast the function pointer here wavpack-5.7.0/cli/wvtest.c:1244:35: note: Parameter 'id' can be declared as pointer to const wavpack-5.7.0/cli/wvtest.c:1249: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.7.0/cli/wvtest.c:1255:80: note: You might need to cast the function pointer here wavpack-5.7.0/cli/wvtest.c:1249:28: note: Parameter 'id' can be declared as pointer to const wavpack-5.7.0/cli/wvtest.c:1522:70: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvtest.c:1610:67: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvtest.c:318:63: style: Variable 'sample_count' is assigned a value that is never used. [unreadVariable] wavpack-5.7.0/cli/wvunpack.c:359:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:1056:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:1154:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIN_STREAM_VERS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:1202:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:1583:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPEN_NORMALIZE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:2126:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_REORDERED_CHANS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:2276:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_REORDERED_CHANS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:2481:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:2539:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_BIG_ENDIAN [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:2765:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_WVC [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:3071:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QMODE_DSD_AUDIO [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:3133:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_VALID_TAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:3405:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/cli/wvunpack.c:312:17: error: Common realloc mistake: 'argv_fn' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvunpack.c:613:17: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvunpack.c:744:17: error: Common realloc mistake: 'listbuff' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvunpack.c:772:21: error: Common realloc mistake: 'matches' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvunpack.c:2400:5: error: Common realloc mistake: 'tag_extractions' nulled but not freed upon failure [memleakOnRealloc] wavpack-5.7.0/cli/wvunpack.c:851:19: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.7.0/cli/wvunpack.c:845:11: note: c is assigned wavpack-5.7.0/cli/wvunpack.c:851:19: note: c is overwritten wavpack-5.7.0/cli/wvunpack.c:3129:95: style:inconclusive: Function 'dump_tag_item_to_file' argument 4 names different: declaration 'fn' definition 'fname'. [funcArgNamesDifferent] wavpack-5.7.0/cli/wvunpack.c:1548:95: note: Function 'dump_tag_item_to_file' argument 4 names different: declaration 'fn' definition 'fname'. wavpack-5.7.0/cli/wvunpack.c:3129:95: note: Function 'dump_tag_item_to_file' argument 4 names different: declaration 'fn' definition 'fname'. wavpack-5.7.0/cli/wvunpack.c:3089:115: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/cli/wvunpack.c:302:19: style: Variable 'open_brace' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvunpack.c:726:37: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvunpack.c:1135:78: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvunpack.c:2398:47: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvunpack.c:2595:70: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvunpack.c:2683:67: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvunpack.c:2727:63: style: Parameter 'order' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvunpack.c:2755:54: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvunpack.c:2881:24: style: Variable 'header_data' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvunpack.c:2901:28: style: Variable 'trailer_data' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvunpack.c:2927:15: style: Variable 'spaces' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvunpack.c:3033:56: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/cli/wvunpack.c:3180:31: style: Variable 'sanitized_tag_value' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/cli/wvunpack.c:3401:11: style: Variable 'old_locale' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/common_utils.c:60:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/common_utils.c:265:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable block_samples [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/common_utils.c:379:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cb_func [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/common_utils.c:140:47: style: Parameter 'wpc' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/common_utils.c:209:46: style: Parameter 'wpc' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/common_utils.c:214:47: style: Parameter 'wpc' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/common_utils.c:303:51: style: Parameter 'wpc' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/common_utils.c:328:20: style: Variable 'src' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/decorr_utils.c:48:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/decorr_utils.c:67:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/decorr_utils.c:106:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/decorr_utils.c:180:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/decorr_utils.c:107:53: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/decorr_utils.c:121:57: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/decorr_utils.c:146:61: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/decorr_utils.c:180:65: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/decorr_utils.c:193:64: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/decorr_utils.c:64:11: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/decorr_utils.c:97:20: style: Variable 'endptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/decorr_utils.c:174:15: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/entropy_utils.c:115:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/entropy_utils.c:141:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_BITRATE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/entropy_utils.c:196:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/entropy_utils.c:367:25: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.7.0/src/entropy_utils.c:142:53: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/entropy_utils.c:154:49: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/entropy_utils.c:166:53: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/entropy_utils.c:113:20: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/entropy_utils.c:139:20: style: Variable 'endptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/entropy_utils.c:292:31: style: Parameter 'samples' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/extra1.c:247:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_FAST_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/extra1.c:308:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/extra1.c:414:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/extra1.c:476:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NEW_SHAPING [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/extra1.c:543:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/extra1.c:477:12: style: Variable 'shaping_array' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/extra1.c:97:13: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra1.c:114:13: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:407:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CROSS_DECORR [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/extra2.c:472:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/extra2.c:578:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/extra2.c:640:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NEW_SHAPING [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/extra2.c:719:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JOINT_STEREO [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/extra2.c:187:21: style: Local variable 'k' shadows outer variable [shadowVariable] wavpack-5.7.0/src/extra2.c:164:17: note: Shadowed declaration wavpack-5.7.0/src/extra2.c:187:21: note: Shadow variable wavpack-5.7.0/src/extra2.c:327:53: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/extra2.c:641:12: style: Variable 'shaping_array' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/extra2.c:104:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:110:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:126:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:132:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:148:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:154:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:171:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:176:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:208:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:212:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:227:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:231:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:249:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/extra2.c:254:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/open_filename.c:286:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] wavpack-5.7.0/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.7.0/src/open_filename.c:240:17: note: You might need to cast the function pointer here wavpack-5.7.0/src/open_filename.c:155:45: note: Parameter 'data' can be declared as pointer to const wavpack-5.7.0/src/open_raw.c:176:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FINAL_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_raw.c:311:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable block_samples [valueFlowBailoutIncompleteVar] wavpack-5.7.0/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.7.0/src/open_raw.c:282:13: note: Assuming that condition 'main_data' is not redundant wavpack-5.7.0/src/open_raw.c:143:18: note: Null pointer dereference wavpack-5.7.0/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.7.0/src/open_raw.c:120:21: note: You might need to cast the function pointer here wavpack-5.7.0/src/open_raw.c:64:39: note: Parameter 'id' can be declared as pointer to const wavpack-5.7.0/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.7.0/src/open_raw.c:120:21: note: You might need to cast the function pointer here wavpack-5.7.0/src/open_raw.c:64:49: note: Parameter 'data' can be declared as pointer to const wavpack-5.7.0/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.7.0/src/open_raw.c:120:38: note: You might need to cast the function pointer here wavpack-5.7.0/src/open_raw.c:69:35: note: Parameter 'id' can be declared as pointer to const wavpack-5.7.0/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.7.0/src/open_raw.c:120:51: note: You might need to cast the function pointer here wavpack-5.7.0/src/open_raw.c:74:35: note: Parameter 'id' can be declared as pointer to const wavpack-5.7.0/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.7.0/src/open_raw.c:120:68: note: You might need to cast the function pointer here wavpack-5.7.0/src/open_raw.c:79:35: note: Parameter 'id' can be declared as pointer to const wavpack-5.7.0/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.7.0/src/open_raw.c:121:25: note: You might need to cast the function pointer here wavpack-5.7.0/src/open_raw.c:92:38: note: Parameter 'id' can be declared as pointer to const wavpack-5.7.0/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.7.0/src/open_raw.c:121:41: note: You might need to cast the function pointer here wavpack-5.7.0/src/open_raw.c:97:32: note: Parameter 'id' can be declared as pointer to const wavpack-5.7.0/src/open_utils.c:160:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:328:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:432:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_WVX_NEW_BITSTREAM [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:586:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_EXTRA_MODE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:724:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_LARGE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:835:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_MD5_CHECKSUM [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:930:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_MD5_CHECKSUM [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:970:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIN_STREAM_VERS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:1001:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INITIAL_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:1055:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INITIAL_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:1195:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeader [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:1272:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeader [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/open_utils.c:279:53: style: Parameter 'wpc' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/open_utils.c:455:11: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/open_utils.c:471:11: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/open_utils.c:553:20: style: Variable 'idents' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/open_utils.c:577:20: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/open_utils.c:678:20: style: Variable 'byteptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/open_utils.c:700:69: style: Parameter 'wpmd' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/open_utils.c:715:20: style: Variable 'wphdr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/open_utils.c:716:20: style: Variable 'buffend' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/open_utils.c:951:78: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/pack.c:43:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_DYNAMIC_SHAPING [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:107:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_DECORR_TERMS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:127:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_DECORR_WEIGHTS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:168:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_DECORR_SAMPLES [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:237:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_SHAPING_WEIGHTS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:280:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_INT32_INFO [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:293:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_FLOAT_INFO [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:311:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_CHANNEL_INFO [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:346:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_CHANNEL_IDENTITIES [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:360:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_CONFIG_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:385:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_NEW_CONFIG_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:430:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_SAMPLE_RATE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:473:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLOAT_DATA [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:730:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:833:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:901:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_OPTIMIZE_32BIT [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:966:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SRATE_MASK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:1062:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack.c:462:14: style:inconclusive: Same expression used in consecutive assignments of 'flags' and 'sflags'. [duplicateAssignExpression] wavpack-5.7.0/src/pack.c:462:40: note: Same expression used in consecutive assignments of 'flags' and 'sflags'. wavpack-5.7.0/src/pack.c:462:14: note: Same expression used in consecutive assignments of 'flags' and 'sflags'. wavpack-5.7.0/src/pack.c:55:68: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.7.0/src/pack.c:1108:85: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/pack.c:1109:92: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/pack.c:1488:100: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/pack.c:275:46: style: Parameter 'wps' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/pack.c:288:46: style: Parameter 'wps' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/pack.c:342:59: style: Parameter 'wps' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/pack.c:1063:18: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/pack.c:1072:18: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/pack.c:1120:16: style: Variable 'shaping_array' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/pack.c:1191:30: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/pack.c:1532:21: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/pack.c:1254:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1261:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1364:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1365:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1376:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1379:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1392:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1393:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1543:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1548:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1560:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1565:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1576:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1580:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1594:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1597:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1608:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1611:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1625:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1629:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:1695:13: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack.c:547:18: style: Variable 'mag' is assigned a value that is never used. [unreadVariable] wavpack-5.7.0/src/pack_dns.c:34:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_dns.c:157:40: style: Parameter 'values' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/pack_dns.c:38:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack_dns.c:44:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack_dns.c:47:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack_dns.c:60:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack_dns.c:69:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack_dns.c:75:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack_floats.c:163:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_floats.c:48:76: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack_floats.c:105:22: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack_floats.c:130:29: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack_floats.c:250:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack_floats.c:256:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/pack_utils.c:70:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_ALT_EXTENSION [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:193:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_COMPATIBLE_WRITE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:213:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_WAVPACK_SAMPLES [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:606:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_HIGH_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:686:112: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_RIFF_HEADER [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:850:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_RIFF_HEADER [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:868:95: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_MD5_CHECKSUM [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:967:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ChunkHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1031:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1052:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1111:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1302:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1331:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeaderFormat [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1351:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeader [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1404:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_LARGE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1468:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_ODD_SIZE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1498:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeader [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1573:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WavpackHeader [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1619:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HAS_CHECKSUM [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/pack_utils.c:1239:16: style: Condition 'wps->discontinuous' is always false [knownConditionTrueFalse] wavpack-5.7.0/src/pack_utils.c:1233:34: note: Assignment 'wps->discontinuous=0', assigned value is 0 wavpack-5.7.0/src/pack_utils.c:1239:16: note: Condition 'wps->discontinuous' is always false wavpack-5.7.0/src/pack_utils.c:647:87: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/pack_utils.c:699:90: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/pack_utils.c:1241:108: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/pack_utils.c:1245:128: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/pack_utils.c:1246:79: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/pack_utils.c:1251:125: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/pack_utils.c:1272:89: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/pack_utils.c:1273:88: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/pack_utils.c:1459:47: style: Parameter 'wpmd' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/pack_utils.c:1559:76: style: Parameter 'buffer_end' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/pack_utils.c:875:14: style: struct member 'CS64Chunk::chunkSize64' is never used. [unusedStructMember] wavpack-5.7.0/src/pack_utils.c:880:14: style: struct member 'DS64Chunk::tableLength' is never used. [unusedStructMember] wavpack-5.7.0/src/pack_utils.c:886:10: style: struct member 'JunkChunk::junk' is never used. [unusedStructMember] wavpack-5.7.0/src/read_words.c:267:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/read_words.c:348:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/tag_utils.c:480:16: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.7.0/src/tag_utils.c:471:20: note: result is assigned wavpack-5.7.0/src/tag_utils.c:480:16: note: result is overwritten wavpack-5.7.0/src/tag_utils.c:480:16: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.7.0/src/tag_utils.c:476:20: note: result is assigned wavpack-5.7.0/src/tag_utils.c:480:16: note: result is overwritten wavpack-5.7.0/src/tag_utils.c:542:16: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.7.0/src/tag_utils.c:538:20: note: result is assigned wavpack-5.7.0/src/tag_utils.c:542:16: note: result is overwritten wavpack-5.7.0/src/tag_utils.c:545:16: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] wavpack-5.7.0/src/tag_utils.c:542:16: note: result is assigned wavpack-5.7.0/src/tag_utils.c:545:16: note: result is overwritten wavpack-5.7.0/src/tag_utils.c:188:24: style: Variable 'q' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/tag_utils.c:239:20: style: Variable 'q' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/tag_utils.c:330:20: style: Variable 'q' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/tag_utils.c:386:83: style: Variable 'index' is assigned a value that is never used. [unreadVariable] wavpack-5.7.0/src/tags.c:153:23: style: Parameter 'm_tag' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/tags.c:166:26: style: Parameter 'm_tag' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/unpack.c:77:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAG_MASK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/unpack.c:700:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/unpack.c:789:59: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.7.0/src/unpack.c:794:61: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.7.0/src/unpack.c:799:63: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.7.0/src/unpack.c:804:75: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] wavpack-5.7.0/src/unpack.c:459:62: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/unpack.c:509:66: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/unpack.c:107:18: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/unpack.c:163:18: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/unpack.c:491:18: style: Variable 'sptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/unpack.c:526:21: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/unpack.c:587:21: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] wavpack-5.7.0/src/unpack.c:250:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:366:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:367:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:374:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:377:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:382:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:391:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:536:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:547:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:557:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:598:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:603:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:615:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:620:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:631:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:636:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:650:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:653:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:664:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:667:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:678:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack.c:680:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack_floats.c:111:48: style: Parameter 'wps' can be declared as pointer to const [constParameterPointer] wavpack-5.7.0/src/unpack_floats.c:104:82: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] wavpack-5.7.0/src/unpack_seek.c:68:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INITIAL_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/unpack_seek.c:300:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIN_STREAM_VERS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/unpack_seek.c:41:57: style: Variable 'samples_to_decode' is assigned a value that is never used. [unreadVariable] wavpack-5.7.0/src/unpack_utils.c:43:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/unpack_utils.c:136:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INITIAL_BLOCK [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/unpack_utils.c:43:55: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] wavpack-5.7.0/src/write_words.c:44:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/write_words.c:58:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_BITRATE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/write_words.c:105:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_ENTROPY_VARS [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/write_words.c:141:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ID_HYBRID_PROFILE [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/write_words.c:213:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/write_words.c:337:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/write_words.c:521:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HYBRID_FLAG [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/write_words.c:585:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONO_DATA [valueFlowBailoutIncompleteVar] wavpack-5.7.0/src/write_words.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] wavpack-5.7.0/src/write_words.c:332:56: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] diff: DONE