2025-05-08 18:20 ftp://ftp.de.debian.org/debian/pool/main/v/vobcopy/vobcopy_1.2.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: 23 23 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: vobcopy-1.2.1/vobcopy.c:485:29: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] vobcopy-1.2.1/dvd.c:41:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] vobcopy-1.2.1/dvd.c:316:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vobcopy-1.2.1/dvd.c:517:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vobcopy-1.2.1/dvd.c:754:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vobcopy-1.2.1/dvd.c:806:3: error: Memory leak: dvd_info.titles [memleak] vobcopy-1.2.1/dvd.c:761:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ifo [nullPointerOutOfMemory] vobcopy-1.2.1/dvd.c:758:32: note: Assuming allocation function fails vobcopy-1.2.1/dvd.c:758:9: note: Assignment 'ifo=(ifo_handle_t**)malloc((ifo_zero->vts_atrt->nr_of_vtss+1)*sizeof(ifo_handle_t*))', assigned value is 0 vobcopy-1.2.1/dvd.c:761:5: note: Null pointer dereference vobcopy-1.2.1/dvd.c:762:11: warning: If memory allocation fails, then there is a possible null pointer dereference: ifo [nullPointerOutOfMemory] vobcopy-1.2.1/dvd.c:758:32: note: Assuming allocation function fails vobcopy-1.2.1/dvd.c:758:9: note: Assignment 'ifo=(ifo_handle_t**)malloc((ifo_zero->vts_atrt->nr_of_vtss+1)*sizeof(ifo_handle_t*))', assigned value is 0 vobcopy-1.2.1/dvd.c:762:11: note: Null pointer dereference vobcopy-1.2.1/dvd.c:133:10: style: Variable 'k' can be declared as pointer to const [constVariablePointer] vobcopy-1.2.1/dvd.c:608:38: style: Parameter 'provided_input_dir' can be declared as pointer to const [constParameterPointer] vobcopy-1.2.1/dvd.c:706:30: style: Parameter 'dt' can be declared as pointer to const [constParameterPointer] vobcopy-1.2.1/dvd.c:708:10: style: Variable 'frames_per_s' can be declared as const array [constVariable] vobcopy-1.2.1/dvd.c:722:51: style: Parameter 'dt' can be declared as pointer to const [constParameterPointer] vobcopy-1.2.1/dvd.c:724:10: style: Variable 'frames_per_s' can be declared as const array [constVariable] vobcopy-1.2.1/dvd.c:744:15: style: Variable 'vmgi_mat' can be declared as pointer to const [constVariablePointer] vobcopy-1.2.1/dvd.c:745:17: style: Variable 'video_attr' can be declared as pointer to const [constVariablePointer] vobcopy-1.2.1/dvd.c:115:11: style: Variable 'l' is assigned a value that is never used. [unreadVariable] vobcopy-1.2.1/dvd.c:112:9: style: Unused variable: tmp_streamin_fuseiso [unusedVariable] vobcopy-1.2.1/dvd.c:779:24: style: Variable 'dvd_info.title_count' is assigned a value that is never used. [unreadVariable] vobcopy-1.2.1/dvd.c:790:13: style: Variable 'video_attr' is assigned a value that is never used. [unreadVariable] vobcopy-1.2.1/dvd.c:792:11: style: Variable 'vmgi_mat' is assigned a value that is never used. [unreadVariable] vobcopy-1.2.1/dvd.c:796:36: style: Variable 'dvd_info.titles[j].general.length' is assigned a value that is never used. [unreadVariable] vobcopy-1.2.1/dvd.c:798:36: style: Variable 'dvd_info.titles[j].general.vts_id' is assigned a value that is never used. [unreadVariable] diff: DONE