2025-06-28 04:09 ftp://ftp.de.debian.org/debian/pool/main/j/jp2a/jp2a_1.3.2.orig.tar.gz 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-6.8.0-62-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: b6dd286 (2025-06-27 13:53:34 +0200) count: 63 62 elapsed-time: 2.1 2.4 head-timing-info: old-timing-info: head results: jp2a-1.3.2/src/aspect_ratio.c:22:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable auto_width [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/html.c:22:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable html_title [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/html.c:54:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colorfill [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/html.c:76:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable html_title [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/html.c:108:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colorfill [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/html.c:124:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable invert [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/html.c:176:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable html_title_raw [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/html.c:207:7: error: Return value of allocation function 'realloc' is not stored. [leakReturnValNotUsed] jp2a-1.3.2/src/html.c:199:15: style: Local variable 'newChar' shadows outer variable [shadowVariable] jp2a-1.3.2/src/html.c:186:8: note: Shadowed declaration jp2a-1.3.2/src/html.c:199:15: note: Shadow variable jp2a-1.3.2/src/html.c:186:8: style: Unused variable: newChar [unusedVariable] jp2a-1.3.2/src/image.c:41:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable centery [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:56:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable centery [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:71:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable centerx [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:112:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable verbose [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:149:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flipx [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:219:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_border [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:417:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_LEN_MAX [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:476:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usecolors [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:499:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usecolors [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:529:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:534:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:569:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:604:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:633:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usecolors [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:709:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usecolors [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:791:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HORIZONTAL [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:861:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIF_IFD_0 [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:897:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRROR_HORIZONTAL_ROTATE_90 [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:985:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:1080:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable webp_data [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:1122:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRROR_HORIZONTAL_ROTATE_90 [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:1208:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable j_common_ptr [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/image.c:914:3: error: Address of local auto-variable assigned to a function parameter. [autoVariables] jp2a-1.3.2/src/image.c:1095:4: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] jp2a-1.3.2/src/image.c:1098:10: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [nullPointerOutOfMemory] jp2a-1.3.2/src/image.c:1085:24: note: Assuming allocation function fails jp2a-1.3.2/src/image.c:1085:24: note: Assignment 'data=malloc(data_allocated_size)', assigned value is 0 jp2a-1.3.2/src/image.c:1089:19: note: Assuming condition is false jp2a-1.3.2/src/image.c:1097:17: note: dest is assigned 'data+data_size' here. jp2a-1.3.2/src/image.c:1098:10: note: Null pointer dereference jp2a-1.3.2/src/image.c:1102:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data_struct [nullPointerOutOfMemory] jp2a-1.3.2/src/image.c:1080:33: note: Assuming allocation function fails jp2a-1.3.2/src/image.c:1080:33: note: Assignment 'data_struct=malloc(sizeof(webp_data))', assigned value is 0 jp2a-1.3.2/src/image.c:1089:19: note: Assuming condition is false jp2a-1.3.2/src/image.c:1102:2: note: Null pointer dereference jp2a-1.3.2/src/image.c:1103:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data_struct [nullPointerOutOfMemory] jp2a-1.3.2/src/image.c:1080:33: note: Assuming allocation function fails jp2a-1.3.2/src/image.c:1080:33: note: Assignment 'data_struct=malloc(sizeof(webp_data))', assigned value is 0 jp2a-1.3.2/src/image.c:1089:19: note: Assuming condition is false jp2a-1.3.2/src/image.c:1103:2: note: Null pointer dereference jp2a-1.3.2/src/image.c:850:12: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] jp2a-1.3.2/src/image.c:1089:19: style: Checking if unsigned expression 'bytes_read' is less than zero. [unsignedLessThanZero] jp2a-1.3.2/src/image.c:270:18: style: Local variable 'i' shadows outer variable [shadowVariable] jp2a-1.3.2/src/image.c:239:8: note: Shadowed declaration jp2a-1.3.2/src/image.c:270:18: note: Shadow variable jp2a-1.3.2/src/image.c:249:10: style: Variable 'char_start' can be declared as pointer to const [constVariablePointer] jp2a-1.3.2/src/image.c:446:10: style: Variable 'char_start' can be declared as pointer to const [constVariablePointer] jp2a-1.3.2/src/image.c:603:41: style: Parameter 'config' can be declared as pointer to const [constParameterPointer] jp2a-1.3.2/src/image.c:727:15: style: Variable 'src_pixel' can be declared as pointer to const [constVariablePointer] jp2a-1.3.2/src/image.c:1178:19: style: Variable 'u' can be declared as pointer to const [constVariablePointer] jp2a-1.3.2/src/image.c:1179:12: style: Variable 'rgba' can be declared as pointer to const [constVariablePointer] jp2a-1.3.2/src/jp2a.c:35:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/jp2a.c:208:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/jp2a.c:219:5: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] jp2a-1.3.2/src/jp2a.c:231:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] jp2a-1.3.2/src/options.c:106:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/options.c:184:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/options.c:230:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.2/src/options.c:326:21: style: Condition 'curCharlen==-1' is always false [knownConditionTrueFalse] jp2a-1.3.2/src/options.c:330:21: style: Condition 'curCharlen==-2' is always false [knownConditionTrueFalse] jp2a-1.3.2/src/options.c:324:56: error: Null pointer dereference [nullPointer] jp2a-1.3.2/src/options.c:228:10: style: Variable 'colorterm' can be declared as pointer to const [constVariablePointer] jp2a-1.3.2/src/terminal.c:46:8: style: Variable 'termtype' can be declared as pointer to const [constVariablePointer] jp2a-1.3.2/src/terminal.c:108:8: style: Variable 'colorterm' can be declared as pointer to const [constVariablePointer] jp2a-1.3.2/src/terminal.c:46:17: style: Variable 'termtype' is assigned a value that is never used. [unreadVariable] jp2a-1.3.2/src/terminal.c:46:8: style: Variable 'termtype' is assigned a value that is never used. [unreadVariable] jp2a-1.3.2/src/terminal.c:47:7: style: Unused variable: term_buffer [unusedVariable] jp2a-1.3.2/src/terminal.c:48:6: style: Unused variable: i [unusedVariable] diff: head jp2a-1.3.2/src/terminal.c:46:8: style: Variable 'termtype' is assigned a value that is never used. [unreadVariable] DONE