2025-07-07 16:54 ftp://ftp.de.debian.org/debian/pool/main/d/dvbackup/dvbackup_0.0.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --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-6.8.0-63-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 8833e3e (2025-07-07 13:50:36 +0200) count: 108 104 elapsed-time: 0.9 1.2 head-timing-info: old-timing-info: head results: dvbackup-0.0.4/dvbackup.c:636:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbackup-0.0.4/dvbackup.c:799:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbackup-0.0.4/dvbackup.c:1006:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbackup-0.0.4/dvbackup.c:1032:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbackup-0.0.4/dvbackup.c:1142:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dvbackup-0.0.4/dvbackup.c:1325:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbackup-0.0.4/dvbackup.c:749:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dvbackup-0.0.4/dvbackup.c:589:32: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:597:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:598:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:599:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:601:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:602:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:603:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:608:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:610:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:613:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:614:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:621:37: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:622:5: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:623:5: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:624:32: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:625:5: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:625:27: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:630:37: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:631:5: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:632:32: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:633:5: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:633:27: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:640:32: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:641:4: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:648:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:649:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:650:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:652:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:653:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:654:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:659:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:661:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:664:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:665:6: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:672:37: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:673:5: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:674:5: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:675:32: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:676:5: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:676:27: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:681:37: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:682:5: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:683:32: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:684:5: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:684:27: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbackup-0.0.4/dvbackup.c:1006:4: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] dvbackup-0.0.4/dvbackup.c:1058:4: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] dvbackup-0.0.4/dvbackup.c:1058:4: warning: %lld in format string (no. 2) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] dvbackup-0.0.4/dvbackup.c:1102:4: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] dvbackup-0.0.4/dvbackup.c:1121:4: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] dvbackup-0.0.4/dvbackup.c:792:17: error: Resource leak: f [resourceLeak] dvbackup-0.0.4/dvbackup.c:800:3: error: Resource leak: f [resourceLeak] dvbackup-0.0.4/dvbackup.c:1219:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1225:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1232:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1239:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1246:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1255:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1263:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1270:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1279:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1287:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1295:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1304:3: style: Label 'longName' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1311:3: style: Label 'argInfo' is not used. [unusedLabel] dvbackup-0.0.4/dvbackup.c:1363:9: style: Local variable 'isPAL' shadows outer variable [shadowVariable] dvbackup-0.0.4/dvbackup.c:1197:6: note: Shadowed declaration dvbackup-0.0.4/dvbackup.c:1363:9: note: Shadow variable dvbackup-0.0.4/dvbackup.c:1388:9: style: Local variable 'isPAL' shadows outer variable [shadowVariable] dvbackup-0.0.4/dvbackup.c:1197:6: note: Shadowed declaration dvbackup-0.0.4/dvbackup.c:1388:9: note: Shadow variable dvbackup-0.0.4/dvbackup.c:1404:8: style: Local variable 'isPAL' shadows outer variable [shadowVariable] dvbackup-0.0.4/dvbackup.c:1197:6: note: Shadowed declaration dvbackup-0.0.4/dvbackup.c:1404:8: note: Shadow variable dvbackup-0.0.4/dvbackup.c:190:43: style: Parameter 'img_rgb' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:236:25: style: Parameter 'img_y' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:236:39: style: Parameter 'img_cr' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:236:54: style: Parameter 'img_cb' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:367:59: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:404:59: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:412:59: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:977:42: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:982:40: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:987:49: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:1149:34: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:1163:35: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:1169:39: style: Parameter 'databuffer' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvbackup.c:615:21: style: Variable 'bits_per_sample' is assigned a value that is never used. [unreadVariable] dvbackup-0.0.4/dvbackup.c:666:21: style: Variable 'bits_per_sample' is assigned a value that is never used. [unreadVariable] dvbackup-0.0.4/dvbackup.c:783:14: style: Variable 'counter' is assigned a value that is never used. [unreadVariable] dvbackup-0.0.4/dvconnect.c:206:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbackup-0.0.4/dvconnect.c:327:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dvbackup-0.0.4/dvconnect.c:565:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbackup-0.0.4/dvconnect.c:666:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] dvbackup-0.0.4/dvconnect.c:843:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PRIORITY_SCHEDULING [valueFlowBailoutIncompleteVar] dvbackup-0.0.4/dvconnect.c:482:19: warning: If memory allocation fails, then there is a possible null pointer dereference: frame [nullPointerOutOfMemory] dvbackup-0.0.4/dvconnect.c:682:48: note: Assuming allocation function fails dvbackup-0.0.4/dvconnect.c:682:25: note: Assignment 'underrun_data_frame=(unsigned char*)malloc(144000)', assigned value is 0 dvbackup-0.0.4/dvconnect.c:683:22: note: Calling function 'read_frame', 2nd argument 'underrun_data_frame' value is 0 dvbackup-0.0.4/dvconnect.c:479:6: note: Assuming condition is false dvbackup-0.0.4/dvconnect.c:482:19: note: Null pointer dereference dvbackup-0.0.4/dvconnect.c:399:41: style: Local variable 'curr' shadows outer variable [shadowVariable] dvbackup-0.0.4/dvconnect.c:395:19: note: Shadowed declaration dvbackup-0.0.4/dvconnect.c:399:41: note: Shadow variable dvbackup-0.0.4/dvconnect.c:183:35: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] dvbackup-0.0.4/dvconnect.c:395:19: style: Variable 'curr' can be declared as pointer to const [constVariablePointer] dvbackup-0.0.4/dvconnect.c:550:24: style: Variable 'frame' can be declared as pointer to const [constVariablePointer] dvbackup-0.0.4/dvconnect.c:65:15: style: struct member 'video1394_mmap::fps' is never used. [unusedStructMember] dvbackup-0.0.4/dvconnect.c:77:15: style: struct member 'video1394_mmap_v2::fps' is never used. [unusedStructMember] dvbackup-0.0.4/minilogo.c:4:18: style: struct member 'Anonymous0::width' is never used. [unusedStructMember] dvbackup-0.0.4/minilogo.c:5:18: style: struct member 'Anonymous0::height' is never used. [unusedStructMember] dvbackup-0.0.4/minilogo.c:6:18: style: struct member 'Anonymous0::bytes_per_pixel' is never used. [unusedStructMember] dvbackup-0.0.4/minilogo.c:7:18: style: struct member 'Anonymous0::comment' is never used. [unusedStructMember] dvbackup-0.0.4/minilogo.c:8:18: style: struct member 'Anonymous0::pixel_data' is never used. [unusedStructMember] diff: head dvbackup-0.0.4/dvbackup.c:625:27: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head dvbackup-0.0.4/dvbackup.c:633:27: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head dvbackup-0.0.4/dvbackup.c:676:27: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head dvbackup-0.0.4/dvbackup.c:684:27: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] DONE