2025-05-09 03:33 ftp://ftp.de.debian.org/debian/pool/main/a/aaphoto/aaphoto_0.45.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openmp --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: 101 101 elapsed-time: 3.9 4.0 head-timing-info: old-timing-info: head results: aaphoto-0.45/aaio.c:27:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_char [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:87:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opt_quiet [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:103:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:117:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opt_verbose [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:132:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opt_verbose [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:150:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opt_verbose [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:167:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opt_quiet [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:182:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opt_quiet [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:240:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable slsh [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:266:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable slsh [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:306:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_char [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:332:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable slsh [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:369:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_char [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:454:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_char [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:487:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable file_name_buffer_pointer [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:616:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exif_flag [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:639:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exif_flag [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:776:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exif_flag [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:812:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exif_flag [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaresize.c:167:20: style: Parameter 'image_width' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:891:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitmap_format_bmp_clrspc_type [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:1044:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitmap_width [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:1271:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitmap_format_png_clrspc_type [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaresize.c:168:20: style: Parameter 'image_height' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:1490:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitmap_format_png_clrspc_type [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:1671:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaresize.c:297:20: style: Parameter 'image_width' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:1775:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exif_flag [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:1878:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exif_flag [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:1936:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitmap_buffer [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaresize.c:298:20: style: Parameter 'image_height' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaresize.c:358:20: style: Parameter 'image_width' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaresize.c:359:20: style: Parameter 'image_height' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:88:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:124:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:135:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:152:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:168:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:183:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:1613:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_RESOLUTION_METER [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:1786:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JCS_GRAYSCALE [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaphoto.c:1100:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_INTERLACE_NONE [valueFlowBailoutIncompleteVar] aaphoto-0.45/aaio.c:47:13: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] aaphoto-0.45/aaio.c:509:26: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] aaphoto-0.45/aaio.c:686:22: style: Condition 'ch1!=0xff' is always false [knownConditionTrueFalse] aaphoto-0.45/aaio.c:683:17: note: Assuming that condition 'ch1!=0xff' is not redundant aaphoto-0.45/aaio.c:686:22: note: Condition 'ch1!=0xff' is always false aaphoto-0.45/aaio.c:787:40: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:788:40: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:793:75: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:820:40: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:821:40: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:866:24: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:871:22: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:1241:38: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:1245:30: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:1251:16: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:1256:10: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:1263:3: error: Resource leak: fhandle [resourceLeak] aaphoto-0.45/aaio.c:547:8: style: Local variable 'i' shadows outer variable [shadowVariable] aaphoto-0.45/aaio.c:511:7: note: Shadowed declaration aaphoto-0.45/aaio.c:547:8: note: Shadow variable aaphoto-0.45/aaio.c:23:36: style: Parameter 'strin' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:39:37: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:196:26: style: Parameter 'str1' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:196:38: style: Parameter 'str2' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:214:30: style: Parameter 'str1' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:214:42: style: Parameter 'str2' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:230:26: style: Parameter 'strin' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:257:31: style: Parameter 'strin' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:292:31: style: Parameter 'strin' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:322:26: style: Parameter 'strin' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:351:22: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:372:7: style: Variable 'fextj1' can be declared as const array [constVariable] aaphoto-0.45/aaio.c:373:7: style: Variable 'fextj3' can be declared as const array [constVariable] aaphoto-0.45/aaio.c:374:7: style: Variable 'fextj4' can be declared as const array [constVariable] aaphoto-0.45/aaio.c:375:7: style: Variable 'fnew' can be declared as const array [constVariable] aaphoto-0.45/aaio.c:632:20: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:774:20: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:810:24: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:834:27: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:1027:28: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:1217:27: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:1473:28: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] aaphoto-0.45/aaio.c:657:17: style: Variable 'exif_offset' is assigned a value that is never used. [unreadVariable] aaphoto-0.45/aaio.c:1159:12: style: Variable 'addr' is assigned a value that is never used. [unreadVariable] aaphoto-0.45/aaio.c:1177:12: style: Variable 'addr' is assigned a value that is never used. [unreadVariable] aaphoto-0.45/aargb.c:760:20: style: Variable 'hist_cut_limit' is reassigned a value before the old one has been used. [redundantAssignment] aaphoto-0.45/aargb.c:602:20: note: hist_cut_limit is assigned aaphoto-0.45/aargb.c:760:20: note: hist_cut_limit is overwritten aaphoto-0.45/aargb.c:1661:35: style: Variable 'L' is reassigned a value before the old one has been used. [redundantAssignment] aaphoto-0.45/aargb.c:1660:35: note: L is assigned aaphoto-0.45/aargb.c:1661:35: note: L is overwritten aaphoto-0.45/aargb.c:1328:28: style: Local variable 'H' shadows outer variable [shadowVariable] aaphoto-0.45/aargb.c:337:14: note: Shadowed declaration aaphoto-0.45/aargb.c:1328:28: note: Shadow variable aaphoto-0.45/aargb.c:1328:31: style: Local variable 'S' shadows outer variable [shadowVariable] aaphoto-0.45/aargb.c:337:17: note: Shadowed declaration aaphoto-0.45/aargb.c:1328:31: note: Shadow variable aaphoto-0.45/aargb.c:1328:34: style: Local variable 'L' shadows outer variable [shadowVariable] aaphoto-0.45/aargb.c:337:20: note: Shadowed declaration aaphoto-0.45/aargb.c:1328:34: note: Shadow variable aaphoto-0.45/aargb.c:781:22: style: Variable 'hist_cut_columns' is assigned a value that is never used. [unreadVariable] aaphoto-0.45/aargb.c:1280:16: style: Variable 'cc' is assigned a value that is never used. [unreadVariable] aaphoto-0.45/aargb.c:1565:30: style: Variable 'xmb1' is assigned a value that is never used. [unreadVariable] aaphoto-0.45/aargb.c:1567:30: style: Variable 'xmb2' is assigned a value that is never used. [unreadVariable] aaphoto-0.45/aaphoto.c:431:36: style: Condition 'ROTATE180(&bitmap_buffer,&bitmap_width,&bitmap_height,alpha_flag)' is always false [knownConditionTrueFalse] aaphoto-0.45/aaphoto.c:431:36: note: Calling function 'ROTATE180' returns 0 aaphoto-0.45/aaphoto.c:431:36: note: Condition 'ROTATE180(&bitmap_buffer,&bitmap_width,&bitmap_height,alpha_flag)' is always false aaphoto-0.45/aaphoto.c:435:28: style: Condition 'FLIPX(&bitmap_buffer,&bitmap_width,&bitmap_height,alpha_flag)' is always false [knownConditionTrueFalse] aaphoto-0.45/aaphoto.c:435:28: note: Calling function 'FLIPX' returns 0 aaphoto-0.45/aaphoto.c:435:28: note: Condition 'FLIPX(&bitmap_buffer,&bitmap_width,&bitmap_height,alpha_flag)' is always false aaphoto-0.45/aaphoto.c:437:28: style: Condition 'FLIPY(&bitmap_buffer,&bitmap_width,&bitmap_height,alpha_flag)' is always false [knownConditionTrueFalse] aaphoto-0.45/aaphoto.c:437:28: note: Calling function 'FLIPY' returns 0 aaphoto-0.45/aaphoto.c:437:28: note: Condition 'FLIPY(&bitmap_buffer,&bitmap_width,&bitmap_height,alpha_flag)' is always false aaphoto-0.45/aaphoto.c:598:10: style: Variable 'myarg' is reassigned a value before the old one has been used. [redundantAssignment] aaphoto-0.45/aaphoto.c:597:10: note: myarg is assigned aaphoto-0.45/aaphoto.c:598:10: note: myarg is overwritten aaphoto-0.45/aaphoto.c:638:12: style: Variable 'dp' can be declared as pointer to const [constVariablePointer] aaphoto-0.45/aaphoto.c:686:13: style: Variable 'dp' can be declared as pointer to const [constVariablePointer] aaphoto-0.45/aaphoto.c:580:12: style: Variable 'opt_wrong' is assigned a value that is never used. [unreadVariable] aaphoto-0.45/aaphoto.c:989:38: style: Variable 'opt_counter' is assigned a value that is never used. [unreadVariable] aaphoto-0.45/aaphoto.c:1031:19: style: Variable 'd' is assigned a value that is never used. [unreadVariable] diff: DONE