2025-05-09 01:19 ftp://ftp.de.debian.org/debian/pool/main/x/xflip/xflip_1.01.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --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: 18 18 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: xflip-1.01.orig/meltdown.c:69:1: portability: Omitted return type of function 'usage' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] xflip-1.01.orig/meltdown.c:75:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] xflip-1.01.orig/meltdown.c:141:1: portability: Omitted return type of function 'do_planes' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] xflip-1.01.orig/meltdown.c:191:1: portability: Omitted return type of function 'do_all' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] xflip-1.01.orig/flip.c:85:1: portability: Omitted return type of function 'usage' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] xflip-1.01.orig/flip.c:91:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] xflip-1.01.orig/flip.c:246:1: portability: Omitted return type of function 'flip_horz' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] xflip-1.01.orig/flip.c:275:1: portability: Omitted return type of function 'flip_vert' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] xflip-1.01.orig/flip.c:304:1: portability: Omitted return type of function 'flip_oblic' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] xflip-1.01.orig/meltdown.c:71:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xflip-1.01.orig/meltdown.c:101:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xflip-1.01.orig/flip.c:87:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xflip-1.01.orig/flip.c:134:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xflip-1.01.orig/meltdown.c:149:3: warning: If memory allocation fails, then there is a possible null pointer dereference: heights [nullPointerOutOfMemory] xflip-1.01.orig/meltdown.c:147:29: note: Assuming allocation function fails xflip-1.01.orig/meltdown.c:147:12: note: Assignment 'heights=(short**)malloc(DisplayPlanes(dpy,screen))', assigned value is 0 xflip-1.01.orig/meltdown.c:149:3: note: Null pointer dereference xflip-1.01.orig/meltdown.c:159:11: warning: If memory allocation fails, then there is a possible null pointer dereference: heights [nullPointerOutOfMemory] xflip-1.01.orig/meltdown.c:147:29: note: Assuming allocation function fails xflip-1.01.orig/meltdown.c:147:12: note: Assignment 'heights=(short**)malloc(DisplayPlanes(dpy,screen))', assigned value is 0 xflip-1.01.orig/meltdown.c:159:11: note: Null pointer dereference xflip-1.01.orig/meltdown.c:207:11: warning: If memory allocation fails, then there is a possible null pointer dereference: heights [nullPointerOutOfMemory] xflip-1.01.orig/meltdown.c:197:28: note: Assuming allocation function fails xflip-1.01.orig/meltdown.c:197:12: note: Assignment 'heights=(short*)calloc(sizeof(short),DisplayWidth(dpy,screen))', assigned value is 0 xflip-1.01.orig/meltdown.c:207:11: note: Null pointer dereference xflip-1.01.orig/meltdown.c:145:9: style: Local variable 'heights' shadows outer variable [shadowVariable] xflip-1.01.orig/meltdown.c:67:9: note: Shadowed declaration xflip-1.01.orig/meltdown.c:145:9: note: Shadow variable xflip-1.01.orig/meltdown.c:195:8: style: Local variable 'heights' shadows outer variable [shadowVariable] xflip-1.01.orig/meltdown.c:67:9: note: Shadowed declaration xflip-1.01.orig/meltdown.c:195:8: note: Shadow variable diff: DONE