2025-05-05 18:46 ftp://ftp.de.debian.org/debian/pool/main/libg/libgd2/libgd2_2.3.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --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: fcc0493 (2025-05-05 13:08:11 +0200) count: 344 343 elapsed-time: 3.6 3.6 head-timing-info: old-timing-info: head results: libgd-2.3.3/examples/arc.c:13:86: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPie [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/avif2jpeg.c:21:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/copyrotated.c:13:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/copyrotated.c:27:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/copyrotated.c:42:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/crop.c:10:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/crop.c:24:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/crop.c:39:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/flip.c:11:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/flip.c:25:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/flip.c:39:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/gif.c:16:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/imagescale.c:21:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/imagescale.c:35:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/imagescale.c:53:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_DEFAULT [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/imagescale.c:60:9: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libgd-2.3.3/examples/imagescale.c:64:13: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libgd-2.3.3/examples/imagescale.c:75:9: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libgd-2.3.3/examples/jpeg2avif.c:21:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/nnquant.c:10:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/nnquant.c:25:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/jpeg2avifex.c:20:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/jpeg2avifex.c:40:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/nnquant.c:21:7: style: Variable 'path' can be declared as const array [constVariable] libgd-2.3.3/examples/nnquant.c:32:49: error: Uninitialized variable: path [uninitvar] libgd-2.3.3/examples/png2avif.c:22:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/jpeg2avifex.c:58:32: warning: If memory allocation fails, then there is a possible null pointer dereference: infile [nullPointerOutOfMemory] libgd-2.3.3/examples/jpeg2avifex.c:55:17: note: Assuming allocation function fails libgd-2.3.3/examples/jpeg2avifex.c:55:17: note: Assignment 'infile=strdup(argv[optind++])', assigned value is 0 libgd-2.3.3/examples/jpeg2avifex.c:58:32: note: Null pointer dereference libgd-2.3.3/examples/jpeg2avifex.c:60:13: warning: If memory allocation fails, then there is a possible null pointer dereference: infile [nullPointerOutOfMemory] libgd-2.3.3/examples/jpeg2avifex.c:55:17: note: Assuming allocation function fails libgd-2.3.3/examples/jpeg2avifex.c:55:17: note: Assignment 'infile=strdup(argv[optind++])', assigned value is 0 libgd-2.3.3/examples/jpeg2avifex.c:60:13: note: Null pointer dereference libgd-2.3.3/examples/png2heif.c:22:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/resize.c:20:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/tgaread.c:33:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/resize.c:5:27: style: Parameter 'argv' can be declared as const array [constParameter] libgd-2.3.3/examples/tiffread.c:39:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/windows.c:19:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdImage [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/windows.c:86:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BITMAPINFO [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/windows.c:111:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CS_HREDRAW [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/windows.c:149:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/windows.c:177:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_ICONEXCLAMATION [valueFlowBailoutIncompleteVar] libgd-2.3.3/examples/windows.c:253:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/annotate.c:36:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/circletexttest.c:35:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/circletexttest.c:11:8: style: Variable 'error' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/fontconfigtest.c:25:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/annotate.c:78:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libgd-2.3.3/src/annotate.c:85:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libgd-2.3.3/src/annotate.c:97:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libgd-2.3.3/src/annotate.c:111:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libgd-2.3.3/src/annotate.c:119:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libgd-2.3.3/src/annotate.c:133:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libgd-2.3.3/src/annotate.c:146:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libgd-2.3.3/src/annotate.c:85:10: style: Local variable 'st' shadows outer variable [shadowVariable] libgd-2.3.3/src/annotate.c:75:9: note: Shadowed declaration libgd-2.3.3/src/annotate.c:85:10: note: Shadow variable libgd-2.3.3/src/annotate.c:97:10: style: Local variable 'st' shadows outer variable [shadowVariable] libgd-2.3.3/src/annotate.c:75:9: note: Shadowed declaration libgd-2.3.3/src/annotate.c:97:10: note: Shadow variable libgd-2.3.3/src/annotate.c:111:10: style: Local variable 'st' shadows outer variable [shadowVariable] libgd-2.3.3/src/annotate.c:75:9: note: Shadowed declaration libgd-2.3.3/src/annotate.c:111:10: note: Shadow variable libgd-2.3.3/src/annotate.c:119:10: style: Local variable 'st' shadows outer variable [shadowVariable] libgd-2.3.3/src/annotate.c:75:9: note: Shadowed declaration libgd-2.3.3/src/annotate.c:119:10: note: Shadow variable libgd-2.3.3/src/annotate.c:133:10: style: Local variable 'st' shadows outer variable [shadowVariable] libgd-2.3.3/src/annotate.c:75:9: note: Shadowed declaration libgd-2.3.3/src/annotate.c:133:10: note: Shadow variable libgd-2.3.3/src/annotate.c:20:8: style: Variable 'iin' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/annotate.c:20:14: style: Variable 'iout' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/annotate.c:31:8: style: Variable 'fontError' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/annotate.c:75:9: style: Variable 'st' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/annotate.c:76:9: style: Variable 'text' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/annotate.c:85:10: style: Variable 'st' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/annotate.c:97:10: style: Variable 'st' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/annotate.c:111:10: style: Variable 'st' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/annotate.c:119:10: style: Variable 'st' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/annotate.c:133:10: style: Variable 'st' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/fontsizetest.c:25:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/fontsizetest.c:80:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/fontsizetest.c:62:10: warning: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] libgd-2.3.3/src/fontsizetest.c:53:14: note: Assuming allocation function fails libgd-2.3.3/src/fontsizetest.c:53:14: note: Assignment 'out=fopen(filename,"wb")', assigned value is 0 libgd-2.3.3/src/fontsizetest.c:62:10: note: Null pointer dereference libgd-2.3.3/src/fontsizetest.c:8:42: style: Parameter 'fontfile' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/fontsizetest.c:13:8: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/fontsizetest.c:39:41: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/fontwheeltest.c:132:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/msinttypes/inttypes.h:33:0: error: #error "Use this header only with Microsoft Visual C++ compilers!" [preprocessorErrorDirective] libgd-2.3.3/src/msinttypes/inttypes.h:33:2: error: #error "Use this header only with Microsoft Visual C++ compilers!" [preprocessorErrorDirective] libgd-2.3.3/src/fontwheeltest.c:47:10: warning: If resource allocation fails, then there is a possible null pointer dereference: err [nullPointerOutOfResources] libgd-2.3.3/src/fontwheeltest.c:27:14: note: Assuming allocation function fails libgd-2.3.3/src/fontwheeltest.c:27:14: note: Assignment 'err=fopen("err.out","a")', assigned value is 0 libgd-2.3.3/src/fontwheeltest.c:47:10: note: Null pointer dereference libgd-2.3.3/src/fontwheeltest.c:106:10: warning: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] libgd-2.3.3/src/fontwheeltest.c:93:14: note: Assuming allocation function fails libgd-2.3.3/src/fontwheeltest.c:93:14: note: Assignment 'out=fopen(filename,"wb")', assigned value is 0 libgd-2.3.3/src/fontwheeltest.c:106:10: note: Null pointer dereference libgd-2.3.3/src/fontwheeltest.c:19:42: style: Parameter 'fontfile' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/fontwheeltest.c:20:56: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/fontwheeltest.c:25:8: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd2copypal.c:21:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd2time.c:26:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd2togif.c:20:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd2topng.c:21:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_bmp.c:329:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_filename.c:199:24: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] libgd-2.3.3/src/gd_filename.c:96:11: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_gd.c:416:53: style:inconclusive: Function 'gdImageCreateFromGd' argument 1 names different: declaration 'in' definition 'inFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:737:53: note: Function 'gdImageCreateFromGd' argument 1 names different: declaration 'in' definition 'inFile'. libgd-2.3.3/src/gd_gd.c:416:53: note: Function 'gdImageCreateFromGd' argument 1 names different: declaration 'in' definition 'inFile'. libgd-2.3.3/src/gd_gd.c:438:52: style:inconclusive: Function 'gdImageGd' argument 2 names different: declaration 'out' definition 'outFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1240:52: note: Function 'gdImageGd' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_gd.c:438:52: note: Function 'gdImageGd' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_bmp.c:342:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] libgd-2.3.3/src/gd_bmp.c:471:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] libgd-2.3.3/src/gd_bmp.c:363:40: style:inconclusive: Function 'compress_row' argument 1 names different: declaration 'uncompressed_row' definition 'row'. [funcArgNamesDifferent] libgd-2.3.3/src/gd_bmp.c:36:40: note: Function 'compress_row' argument 1 names different: declaration 'uncompressed_row' definition 'row'. libgd-2.3.3/src/gd_bmp.c:363:40: note: Function 'compress_row' argument 1 names different: declaration 'uncompressed_row' definition 'row'. libgd-2.3.3/src/gd_bmp.c:432:93: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_bmp.c:753:74: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_bmp.c:753:91: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_bmp.c:868:89: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_bmp.c:938:89: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_bmp.c:1025:89: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_bmp.c:1100:71: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_bmp.c:456:6: style: Variable 'row' is assigned a value that is never used. [unreadVariable] libgd-2.3.3/src/gd_bmp.c:471:7: style: Variable 'row' is assigned a value that is never used. [unreadVariable] libgd-2.3.3/src/gd_bmp.c:870:21: style: Variable 'xpos' is assigned a value that is never used. [unreadVariable] libgd-2.3.3/src/gd_bmp.c:870:30: style: Variable 'row' is assigned a value that is never used. [unreadVariable] libgd-2.3.3/src/gd_bmp.c:871:41: style: Variable 'bit' is assigned a value that is never used. [unreadVariable] libgd-2.3.3/src/gd_bmp.c:1102:30: style: Variable 'row' is assigned a value that is never used. [unreadVariable] libgd-2.3.3/src/gd_bmp.c:1104:14: style: Variable 'padding' is assigned a value that is never used. [unreadVariable] libgd-2.3.3/src/gd_bmp.c:1105:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] libgd-2.3.3/src/gd_bmp.c:1105:15: style: Variable 'j' is assigned a value that is never used. [unreadVariable] libgd-2.3.3/src/gd_gd2.c:1159:54: style:inconclusive: Function 'gdImageCreateFromGd2' argument 1 names different: declaration 'in' definition 'inFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:741:54: note: Function 'gdImageCreateFromGd2' argument 1 names different: declaration 'in' definition 'inFile'. libgd-2.3.3/src/gd_gd2.c:1159:54: note: Function 'gdImageCreateFromGd2' argument 1 names different: declaration 'in' definition 'inFile'. libgd-2.3.3/src/gd_gd2.c:1173:58: style:inconclusive: Function 'gdImageCreateFromGd2Part' argument 1 names different: declaration 'in' definition 'inFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:745:58: note: Function 'gdImageCreateFromGd2Part' argument 1 names different: declaration 'in' definition 'inFile'. libgd-2.3.3/src/gd_gd2.c:1173:58: note: Function 'gdImageCreateFromGd2Part' argument 1 names different: declaration 'in' definition 'inFile'. libgd-2.3.3/src/gd_gd2.c:1215:53: style:inconclusive: Function 'gdImageGd2' argument 2 names different: declaration 'out' definition 'outFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1241:53: note: Function 'gdImageGd2' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_gd2.c:1215:53: note: Function 'gdImageGd2' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_heif.c:540:53: style: Parameter 'inFile' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_heif.c:546:66: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_heif.c:552:59: style: Parameter 'infile' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_heif.c:558:58: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_heif.c:563:54: style: Parameter 'outFile' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_heif.c:568:52: style: Parameter 'outFile' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_heif.c:573:56: style: Parameter 'size' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_heif.c:579:58: style: Parameter 'size' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_gif_out.c:1071:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_gif_out.c:1419:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_io.c:64:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_io.c:78:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_io.c:98:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_io.c:119:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_io.c:155:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_io.c:200:36: style:inconclusive: Function 'gdSeek' argument 2 names different: declaration 'offset' definition 'pos'. [funcArgNamesDifferent] libgd-2.3.3/src/gd_io.h:82:38: note: Function 'gdSeek' argument 2 names different: declaration 'offset' definition 'pos'. libgd-2.3.3/src/gd_io.c:200:36: note: Function 'gdSeek' argument 2 names different: declaration 'offset' definition 'pos'. libgd-2.3.3/src/gd_gif_in.c:156:52: style:inconclusive: Function 'gdImageCreateFromGif' argument 1 names different: declaration 'fd' definition 'fdFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:663:54: note: Function 'gdImageCreateFromGif' argument 1 names different: declaration 'fd' definition 'fdFile'. libgd-2.3.3/src/gd_gif_in.c:156:52: note: Function 'gdImageCreateFromGif' argument 1 names different: declaration 'fd' definition 'fdFile'. libgd-2.3.3/src/gd_gif_in.c:196:60: style:inconclusive: Function 'gdImageCreateFromGifCtx' argument 1 names different: declaration 'in' definition 'fd'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:664:60: note: Function 'gdImageCreateFromGifCtx' argument 1 names different: declaration 'in' definition 'fd'. libgd-2.3.3/src/gd_gif_in.c:196:60: note: Function 'gdImageCreateFromGifCtx' argument 1 names different: declaration 'in' definition 'fd'. libgd-2.3.3/src/gd_io_dp.c:316:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_gif_out.c:207:51: style:inconclusive: Function 'gdImageGif' argument 2 names different: declaration 'out' definition 'outFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1097:53: note: Function 'gdImageGif' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_gif_out.c:207:51: note: Function 'gdImageGif' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_gif_out.c:1085:135: style: Parameter 'Red' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_gif_out.c:1085:145: style: Parameter 'Green' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_gif_out.c:1085:157: style: Parameter 'Blue' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_gif_out.c:1199:173: style: Parameter 'Red' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_gif_out.c:1199:183: style: Parameter 'Green' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_gif_out.c:1199:195: style: Parameter 'Blue' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_gif_out.c:1570:56: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_io_dp.c:72:44: style:inconclusive: Function 'gdNewDynamicCtx' argument 1 names different: declaration 'size' definition 'initialSize'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1577:45: note: Function 'gdNewDynamicCtx' argument 1 names different: declaration 'size' definition 'initialSize'. libgd-2.3.3/src/gd_io_dp.c:72:44: note: Function 'gdNewDynamicCtx' argument 1 names different: declaration 'size' definition 'initialSize'. libgd-2.3.3/src/gd_io_dp.c:81:46: style:inconclusive: Function 'gdNewDynamicCtxEx' argument 1 names different: declaration 'size' definition 'initialSize'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1586:47: note: Function 'gdNewDynamicCtxEx' argument 1 names different: declaration 'size' definition 'initialSize'. libgd-2.3.3/src/gd_io_dp.c:81:46: note: Function 'gdNewDynamicCtxEx' argument 1 names different: declaration 'size' definition 'initialSize'. libgd-2.3.3/src/gd_io_dp.c:81:75: style:inconclusive: Function 'gdNewDynamicCtxEx' argument 3 names different: declaration 'freeFlag' definition 'freeOKFlag'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1586:69: note: Function 'gdNewDynamicCtxEx' argument 3 names different: declaration 'freeFlag' definition 'freeOKFlag'. libgd-2.3.3/src/gd_io_dp.c:81:75: note: Function 'gdNewDynamicCtxEx' argument 3 names different: declaration 'freeFlag' definition 'freeOKFlag'. libgd-2.3.3/src/gd_io_ss.c:119:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_jpeg.c:1214:52: style:inconclusive: Function 'gdImageJpeg' argument 2 names different: declaration 'out' definition 'outFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1132:54: note: Function 'gdImageJpeg' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_jpeg.c:1214:52: note: Function 'gdImageJpeg' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_jpeg.c:1231:58: style:inconclusive: Function 'gdImageJpegCtx' argument 2 names different: declaration 'out' definition 'outfile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1133:60: note: Function 'gdImageJpegCtx' argument 2 names different: declaration 'out' definition 'outfile'. libgd-2.3.3/src/gd_jpeg.c:1231:58: note: Function 'gdImageJpegCtx' argument 2 names different: declaration 'out' definition 'outfile'. libgd-2.3.3/src/gd_jpeg.c:1239:53: style:inconclusive: Function 'gdImageCreateFromJpeg' argument 1 names different: declaration 'infile' definition 'inFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:669:55: note: Function 'gdImageCreateFromJpeg' argument 1 names different: declaration 'infile' definition 'inFile'. libgd-2.3.3/src/gd_jpeg.c:1239:53: note: Function 'gdImageCreateFromJpeg' argument 1 names different: declaration 'infile' definition 'inFile'. libgd-2.3.3/src/gd_jpeg.c:1246:55: style:inconclusive: Function 'gdImageCreateFromJpegEx' argument 1 names different: declaration 'infile' definition 'inFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:670:57: note: Function 'gdImageCreateFromJpegEx' argument 1 names different: declaration 'infile' definition 'inFile'. libgd-2.3.3/src/gd_jpeg.c:1246:55: note: Function 'gdImageCreateFromJpegEx' argument 1 names different: declaration 'infile' definition 'inFile'. libgd-2.3.3/src/gd_io_ss.c:55:47: style:inconclusive: Function 'gdNewSSCtx' argument 1 names different: declaration 'in' definition 'src'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1587:48: note: Function 'gdNewSSCtx' argument 1 names different: declaration 'in' definition 'src'. libgd-2.3.3/src/gd_io_ss.c:55:47: note: Function 'gdNewSSCtx' argument 1 names different: declaration 'in' definition 'src'. libgd-2.3.3/src/gd_io_ss.c:55:62: style:inconclusive: Function 'gdNewSSCtx' argument 2 names different: declaration 'out' definition 'snk'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1587:62: note: Function 'gdNewSSCtx' argument 2 names different: declaration 'out' definition 'snk'. libgd-2.3.3/src/gd_io_ss.c:55:62: note: Function 'gdNewSSCtx' argument 2 names different: declaration 'out' definition 'snk'. libgd-2.3.3/src/gd_matrix.c:121:39: style:inconclusive: Function 'gdAffineFlip' argument 1 names different: declaration 'dst_affine' definition 'dst'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1650:39: note: Function 'gdAffineFlip' argument 1 names different: declaration 'dst_affine' definition 'dst'. libgd-2.3.3/src/gd_matrix.c:121:39: note: Function 'gdAffineFlip' argument 1 names different: declaration 'dst_affine' definition 'dst'. libgd-2.3.3/src/gd_matrix.c:121:60: style:inconclusive: Function 'gdAffineFlip' argument 2 names different: declaration 'src_affine' definition 'src'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1650:67: note: Function 'gdAffineFlip' argument 2 names different: declaration 'src_affine' definition 'src'. libgd-2.3.3/src/gd_matrix.c:121:60: note: Function 'gdAffineFlip' argument 2 names different: declaration 'src_affine' definition 'src'. libgd-2.3.3/src/gd_matrix.c:333:52: style:inconclusive: Function 'gdAffineRectilinear' argument 1 names different: declaration 'src' definition 'm'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1660:52: note: Function 'gdAffineRectilinear' argument 1 names different: declaration 'src' definition 'm'. libgd-2.3.3/src/gd_matrix.c:333:52: note: Function 'gdAffineRectilinear' argument 1 names different: declaration 'src' definition 'm'. libgd-2.3.3/src/gd_matrix.c:351:46: style:inconclusive: Function 'gdAffineEqual' argument 1 names different: declaration 'matrix1' definition 'm1'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1661:46: note: Function 'gdAffineEqual' argument 1 names different: declaration 'matrix1' definition 'm1'. libgd-2.3.3/src/gd_matrix.c:351:46: note: Function 'gdAffineEqual' argument 1 names different: declaration 'matrix1' definition 'm1'. libgd-2.3.3/src/gd_matrix.c:351:66: style:inconclusive: Function 'gdAffineEqual' argument 2 names different: declaration 'matrix2' definition 'm2'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1661:71: note: Function 'gdAffineEqual' argument 2 names different: declaration 'matrix2' definition 'm2'. libgd-2.3.3/src/gd_matrix.c:351:66: note: Function 'gdAffineEqual' argument 2 names different: declaration 'matrix2' definition 'm2'. libgd-2.3.3/src/gd_png.c:1100:54: style:inconclusive: Function 'gdImageCreateFromPng' argument 1 names different: declaration 'fd' definition 'inFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:658:54: note: Function 'gdImageCreateFromPng' argument 1 names different: declaration 'fd' definition 'inFile'. libgd-2.3.3/src/gd_png.c:1100:54: note: Function 'gdImageCreateFromPng' argument 1 names different: declaration 'fd' definition 'inFile'. libgd-2.3.3/src/gd_png.c:1114:60: style:inconclusive: Function 'gdImageCreateFromPngCtx' argument 1 names different: declaration 'in' definition 'infile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:659:60: note: Function 'gdImageCreateFromPngCtx' argument 1 names different: declaration 'in' definition 'infile'. libgd-2.3.3/src/gd_png.c:1114:60: note: Function 'gdImageCreateFromPngCtx' argument 1 names different: declaration 'in' definition 'infile'. libgd-2.3.3/src/gd_png.c:1120:55: style:inconclusive: Function 'gdImagePngEx' argument 2 names different: declaration 'out' definition 'outFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1113:55: note: Function 'gdImagePngEx' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_png.c:1120:55: note: Function 'gdImagePngEx' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_png.c:1128:53: style:inconclusive: Function 'gdImagePng' argument 2 names different: declaration 'out' definition 'outFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1098:53: note: Function 'gdImagePng' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_png.c:1128:53: note: Function 'gdImagePng' argument 2 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_png.c:1150:59: style:inconclusive: Function 'gdImagePngCtx' argument 2 names different: declaration 'out' definition 'outfile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1099:59: note: Function 'gdImagePngCtx' argument 2 names different: declaration 'out' definition 'outfile'. libgd-2.3.3/src/gd_png.c:1150:59: note: Function 'gdImagePngCtx' argument 2 names different: declaration 'out' definition 'outfile'. libgd-2.3.3/src/gd_png.c:1157:61: style:inconclusive: Function 'gdImagePngCtxEx' argument 2 names different: declaration 'out' definition 'outfile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1114:61: note: Function 'gdImagePngCtxEx' argument 2 names different: declaration 'out' definition 'outfile'. libgd-2.3.3/src/gd_png.c:1157:61: note: Function 'gdImagePngCtxEx' argument 2 names different: declaration 'out' definition 'outfile'. libgd-2.3.3/src/gd_security.c:24:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_nnquant.c:457:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gd_ss.c:49:62: style:inconclusive: Function 'gdImagePngToSink' argument 2 names different: declaration 'out' definition 'outSink'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1238:62: note: Function 'gdImagePngToSink' argument 2 names different: declaration 'out' definition 'outSink'. libgd-2.3.3/src/gd_ss.c:49:62: note: Function 'gdImagePngToSink' argument 2 names different: declaration 'out' definition 'outSink'. libgd-2.3.3/src/gd_ss.c:56:65: style:inconclusive: Function 'gdImageCreateFromPngSource' argument 1 names different: declaration 'in' definition 'inSource'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:735:65: note: Function 'gdImageCreateFromPngSource' argument 1 names different: declaration 'in' definition 'inSource'. libgd-2.3.3/src/gd_ss.c:56:65: note: Function 'gdImageCreateFromPngSource' argument 1 names different: declaration 'in' definition 'inSource'. libgd-2.3.3/src/gd_topal.c:262:1: debug: Failed to parse 'typedef unsigned short ( * * ) [ ( 1 << 5 ) ] hist3d ;'. The checking continues anyway. [simplifyTypedef] libgd-2.3.3/src/gd_nnquant.c:240:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_nnquant.c:321:23: style: Variable 'n' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_nnquant.c:391:20: style: Variable 'q' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_nnquant.c:439:17: style: Variable 'lim' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_nnquant.c:553:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_nnquant.c:323:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] libgd-2.3.3/src/gd_wbmp.c:270:42: style:inconclusive: Function 'gdImageWBMP' argument 1 names different: declaration 'image' definition 'im'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1116:43: note: Function 'gdImageWBMP' argument 1 names different: declaration 'image' definition 'im'. libgd-2.3.3/src/gd_wbmp.c:270:42: note: Function 'gdImageWBMP' argument 1 names different: declaration 'image' definition 'im'. libgd-2.3.3/src/gd_wbmp.c:270:60: style:inconclusive: Function 'gdImageWBMP' argument 3 names different: declaration 'out' definition 'outFile'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1116:65: note: Function 'gdImageWBMP' argument 3 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_wbmp.c:270:60: note: Function 'gdImageWBMP' argument 3 names different: declaration 'out' definition 'outFile'. libgd-2.3.3/src/gd_webp.c:407:73: style:inconclusive: Function 'gdImageWebpCtx' argument 3 names different: declaration 'quantization' definition 'quality'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1155:73: note: Function 'gdImageWebpCtx' argument 3 names different: declaration 'quantization' definition 'quality'. libgd-2.3.3/src/gd_webp.c:407:73: note: Function 'gdImageWebpCtx' argument 3 names different: declaration 'quantization' definition 'quality'. libgd-2.3.3/src/gd_webp.c:415:69: style:inconclusive: Function 'gdImageWebpEx' argument 3 names different: declaration 'quantization' definition 'quality'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1151:69: note: Function 'gdImageWebpEx' argument 3 names different: declaration 'quantization' definition 'quality'. libgd-2.3.3/src/gd_webp.c:415:69: note: Function 'gdImageWebpEx' argument 3 names different: declaration 'quantization' definition 'quality'. libgd-2.3.3/src/gd_webp.c:438:69: style:inconclusive: Function 'gdImageWebpPtrEx' argument 3 names different: declaration 'quantization' definition 'quality'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1154:69: note: Function 'gdImageWebpPtrEx' argument 3 names different: declaration 'quantization' definition 'quality'. libgd-2.3.3/src/gd_webp.c:438:69: note: Function 'gdImageWebpPtrEx' argument 3 names different: declaration 'quantization' definition 'quality'. libgd-2.3.3/src/gd_xbm.c:138:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gdcmpgif.c:27:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gdcmpgif.c:64:26: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/gd_xbm.c:86:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] libgd-2.3.3/src/gd_xbm.c:100:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] libgd-2.3.3/src/gd_xbm.c:101:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] libgd-2.3.3/src/gd_xbm.c:104:15: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] libgd-2.3.3/src/gd_xbm.c:105:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] libgd-2.3.3/src/gd_xbm.c:235:19: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] libgd-2.3.3/src/gd_xbm.c:234:15: note: Assuming allocation function fails libgd-2.3.3/src/gd_xbm.c:234:15: note: Assignment 'name=strdup(name)', assigned value is 0 libgd-2.3.3/src/gd_xbm.c:235:19: note: Null pointer dereference libgd-2.3.3/src/gd_xbm.c:254:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] libgd-2.3.3/src/gd_xbm.c:238:16: note: Assuming allocation function fails libgd-2.3.3/src/gd_xbm.c:238:16: note: Assignment 'name=strdup("image")', assigned value is 0 libgd-2.3.3/src/gd_xbm.c:254:2: note: Null pointer dereference libgd-2.3.3/src/gd_xbm.c:260:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] libgd-2.3.3/src/gd_xbm.c:238:16: note: Assuming allocation function fails libgd-2.3.3/src/gd_xbm.c:238:16: note: Assignment 'name=strdup("image")', assigned value is 0 libgd-2.3.3/src/gd_xbm.c:260:2: note: Null pointer dereference libgd-2.3.3/src/gd_xbm.c:266:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] libgd-2.3.3/src/gd_xbm.c:238:16: note: Assuming allocation function fails libgd-2.3.3/src/gd_xbm.c:238:16: note: Assignment 'name=strdup("image")', assigned value is 0 libgd-2.3.3/src/gd_xbm.c:266:2: note: Null pointer dereference libgd-2.3.3/src/gd_xbm.c:63:53: style:inconclusive: Function 'gdImageCreateFromXbm' argument 1 names different: declaration 'in' definition 'fd'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:752:54: note: Function 'gdImageCreateFromXbm' argument 1 names different: declaration 'in' definition 'fd'. libgd-2.3.3/src/gd_xbm.c:63:53: note: Function 'gdImageCreateFromXbm' argument 1 names different: declaration 'in' definition 'fd'. libgd-2.3.3/src/gd_xbm.c:67:8: style: Variable 'type' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gddemo.c:58:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gddemo.c:168:10: warning: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] libgd-2.3.3/src/gddemo.c:165:14: note: Assuming allocation function fails libgd-2.3.3/src/gddemo.c:165:14: note: Assignment 'out=fopen("demoout.png","wb")', assigned value is 0 libgd-2.3.3/src/gddemo.c:168:10: note: Null pointer dereference libgd-2.3.3/src/gddemo.c:172:10: warning: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] libgd-2.3.3/src/gddemo.c:169:14: note: Assuming allocation function fails libgd-2.3.3/src/gddemo.c:169:14: note: Assignment 'out=fopen("demoout.gif","wb")', assigned value is 0 libgd-2.3.3/src/gddemo.c:172:10: note: Null pointer dereference libgd-2.3.3/src/gddemo.c:177:10: warning: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] libgd-2.3.3/src/gddemo.c:174:14: note: Assuming allocation function fails libgd-2.3.3/src/gddemo.c:174:14: note: Assignment 'out=fopen("demooutp.png","wb")', assigned value is 0 libgd-2.3.3/src/gddemo.c:177:10: note: Null pointer dereference libgd-2.3.3/src/gd_topal.c:1460:79: style:inconclusive: Function 'gdImageCreatePaletteFromTrueColor' argument 2 names different: declaration 'ditherFlag' definition 'dither'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1045:79: note: Function 'gdImageCreatePaletteFromTrueColor' argument 2 names different: declaration 'ditherFlag' definition 'dither'. libgd-2.3.3/src/gd_topal.c:1460:79: note: Function 'gdImageCreatePaletteFromTrueColor' argument 2 names different: declaration 'ditherFlag' definition 'dither'. libgd-2.3.3/src/gd_topal.c:1487:64: style:inconclusive: Function 'gdImageTrueColorToPalette' argument 2 names different: declaration 'ditherFlag' definition 'dither'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1048:64: note: Function 'gdImageTrueColorToPalette' argument 2 names different: declaration 'ditherFlag' definition 'dither'. libgd-2.3.3/src/gd_topal.c:1487:64: note: Function 'gdImageTrueColorToPalette' argument 2 names different: declaration 'ditherFlag' definition 'dither'. libgd-2.3.3/src/gd_topal.c:331:20: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_topal.c:943:28: style: Parameter 'colorlist' can be declared as const array [constParameter] libgd-2.3.3/src/gd_topal.c:1040:20: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_topal.c:1092:16: style: Variable 'inptr' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_topal.c:1158:7: style: Variable 'colormap0' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_topal.c:1159:7: style: Variable 'colormap1' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_topal.c:1160:7: style: Variable 'colormap2' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_topal.c:1161:7: style: Variable 'error_limit' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gd_topal.c:636:13: style: Variable 'count' is assigned a value that is never used. [unreadVariable] libgd-2.3.3/src/gdhelpers.c:113:33: style:inconclusive: Function 'gdFree' argument 1 names different: declaration 'm' definition 'ptr'. [funcArgNamesDifferent] libgd-2.3.3/src/gd.h:1125:33: note: Function 'gdFree' argument 1 names different: declaration 'm' definition 'ptr'. libgd-2.3.3/src/gdhelpers.c:113:33: note: Function 'gdFree' argument 1 names different: declaration 'm' definition 'ptr'. libgd-2.3.3/src/gdkanji.c:380:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gdkanji.c:437:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gdkanji.c:528:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gdparttopng.c:22:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gdtest.c:38:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gdtopng.c:20:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gdtest.c:200:10: warning: If resource allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfResources] libgd-2.3.3/src/gdtest.c:195:13: note: Assuming allocation function fails libgd-2.3.3/src/gdtest.c:195:13: note: Assignment 'in=fopen(argv[1],"rb")', assigned value is 0 libgd-2.3.3/src/gdtest.c:200:10: note: Null pointer dereference libgd-2.3.3/src/gdtest.c:400:22: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/getopt.c:91:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/getopt.c:58:8: style: Variable 'oli' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/src/gdxpm.c:32:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/gifanimtest.c:31:9: warning: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] libgd-2.3.3/src/gifanimtest.c:16:13: note: Assuming allocation function fails libgd-2.3.3/src/gifanimtest.c:16:13: note: Assignment 'out=fopen("gifanim.gif","wb")', assigned value is 0 libgd-2.3.3/src/gifanimtest.c:31:9: note: Null pointer dereference libgd-2.3.3/src/giftogd2.c:22:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/pngtogd.c:20:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/pngtogd2.c:22:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/testac.c:26:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/testac.c:115:10: warning: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] libgd-2.3.3/src/testac.c:100:14: note: Assuming allocation function fails libgd-2.3.3/src/testac.c:100:14: note: Assignment 'out=fopen(filename,"wb")', assigned value is 0 libgd-2.3.3/src/testac.c:115:10: note: Null pointer dereference libgd-2.3.3/src/testac.c:17:23: style: Parameter 'argv' can be declared as const array [constParameter] libgd-2.3.3/src/testac.c:65:54: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/testtr.c:44:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/wbmp.c:140:56: style:inconclusive: Function 'readwbmp' argument 3 names different: declaration 'wbmp' definition 'return_wbmp'. [funcArgNamesDifferent] libgd-2.3.3/src/wbmp.h:42:56: note: Function 'readwbmp' argument 3 names different: declaration 'wbmp' definition 'return_wbmp'. libgd-2.3.3/src/wbmp.c:140:56: note: Function 'readwbmp' argument 3 names different: declaration 'wbmp' definition 'return_wbmp'. libgd-2.3.3/src/wbmp.c:274:22: style: Parameter 'wbmp' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/src/webpng.c:30:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/webpng.c:48:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libgd-2.3.3/src/webpng.c:85:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/bmp/bug00275.c:17:38: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'fakePutC' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libgd-2.3.3/tests/bmp/bug00275.c:37:13: note: You might need to cast the function pointer here libgd-2.3.3/tests/bmp/bug00275.c:17:38: note: Parameter 'ctx' can be declared as pointer to const libgd-2.3.3/tests/bmp/bug00275.c:22:39: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'fakePutBuf' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libgd-2.3.3/tests/bmp/bug00275.c:38:15: note: You might need to cast the function pointer here libgd-2.3.3/tests/bmp/bug00275.c:22:39: note: Parameter 'ctx' can be declared as pointer to const libgd-2.3.3/src/gdkanji.c:102:8: style: Variable 'lang' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/tests/gd/gd_versiontest.c:11:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_MAJOR_VERSION [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gd2/createimagefromgd2partptr.c:32:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD2_CHUNKSIZE_MIN [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gd2/gd2_im2im.c:31:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD2_CHUNKSIZE_MIN [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gd2/gd2_null.c:12:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD2_FMT_RAW [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdcolormaplookup/gdcolormaplookup.c:15:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num_entries [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagearc/bug00079.c:13:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdAntiAliased [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageclone/style.c:24:64: warning: Division by result of sizeof(). memcmp() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] libgd-2.3.3/tests/gdimagecolorclosest/gdimagecolorclosest.c:28:4: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] libgd-2.3.3/tests/gdimagecolorclosest/gdimagecolorclosest.c:27:4: note: c is assigned libgd-2.3.3/tests/gdimagecolorclosest/gdimagecolorclosest.c:28:4: note: c is overwritten libgd-2.3.3/tests/gdimagecolorclosest/gdimagecolorclosest.c:40:4: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] libgd-2.3.3/tests/gdimagecolorclosest/gdimagecolorclosest.c:38:5: note: c is assigned libgd-2.3.3/tests/gdimagecolorclosest/gdimagecolorclosest.c:40:4: note: c is overwritten libgd-2.3.3/tests/gdimagecolorclosest/gdimagecolorclosest.c:51:4: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] libgd-2.3.3/tests/gdimagecolorclosest/gdimagecolorclosest.c:49:5: note: c is assigned libgd-2.3.3/tests/gdimagecolorclosest/gdimagecolorclosest.c:51:4: note: c is overwritten libgd-2.3.3/tests/gdimagecolordeallocate/gdimagecolordeallocate.c:24:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagecolorexact/gdimagecolorexact.c:28:5: style: Variable 'c1' is reassigned a value before the old one has been used. [redundantAssignment] libgd-2.3.3/tests/gdimagecolorexact/gdimagecolorexact.c:24:5: note: c1 is assigned libgd-2.3.3/tests/gdimagecolorexact/gdimagecolorexact.c:28:5: note: c1 is overwritten libgd-2.3.3/tests/gdimagecolorexact/gdimagecolorexact.c:29:5: style: Variable 'c2' is reassigned a value before the old one has been used. [redundantAssignment] libgd-2.3.3/tests/gdimagecolorexact/gdimagecolorexact.c:25:5: note: c2 is assigned libgd-2.3.3/tests/gdimagecolorexact/gdimagecolorexact.c:29:5: note: c2 is overwritten libgd-2.3.3/tests/gdimagecolorexact/gdimagecolorexact.c:30:5: style: Variable 'c3' is reassigned a value before the old one has been used. [redundantAssignment] libgd-2.3.3/tests/gdimagecolorexact/gdimagecolorexact.c:26:5: note: c3 is assigned libgd-2.3.3/tests/gdimagecolorexact/gdimagecolorexact.c:30:5: note: c3 is overwritten libgd-2.3.3/tests/gdimagecolorreplace/gdimagecolorreplace.c:36:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdAlphaOpaque [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagecolorreplace/gdimagecolorreplace.c:139:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdSilence [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagecolortransparent/gdimagecolortransparent.c:10:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagecompare/gdimagecompare.c:50:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_CMP_INTERLACE [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageconvolution/bug00369.c:18:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdEffectReplace [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagecreate/bug00340.c:17:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_WARNING [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagecrop/bug00432.c:28:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdEffectReplace [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagecrop/bug00485_auto.c:36:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_CROP_SIDES [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagecrop/bug00486.c:31:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_CROP_SIDES [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefile/gdnametest.c:25:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_BICUBIC [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefile/gdnametest.c:108:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_TRUE [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefill/bug00002_2.c:30:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdTiled [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefill/bug00002_3.c:36:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdTiled [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefile/gdnametest.c:51:18: warning: Unnecessary comparison of static strings. [staticStringCompare] libgd-2.3.3/tests/gdimagefill/bug00104_1.c:25:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdTiled [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefilledarc/bug00351.c:18:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdAlphaOpaque [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefilledarc/php_bug43828.c:15:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPie [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefilledellipse/github_bug_00238.c:15:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdEffectNormal [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefilledpolygon/gdimagefilledpolygon1.c:18:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefilledpolygon/bug00100.c:37:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefilledpolygon/gdimagefilledpolygon2.c:18:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefilledpolygon/gdimagefilledpolygon3.c:18:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefilledpolygon/php_bug_64641.c:20:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefilledrectangle/bug00078.c:28:5: style: Variable 'c5' is reassigned a value before the old one has been used. [redundantAssignment] libgd-2.3.3/tests/gdimagefilledrectangle/bug00078.c:15:5: note: c5 is assigned libgd-2.3.3/tests/gdimagefilledrectangle/bug00078.c:28:5: note: c5 is overwritten libgd-2.3.3/tests/gdimageflip/gdimageflip.c:8:42: debug: Function::addArguments found argument 'func' with varid 0. [varid0] libgd-2.3.3/tests/gdimageflip/gdimageflip.c:29:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdImageFlipVertical [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagefilter/gdCopyBlurred.c:44:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_BICUBIC [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageline/bug00315.c:28:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdAntiAliased [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageline/gdImageAALine_thickness.c:16:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdAntiAliased [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageline/gdimageline_aa.c:24:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdAntiAliased [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageline/gdimageline_aa_outofrange.c:13:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdAntiAliased [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageline/gdimageline_bug5.c:35:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdAntiAliased [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageline/github_bug_167.c:27:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdTransparent [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageline/github_bug_167.c:49:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdStyled [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageopenpolygon/gdimageopenpolygon1.c:18:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageopenpolygon/gdimageopenpolygon2.c:18:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimageopenpolygon/gdimageopenpolygon3.c:18:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagepixelate/gdimagepixelate.c:56:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_PIXELATE_UPPERLEFT [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagepolygon/gdimagepolygon1.c:18:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagepolygon/gdimagepolygon2.c:18:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagepolygon/gdimagepolygon3.c:18:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagescale/bug00330.c:19:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_BILINEAR_FIXED [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagescale/bug00329.c:20:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdAlphaOpaque [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagescale/bug_overflow_large_new_size.c:17:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_BELL [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagesetinterpolationmethod/github_bug_00584.c:19:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_SINC [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagesetpixel/bug00186.c:24:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdTiled [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagesetpixel/alpha_blending.c:28:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdEffectReplace [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagesetpixel/gdeffectmultiply.c:12:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdEffectReplace [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagesetpixel/gdeffectoverlay.c:12:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdEffectReplace [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagestringft/bug00615.c:20:11: style: Variable 'res' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/tests/gdimagestringftex/gdimagestringftex_returnfontpathname.c:11:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdFTEX_RETURNFONTPATHNAME [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagetruecolortopalette/bug00307.c:19:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_QUANT_NEUQUANT [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdimagetruecolortopalette/php_bug_67325.c:23:26: error: Dereferencing 'fp' after it is deallocated / released [deallocuse] libgd-2.3.3/tests/gdinterpolatedscale/gdModesAndPalettes.c:18:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_DEFAULT [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdinterpolatedscale/gdTrivialResize.c:19:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_BILINEAR_FIXED [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdtiled/bug00032.c:9:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdSilence [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdtransformaffineboundingbox/github_bug_00221.c:24:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_TRUE [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdtransformaffinecopy/github_bug_00583.c:26:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_FALSE [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdtransformaffinecopy/github_bug_00585.c:23:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_CATMULLROM [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdtransformaffinecopy/github_bug_00596.c:33:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_FALSE [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdtest/gdtest.c:414:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDTEST_TOP_DIR [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdtest/gdtest.c:499:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdAlphaMax [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdtest/gdtest.c:699:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdtest/gdtest.c:715:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gif/bug00005.c:8:6: style: Variable 'valid' can be declared as const array [constVariable] libgd-2.3.3/tests/gdtest/gdtest.c:117:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] libgd-2.3.3/tests/gdtest/gdtest.c:329:4: error: Memory leak: tmpdir [memleak] libgd-2.3.3/tests/gdtest/gdtest.c:333:2: error: Memory leak: tmpdir [memleak] libgd-2.3.3/tests/gif/bug00006.c:31:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_QUANT_JQUANT [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/gdtest/gdtest.c:70:8: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libgd-2.3.3/tests/gdtest/gdtest.c:711:70: style:inconclusive: Function '_gdTestErrorMsg' argument 3 names different: declaration 'string' definition 'format'. [funcArgNamesDifferent] libgd-2.3.3/tests/gdtest/gdtest.h:62:70: note: Function '_gdTestErrorMsg' argument 3 names different: declaration 'string' definition 'format'. libgd-2.3.3/tests/gdtest/gdtest.c:711:70: note: Function '_gdTestErrorMsg' argument 3 names different: declaration 'string' definition 'format'. libgd-2.3.3/tests/gdtest/gdtest.c:83:23: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] libgd-2.3.3/tests/gdtest/gdtest.c:108:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/tests/gdtest/gdtest.c:447:36: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] libgd-2.3.3/tests/gdtest/gdtest.c:461:14: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] libgd-2.3.3/tests/gif/bug00499.c:37:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdDisposalNone [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/heif/heif_im2im.c:23:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable heif_compression_HEVC [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/heif/heif_read.c:17:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable heif_compression_HEVC [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/jpeg/bug00338.c:24:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_WARNING [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/jpeg/jpeg_empty_file.c:11:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdSilence [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/png/bug00033.c:11:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdSilence [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/png/bug00086.c:14:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdSilence [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/png/bug00193.c:34:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdSilence [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/png/bug00338.c:24:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_WARNING [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/png/bug00381_1.c:19:11: style: Variable 'data' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/tests/png/bug00381_2.c:20:11: style: Variable 'data' can be declared as pointer to const [constVariablePointer] libgd-2.3.3/tests/png/png_null.c:8:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdSilence [valueFlowBailoutIncompleteVar] libgd-2.3.3/tests/tga/heap_overflow.c:46:8: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libgd-2.3.3/tests/tga/heap_overflow.c:43:15: note: Assuming allocation function fails libgd-2.3.3/tests/tga/heap_overflow.c:43:15: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 libgd-2.3.3/tests/tga/heap_overflow.c:46:8: note: Null pointer dereference libgd-2.3.3/tests/tga/heap_overflow.c:47:19: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libgd-2.3.3/tests/tga/heap_overflow.c:43:15: note: Assuming allocation function fails libgd-2.3.3/tests/tga/heap_overflow.c:43:15: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 libgd-2.3.3/tests/tga/heap_overflow.c:47:19: note: Null pointer dereference libgd-2.3.3/tests/tga/heap_overflow.c:48:8: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libgd-2.3.3/tests/tga/heap_overflow.c:43:15: note: Assuming allocation function fails libgd-2.3.3/tests/tga/heap_overflow.c:43:15: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 libgd-2.3.3/tests/tga/heap_overflow.c:48:8: note: Null pointer dereference libgd-2.3.3/tests/tga/heap_overflow.c:52:59: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libgd-2.3.3/tests/tga/heap_overflow.c:43:15: note: Assuming allocation function fails libgd-2.3.3/tests/tga/heap_overflow.c:43:15: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 libgd-2.3.3/tests/tga/heap_overflow.c:52:59: note: Null pointer dereference libgd-2.3.3/tests/tga/heap_overflow.c:55:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libgd-2.3.3/tests/tga/heap_overflow.c:43:15: note: Assuming allocation function fails libgd-2.3.3/tests/tga/heap_overflow.c:43:15: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 libgd-2.3.3/tests/tga/heap_overflow.c:55:12: note: Null pointer dereference libgd-2.3.3/tests/tiff/tiff_invalid_read.c:48:8: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libgd-2.3.3/tests/tiff/tiff_invalid_read.c:45:15: note: Assuming allocation function fails libgd-2.3.3/tests/tiff/tiff_invalid_read.c:45:15: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 libgd-2.3.3/tests/tiff/tiff_invalid_read.c:48:8: note: Null pointer dereference libgd-2.3.3/tests/tiff/tiff_invalid_read.c:49:19: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libgd-2.3.3/tests/tiff/tiff_invalid_read.c:45:15: note: Assuming allocation function fails libgd-2.3.3/tests/tiff/tiff_invalid_read.c:45:15: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 libgd-2.3.3/tests/tiff/tiff_invalid_read.c:49:19: note: Null pointer dereference libgd-2.3.3/tests/tiff/tiff_invalid_read.c:50:8: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libgd-2.3.3/tests/tiff/tiff_invalid_read.c:45:15: note: Assuming allocation function fails libgd-2.3.3/tests/tiff/tiff_invalid_read.c:45:15: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 libgd-2.3.3/tests/tiff/tiff_invalid_read.c:50:8: note: Null pointer dereference libgd-2.3.3/tests/tiff/tiff_invalid_read.c:54:59: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libgd-2.3.3/tests/tiff/tiff_invalid_read.c:45:15: note: Assuming allocation function fails libgd-2.3.3/tests/tiff/tiff_invalid_read.c:45:15: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 libgd-2.3.3/tests/tiff/tiff_invalid_read.c:54:59: note: Null pointer dereference libgd-2.3.3/tests/tiff/tiff_invalid_read.c:57:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libgd-2.3.3/tests/tiff/tiff_invalid_read.c:45:15: note: Assuming allocation function fails libgd-2.3.3/tests/tiff/tiff_invalid_read.c:45:15: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 libgd-2.3.3/tests/tiff/tiff_invalid_read.c:57:12: note: Null pointer dereference libgd-2.3.3/tests/webp/webp_ll_im2im.c:27:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdWebpLossless [valueFlowBailoutIncompleteVar] diff: head libgd-2.3.3/src/msinttypes/inttypes.h:33:2: error: #error "Use this header only with Microsoft Visual C++ compilers!" [preprocessorErrorDirective] DONE