2026-01-22 15:08 ftp://ftp.de.debian.org/debian/pool/main/j/jp2a/jp2a_1.3.3.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-90-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.19.0 head-info: 8c762ad (2026-01-22 15:58:11 +0100) count: 63 63 elapsed-time: 2.2 2.1 head-timing-info: old-timing-info: head results: jp2a-1.3.3/src/aspect_ratio.c:22:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable auto_width [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/html.c:22:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable html_title [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/html.c:54:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colorfill [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/html.c:76:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable html_title [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/html.c:108:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colorfill [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/html.c:124:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable invert [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/html.c:176:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable html_title_raw [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/html.c:207:7: error: Return value of allocation function 'realloc' is not stored. [leakReturnValNotUsed] jp2a-1.3.3/src/html.c:199:15: style: Local variable 'newChar' shadows outer variable [shadowVariable] jp2a-1.3.3/src/html.c:186:8: note: Shadowed declaration jp2a-1.3.3/src/html.c:199:15: note: Shadow variable jp2a-1.3.3/src/html.c:186:8: style: Unused variable: newChar [unusedVariable] jp2a-1.3.3/src/image.c:41:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable centery [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:56:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable centery [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:71:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable centerx [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:112:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable verbose [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:149:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flipx [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:222:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable html [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:433:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_LEN_MAX [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:492:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usecolors [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:515:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usecolors [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:545:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:550:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:585:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:620:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:649:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usecolors [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:725:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usecolors [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:807:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HORIZONTAL [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:877:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIF_IFD_0 [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:913:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRROR_HORIZONTAL_ROTATE_90 [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:1001:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:1096:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable webp_data [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:1138:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIRROR_HORIZONTAL_ROTATE_90 [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:1224:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable j_common_ptr [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/image.c:930:3: error: Address of local auto-variable assigned to a function parameter. [autoVariables] jp2a-1.3.3/src/image.c:1111:4: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] jp2a-1.3.3/src/image.c:1114:10: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [nullPointerOutOfMemory] jp2a-1.3.3/src/image.c:1101:24: note: Assuming allocation function fails jp2a-1.3.3/src/image.c:1101:24: note: Assignment 'data=malloc(data_allocated_size)', assigned value is 0 jp2a-1.3.3/src/image.c:1105:19: note: Assuming condition is false jp2a-1.3.3/src/image.c:1113:17: note: dest is assigned 'data+data_size' here. jp2a-1.3.3/src/image.c:1114:10: note: Null pointer dereference jp2a-1.3.3/src/image.c:1118:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data_struct [nullPointerOutOfMemory] jp2a-1.3.3/src/image.c:1096:33: note: Assuming allocation function fails jp2a-1.3.3/src/image.c:1096:33: note: Assignment 'data_struct=malloc(sizeof(webp_data))', assigned value is 0 jp2a-1.3.3/src/image.c:1105:19: note: Assuming condition is false jp2a-1.3.3/src/image.c:1118:2: note: Null pointer dereference jp2a-1.3.3/src/image.c:1119:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data_struct [nullPointerOutOfMemory] jp2a-1.3.3/src/image.c:1096:33: note: Assuming allocation function fails jp2a-1.3.3/src/image.c:1096:33: note: Assignment 'data_struct=malloc(sizeof(webp_data))', assigned value is 0 jp2a-1.3.3/src/image.c:1105:19: note: Assuming condition is false jp2a-1.3.3/src/image.c:1119:2: note: Null pointer dereference jp2a-1.3.3/src/image.c:866:12: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] jp2a-1.3.3/src/image.c:1105:19: style: Checking if unsigned expression 'bytes_read' is less than zero. [unsignedLessThanZero] jp2a-1.3.3/src/image.c:286:18: style: Local variable 'i' shadows outer variable [shadowVariable] jp2a-1.3.3/src/image.c:247:8: note: Shadowed declaration jp2a-1.3.3/src/image.c:286:18: note: Shadow variable jp2a-1.3.3/src/image.c:257:10: style: Variable 'char_start' can be declared as pointer to const [constVariablePointer] jp2a-1.3.3/src/image.c:462:10: style: Variable 'char_start' can be declared as pointer to const [constVariablePointer] jp2a-1.3.3/src/image.c:619:41: style: Parameter 'config' can be declared as pointer to const [constParameterPointer] jp2a-1.3.3/src/image.c:743:15: style: Variable 'src_pixel' can be declared as pointer to const [constVariablePointer] jp2a-1.3.3/src/image.c:1194:19: style: Variable 'u' can be declared as pointer to const [constVariablePointer] jp2a-1.3.3/src/image.c:1195:12: style: Variable 'rgba' can be declared as pointer to const [constVariablePointer] jp2a-1.3.3/src/jp2a.c:35:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/jp2a.c:208:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.3/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.3/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.3/src/options.c:106:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/options.c:184:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/options.c:230:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jp2a-1.3.3/src/options.c:326:21: style: Condition 'curCharlen==-1' is always false [knownConditionTrueFalse] jp2a-1.3.3/src/options.c:330:21: style: Condition 'curCharlen==-2' is always false [knownConditionTrueFalse] jp2a-1.3.3/src/options.c:324:56: error: Null pointer dereference [nullPointer] jp2a-1.3.3/src/options.c:228:10: style: Variable 'colorterm' can be declared as pointer to const [constVariablePointer] jp2a-1.3.3/src/terminal.c:46:8: style: Variable 'termtype' can be declared as pointer to const [constVariablePointer] jp2a-1.3.3/src/terminal.c:108:8: style: Variable 'colorterm' can be declared as pointer to const [constVariablePointer] jp2a-1.3.3/src/terminal.c:46:17: style: Variable 'termtype' is assigned a value that is never used. [unreadVariable] jp2a-1.3.3/src/terminal.c:46:8: style: Variable 'termtype' is assigned a value that is never used. [unreadVariable] jp2a-1.3.3/src/terminal.c:47:7: style: Unused variable: term_buffer [unusedVariable] jp2a-1.3.3/src/terminal.c:48:6: style: Unused variable: i [unusedVariable] diff: DONE