2026-05-01 07:55 ftp://ftp.de.debian.org/debian/pool/main/c/catimg/catimg_2.8.0.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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 0fda84e (2026-05-01 02:32:52 +0200) count: 102 102 elapsed-time: 5.9 5.2 head-timing-info: old-timing-info: head results: catimg-2.8.0/src/catimg.c:181:21: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] catimg-2.8.0/src/catimg.c:183:21: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] catimg-2.8.0/src/catimg.c:69:11: style: Variable 'file' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/sh_color.c:59:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITY [valueFlowBailoutIncompleteVar] catimg-2.8.0/src/sh_color.c:30:1: error: Memory leak: new_flags [memleak] catimg-2.8.0/src/sh_color.c:86:26: style: Local variable 'k' shadows outer variable [shadowVariable] catimg-2.8.0/src/sh_color.c:80:18: note: Shadowed declaration catimg-2.8.0/src/sh_color.c:86:26: note: Shadow variable catimg-2.8.0/src/sh_color.c:54:38: style: Parameter 'col' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/sh_image.c:55:25: error: Deallocation of an auto-variable (head) results in undefined behaviour. [autovarInvalidDeallocation] catimg-2.8.0/src/sh_image.c:20:45: note: Address of variable taken here. catimg-2.8.0/src/sh_image.c:29:34: note: Assuming condition is false catimg-2.8.0/src/sh_image.c:55:25: note: Deallocating memory that was not dynamically allocated catimg-2.8.0/src/sh_image.c:81:52: error: Deallocation of an auto-variable (head) results in undefined behaviour. [autovarInvalidDeallocation] catimg-2.8.0/src/sh_image.c:69:30: note: Address of variable taken here. catimg-2.8.0/src/sh_image.c:81:52: note: Deallocating memory that was not dynamically allocated catimg-2.8.0/src/stb_image.h:5193:17: style: Redundant condition: The condition 'req_comp' is redundant since 'req_comp >= 3' is sufficient. [redundantCondition] catimg-2.8.0/src/stb_image.h:5432:24: style: Redundant condition: The condition 'n < 1' is redundant since 'n != 0x00010000' is sufficient. [redundantCondition] catimg-2.8.0/src/stb_image.h:4874:23: style: Condition '!stbi__compute_transparency16(z,tc16,s->img_out_n)' is always false [knownConditionTrueFalse] catimg-2.8.0/src/stb_image.h:4874:52: note: Calling function 'stbi__compute_transparency16' returns 1 catimg-2.8.0/src/stb_image.h:4874:23: note: Condition '!stbi__compute_transparency16(z,tc16,s->img_out_n)' is always false catimg-2.8.0/src/stb_image.h:4876:23: style: Condition '!stbi__compute_transparency(z,tc,s->img_out_n)' is always false [knownConditionTrueFalse] catimg-2.8.0/src/stb_image.h:4876:50: note: Calling function 'stbi__compute_transparency' returns 1 catimg-2.8.0/src/stb_image.h:4876:23: note: Condition '!stbi__compute_transparency(z,tc,s->img_out_n)' is always false catimg-2.8.0/src/stb_image.h:5432:38: style: Condition 'n>255' is always true [knownConditionTrueFalse] catimg-2.8.0/src/stb_image.h:5432:10: note: Assuming that condition 'n!=0x00010000' is not redundant catimg-2.8.0/src/stb_image.h:5432:38: note: Condition 'n>255' is always true catimg-2.8.0/src/stb_image.h:5812:22: style: Condition 'len>128' is always true [knownConditionTrueFalse] catimg-2.8.0/src/stb_image.h:5800:15: note: Assuming that condition 'len==128' is not redundant catimg-2.8.0/src/stb_image.h:5812:22: note: Condition 'len>128' is always true catimg-2.8.0/src/stb_image.h:6605:41: style: Condition 'g->transparent>=0' is always true [knownConditionTrueFalse] catimg-2.8.0/src/stb_image.h:6604:49: note: Assignment 'g->transparent=stbi__get8(s)', assigned value is greater than -1 catimg-2.8.0/src/stb_image.h:6605:41: note: Condition 'g->transparent>=0' is always true catimg-2.8.0/src/stb_image.h:6658:16: error: Common realloc mistake: 'out' nulled but not freed upon failure [memleakOnRealloc] catimg-2.8.0/src/stb_image.h:5146:11: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] catimg-2.8.0/src/stb_image.h:4524:13: style: Variable 'cur' is assigned an expression that holds the same value. [redundantAssignment] catimg-2.8.0/src/stb_image.h:4474:23: note: cur is assigned 'a->out+stride*j' here. catimg-2.8.0/src/stb_image.h:4524:13: note: Variable 'cur' is assigned an expression that holds the same value. catimg-2.8.0/src/stb_image.h:5440:6: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] catimg-2.8.0/src/stb_image.h:5430:6: note: r is assigned catimg-2.8.0/src/stb_image.h:5440:6: note: r is overwritten catimg-2.8.0/src/stb_image.h:5776:23: style: Redundant initialization for 'tga_x_origin'. The initialized value is overwritten before it is read. [redundantInitialization] catimg-2.8.0/src/stb_image.h:5597:21: note: tga_x_origin is initialized catimg-2.8.0/src/stb_image.h:5776:23: note: tga_x_origin is overwritten catimg-2.8.0/src/stb_image.h:5776:38: style: Redundant initialization for 'tga_y_origin'. The initialized value is overwritten before it is read. [redundantInitialization] catimg-2.8.0/src/stb_image.h:5598:21: note: tga_y_origin is initialized catimg-2.8.0/src/stb_image.h:5776:38: note: tga_y_origin is overwritten catimg-2.8.0/src/stb_image.h:6757:6: style: Redundant initialization for 'c'. The initialized value is overwritten before it is read. [redundantInitialization] catimg-2.8.0/src/stb_image.h:6755:11: note: c is initialized catimg-2.8.0/src/stb_image.h:6757:6: note: c is overwritten catimg-2.8.0/src/stb_image.h:1174:71: style:inconclusive: Function 'stbi_load' argument 4 names different: declaration 'channels_in_file' definition 'comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:366:83: note: Function 'stbi_load' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1174:71: note: Function 'stbi_load' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1174:81: style:inconclusive: Function 'stbi_load' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:366:105: note: Function 'stbi_load' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1174:81: note: Function 'stbi_load' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1184:68: style:inconclusive: Function 'stbi_load_from_file' argument 4 names different: declaration 'channels_in_file' definition 'comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:367:70: note: Function 'stbi_load_from_file' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1184:68: note: Function 'stbi_load_from_file' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1184:78: style:inconclusive: Function 'stbi_load_from_file' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:367:92: note: Function 'stbi_load_from_file' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1184:78: note: Function 'stbi_load_from_file' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1197:76: style:inconclusive: Function 'stbi_load_from_file_16' argument 4 names different: declaration 'channels_in_file' definition 'comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:381:71: note: Function 'stbi_load_from_file_16' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1197:76: note: Function 'stbi_load_from_file_16' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1197:86: style:inconclusive: Function 'stbi_load_from_file_16' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:381:93: note: Function 'stbi_load_from_file_16' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1197:86: note: Function 'stbi_load_from_file_16' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1210:74: style:inconclusive: Function 'stbi_load_16' argument 4 names different: declaration 'channels_in_file' definition 'comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:380:84: note: Function 'stbi_load_16' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1210:74: note: Function 'stbi_load_16' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1210:84: style:inconclusive: Function 'stbi_load_16' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:380:106: note: Function 'stbi_load_16' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1210:84: note: Function 'stbi_load_16' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1237:93: style:inconclusive: Function 'stbi_load_from_memory' argument 5 names different: declaration 'channels_in_file' definition 'comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:358:109: note: Function 'stbi_load_from_memory' argument 5 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1237:93: note: Function 'stbi_load_from_memory' argument 5 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1237:103: style:inconclusive: Function 'stbi_load_from_memory' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:358:131: note: Function 'stbi_load_from_memory' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1237:103: note: Function 'stbi_load_from_memory' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1244:107: style:inconclusive: Function 'stbi_load_from_callbacks' argument 5 names different: declaration 'channels_in_file' definition 'comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:359:109: note: Function 'stbi_load_from_callbacks' argument 5 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1244:107: note: Function 'stbi_load_from_callbacks' argument 5 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1244:117: style:inconclusive: Function 'stbi_load_from_callbacks' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:359:131: note: Function 'stbi_load_from_callbacks' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1244:117: note: Function 'stbi_load_from_callbacks' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1286:92: style:inconclusive: Function 'stbi_loadf_from_memory' argument 5 names different: declaration 'channels_in_file' definition 'comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:389:100: note: Function 'stbi_loadf_from_memory' argument 5 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1286:92: note: Function 'stbi_loadf_from_memory' argument 5 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1286:102: style:inconclusive: Function 'stbi_loadf_from_memory' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:389:122: note: Function 'stbi_loadf_from_memory' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1286:102: note: Function 'stbi_loadf_from_memory' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1293:106: style:inconclusive: Function 'stbi_loadf_from_callbacks' argument 5 names different: declaration 'channels_in_file' definition 'comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:390:112: note: Function 'stbi_loadf_from_callbacks' argument 5 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1293:106: note: Function 'stbi_loadf_from_callbacks' argument 5 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1293:116: style:inconclusive: Function 'stbi_loadf_from_callbacks' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:390:134: note: Function 'stbi_loadf_from_callbacks' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1293:116: note: Function 'stbi_loadf_from_callbacks' argument 6 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1301:70: style:inconclusive: Function 'stbi_loadf' argument 4 names different: declaration 'channels_in_file' definition 'comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:393:85: note: Function 'stbi_loadf' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1301:70: note: Function 'stbi_loadf' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1301:80: style:inconclusive: Function 'stbi_loadf' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:393:107: note: Function 'stbi_loadf' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1301:80: note: Function 'stbi_loadf' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1311:67: style:inconclusive: Function 'stbi_loadf_from_file' argument 4 names different: declaration 'channels_in_file' definition 'comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:394:72: note: Function 'stbi_loadf_from_file' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1311:67: note: Function 'stbi_loadf_from_file' argument 4 names different: declaration 'channels_in_file' definition 'comp'. catimg-2.8.0/src/stb_image.h:1311:77: style:inconclusive: Function 'stbi_loadf_from_file' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:394:94: note: Function 'stbi_loadf_from_file' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:1311:77: note: Function 'stbi_loadf_from_file' argument 5 names different: declaration 'desired_channels' definition 'req_comp'. catimg-2.8.0/src/stb_image.h:6202:51: style:inconclusive: Function 'stbi__pic_load' argument 2 names different: declaration 'x' definition 'px'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:838:55: note: Function 'stbi__pic_load' argument 2 names different: declaration 'x' definition 'px'. catimg-2.8.0/src/stb_image.h:6202:51: note: Function 'stbi__pic_load' argument 2 names different: declaration 'x' definition 'px'. catimg-2.8.0/src/stb_image.h:6202:59: style:inconclusive: Function 'stbi__pic_load' argument 3 names different: declaration 'y' definition 'py'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:838:63: note: Function 'stbi__pic_load' argument 3 names different: declaration 'y' definition 'py'. catimg-2.8.0/src/stb_image.h:6202:59: note: Function 'stbi__pic_load' argument 3 names different: declaration 'y' definition 'py'. catimg-2.8.0/src/stb_image.h:7352:63: style:inconclusive: Function 'stbi_info_from_callbacks' argument 1 names different: declaration 'clbk' definition 'c'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:426:68: note: Function 'stbi_info_from_callbacks' argument 1 names different: declaration 'clbk' definition 'c'. catimg-2.8.0/src/stb_image.h:7352:63: note: Function 'stbi_info_from_callbacks' argument 1 names different: declaration 'clbk' definition 'c'. catimg-2.8.0/src/stb_image.h:7366:68: style:inconclusive: Function 'stbi_is_16_bit_from_callbacks' argument 1 names different: declaration 'clbk' definition 'c'. [funcArgNamesDifferent] catimg-2.8.0/src/stb_image.h:428:73: note: Function 'stbi_is_16_bit_from_callbacks' argument 1 names different: declaration 'clbk' definition 'c'. catimg-2.8.0/src/stb_image.h:7366:68: note: Function 'stbi_is_16_bit_from_callbacks' argument 1 names different: declaration 'clbk' definition 'c'. catimg-2.8.0/src/sh_image.c:23:32: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/sh_image.c:113:56: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/sh_image.c:122:50: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'setPixelGray' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] catimg-2.8.0/src/sh_image.c:168:48: note: You might need to cast the function pointer here catimg-2.8.0/src/sh_image.c:122:50: note: Parameter 'ptr' can be declared as pointer to const catimg-2.8.0/src/sh_image.c:127:55: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'setPixelGrayAlpha' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] catimg-2.8.0/src/sh_image.c:171:48: note: You might need to cast the function pointer here catimg-2.8.0/src/sh_image.c:127:55: note: Parameter 'ptr' can be declared as pointer to const catimg-2.8.0/src/sh_image.c:132:49: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'setPixelRGB' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] catimg-2.8.0/src/sh_image.c:174:48: note: You might need to cast the function pointer here catimg-2.8.0/src/sh_image.c:132:49: note: Parameter 'ptr' can be declared as pointer to const catimg-2.8.0/src/sh_image.c:139:54: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'setPixelRGBAlpha' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] catimg-2.8.0/src/sh_image.c:177:48: note: You might need to cast the function pointer here catimg-2.8.0/src/sh_image.c:139:54: note: Parameter 'ptr' can be declared as pointer to const catimg-2.8.0/src/stb_image.h:725:72: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:1150:57: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:1150:65: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:1769:55: style: Parameter 'count' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:1969:120: style: Parameter 'fac' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:1969:146: style: Parameter 'dequant' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:2048:108: style: Parameter 'fac' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:2825:62: style: Parameter 'dequant' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:3188:63: style: Parameter 'in_near' can be declared as pointer to const. However it seems that 'stbi__resample_row_v_2' is a callback function, if 'in_near' is declared with const you might also need to cast function pointer(s). [constParameterCallback] catimg-2.8.0/src/stb_image.h:3634:59: note: You might need to cast the function pointer here catimg-2.8.0/src/stb_image.h:3188:63: note: Parameter 'in_near' can be declared as pointer to const catimg-2.8.0/src/stb_image.h:3188:81: style: Parameter 'in_far' can be declared as pointer to const. However it seems that 'stbi__resample_row_v_2' is a callback function, if 'in_far' is declared with const you might also need to cast function pointer(s). [constParameterCallback] catimg-2.8.0/src/stb_image.h:3634:59: note: You might need to cast the function pointer here catimg-2.8.0/src/stb_image.h:3188:81: note: Parameter 'in_far' can be declared as pointer to const catimg-2.8.0/src/stb_image.h:3202:13: style: Variable 'input' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:3228:64: style: Parameter 'in_near' can be declared as pointer to const. However it seems that 'stbi__resample_row_hv_2' is a callback function, if 'in_near' is declared with const you might also need to cast function pointer(s). [constParameterCallback] catimg-2.8.0/src/stb_image.h:3548:34: note: You might need to cast the function pointer here catimg-2.8.0/src/stb_image.h:3228:64: note: Parameter 'in_near' can be declared as pointer to const catimg-2.8.0/src/stb_image.h:3228:82: style: Parameter 'in_far' can be declared as pointer to const. However it seems that 'stbi__resample_row_hv_2' is a callback function, if 'in_far' is declared with const you might also need to cast function pointer(s). [constParameterCallback] catimg-2.8.0/src/stb_image.h:3548:34: note: You might need to cast the function pointer here catimg-2.8.0/src/stb_image.h:3228:82: note: Parameter 'in_far' can be declared as pointer to const catimg-2.8.0/src/stb_image.h:3369:67: style: Parameter 'in_near' can be declared as pointer to const. However it seems that 'stbi__resample_row_generic' is a callback function, if 'in_near' is declared with const you might also need to cast function pointer(s). [constParameterCallback] catimg-2.8.0/src/stb_image.h:3637:59: note: You might need to cast the function pointer here catimg-2.8.0/src/stb_image.h:3369:67: note: Parameter 'in_near' can be declared as pointer to const catimg-2.8.0/src/stb_image.h:3731:25: style: Variable 'y' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:4006:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:4348:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:4569:11: style: Variable 'xorig' can be declared as const array [constVariable] catimg-2.8.0/src/stb_image.h:4570:11: style: Variable 'yorig' can be declared as const array [constVariable] catimg-2.8.0/src/stb_image.h:4571:11: style: Variable 'xspc' can be declared as const array [constVariable] catimg-2.8.0/src/stb_image.h:4572:11: style: Variable 'yspc' can be declared as const array [constVariable] catimg-2.8.0/src/stb_image.h:4603:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:4628:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:4651:60: style: Parameter 'palette' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:4654:28: style: Variable 'orig' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:4703:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:5050:24: style: Variable 'mul_table' can be declared as const array [constVariable] catimg-2.8.0/src/stb_image.h:5055:24: style: Variable 'shift_table' can be declared as const array [constVariable] catimg-2.8.0/src/stb_image.h:5165:109: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:6124:28: style: Variable 'packet' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:6349:17: style: Variable 'c' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:6471:103: style: Parameter 'two_back' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:6637:16: style: Variable 'u' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:6774:55: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] catimg-2.8.0/src/stb_image.h:6977:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] catimg-2.8.0/src/stb_image.h:1920:38: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] catimg-2.8.0/src/stb_image.h:4079:44: warning: Uninitialized variable: lencodes [uninitvar] catimg-2.8.0/src/stb_image.h:4056:13: note: Assuming condition is false catimg-2.8.0/src/stb_image.h:4079:44: note: Uninitialized variable: lencodes catimg-2.8.0/src/stb_image.h:6080:11: warning: Uninitialized variable: dest [uninitvar] catimg-2.8.0/src/stb_image.h:6153:59: note: Calling function 'stbi__readval', 3rd argument 'value' value is catimg-2.8.0/src/stb_image.h:6074:19: note: Assuming condition is false catimg-2.8.0/src/stb_image.h:6080:11: note: Uninitialized variable: dest catimg-2.8.0/src/stb_image.h:5157:20: style: Variable 'hsz' is assigned a value that is never used. [unreadVariable] catimg-2.8.0/src/stb_image.h:5775:22: style: Variable 'tga_palette_start' is assigned a value that is never used. [unreadVariable] catimg-2.8.0/src/stb_image.h:5775:40: style: Variable 'tga_palette_len' is assigned a value that is never used. [unreadVariable] catimg-2.8.0/src/stb_image.h:5775:59: style: Variable 'tga_palette_bits' is assigned a value that is never used. [unreadVariable] catimg-2.8.0/src/stb_image.h:5776:23: style: Variable 'tga_x_origin' is assigned a value that is never used. [unreadVariable] catimg-2.8.0/src/stb_image.h:5776:38: style: Variable 'tga_y_origin' is assigned a value that is never used. [unreadVariable] catimg-2.8.0/src/sh_image.c:22:28: style: Variable 'stride' is assigned a value that is never used. [unreadVariable] catimg-2.8.0/src/sh_image.c:23:37: style: Variable 'temp' is assigned a value that is never used. [unreadVariable] catimg-2.8.0/src/sh_utils.c:27:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] catimg-2.8.0/src/sh_utils.c:41:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] catimg-2.8.0/src/sh_utils.c:60:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] diff: DONE