2025-05-05 16:00 ftp://ftp.de.debian.org/debian/pool/main/libc/libcaca/libcaca_0.99.beta20.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --library=cppunit --library=opengl --library=motif --library=ruby --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-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: fcc0493 (2025-05-05 13:08:11 +0200) count: 395 391 elapsed-time: 15.7 15.3 head-timing-info: old-timing-info: head results: libcaca-0.99.beta20/caca-php/php_caca.c:424:31: error: There is an unknown macro here somewhere. Configuration is required. If ZEND_NUM_ARGS is a macro then please configure it. [unknownMacro] libcaca-0.99.beta20/caca/attr.c:240:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/attr.c:184:25: style: Variable 'curchar' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/caca/caca.c:111:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/caca.c:223:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/caca.c:280:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/caca.c:289:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/caca.c:309:26: style: Condition 'caca_select_driver(dp,driver)' is always true [knownConditionTrueFalse] libcaca-0.99.beta20/caca/caca.c:309:26: note: Calling function 'caca_select_driver' returns -1 libcaca-0.99.beta20/caca/caca.c:309:26: note: Condition 'caca_select_driver(dp,driver)' is always true libcaca-0.99.beta20/caca/caca.c:265:49: style: Parameter 'dp' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/caca/caca.c:381:47: style: Parameter 'dp' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/caca/caca.c:383:21: style: Variable 'var' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/caca/caca.c:383:17: style: Variable 'var' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/caca/caca0.c:79:0: error: failed to expand 'caca_get_event', Wrong number of parameters for macro 'caca_get_event'. [preprocessorErrorDirective] libcaca-0.99.beta20/caca/caca0.c:79:11: error: failed to expand 'caca_get_event', Wrong number of parameters for macro 'caca_get_event'. [preprocessorErrorDirective] libcaca-0.99.beta20/caca/caca_conio.c:502:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/caca_conio.c:138:29: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/caca/caca_conio.c:246:72: style: Parameter 'destin' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/caca/caca_conio.c:256:58: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/caca/caca_conio.c:402:72: style: Parameter 'destin' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/caca/canvas.c:61:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/canvas.c:138:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/canvas.c:173:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/canvas.c:218:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/canvas.c:316:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/canvas.c:358:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/canvas.c:374:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOVERFLOW [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/canvas.c:168:76: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/caca/codec/export.c:1097:7: error: There is an unknown macro here somewhere. Configuration is required. If caca_export_memory is a macro then please configure it. [unknownMacro] libcaca-0.99.beta20/caca/codec/import.c:119:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/codec/import.c:174:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/codec/import.c:380:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/codec/import.c:170:9: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] libcaca-0.99.beta20/caca/codec/import.c:338:18: style: Variable 'duration' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/caca/codec/import.c:339:14: style: Variable 'attr' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/caca/codec/import.c:340:11: style: Variable 'x' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/caca/codec/import.c:341:11: style: Variable 'y' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/caca/codec/text.c:105:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/codec/text.c:535:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_MAGIC_FULLWIDTH [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/codec/text.c:613:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_LIGHTGRAY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/codec/text.c:702:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_MAGIC_FULLWIDTH [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/codec/text.c:885:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_TRANSPARENT [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/codec/text.c:578:5: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] libcaca-0.99.beta20/caca/codec/text.c:658:5: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] libcaca-0.99.beta20/caca/codec/text.c:765:5: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] libcaca-0.99.beta20/caca/codec/text.c:383:20: warning: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:382:28: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:382:28: note: Assignment 'string=malloc(final-(semicolon+1)+1)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:383:20: note: Null pointer dereference libcaca-0.99.beta20/caca/codec/text.c:384:13: warning: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:382:28: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:382:28: note: Assignment 'string=malloc(final-(semicolon+1)+1)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:384:13: note: Null pointer dereference libcaca-0.99.beta20/caca/codec/text.c:576:62: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:519:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:519:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:521:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:576:62: note: Null pointer subtraction libcaca-0.99.beta20/caca/codec/text.c:577:30: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:519:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:519:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:521:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:577:30: note: Null pointer subtraction libcaca-0.99.beta20/caca/codec/text.c:656:62: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:602:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:602:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:604:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:656:62: note: Null pointer subtraction libcaca-0.99.beta20/caca/codec/text.c:657:30: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:602:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:602:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:604:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:657:30: note: Null pointer subtraction libcaca-0.99.beta20/caca/codec/text.c:763:62: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:686:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:686:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:688:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:763:62: note: Null pointer subtraction libcaca-0.99.beta20/caca/codec/text.c:764:30: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:686:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:686:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:688:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:764:30: note: Null pointer subtraction libcaca-0.99.beta20/caca/codec/text.c:523:19: style: Variable 'lineattr' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/caca/codec/text.c:524:19: style: Variable 'linechar' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/caca/codec/text.c:607:19: style: Variable 'linechar' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/caca/codec/text.c:690:19: style: Variable 'lineattr' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/caca/codec/text.c:691:19: style: Variable 'linechar' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/caca/dirty.c:73:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/dirty.c:130:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/dirty.c:182:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/dirty.c:236:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/dirty.c:98:46: style: Parameter 'cv' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/caca/dirty.c:219:43: style: Parameter 'cv' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/caca/dither.c:271:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/dither.c:380:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/dither.c:469:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/dither.c:558:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/dither.c:667:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/dither.c:761:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/dither.c:874:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/dither.c:967:12: warning: If memory allocation fails, then there is a possible null pointer dereference: floyd_steinberg [nullPointerOutOfMemory] libcaca-0.99.beta20/caca/dither.c:966:29: note: Assuming allocation function fails libcaca-0.99.beta20/caca/dither.c:966:29: note: Assignment 'floyd_steinberg=malloc(3*(fs_length+2)*sizeof(int))', assigned value is 0 libcaca-0.99.beta20/caca/dither.c:967:12: note: Null pointer dereference libcaca-0.99.beta20/caca/dither.c:968:28: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/dither.c:966:29: note: Assuming allocation function fails libcaca-0.99.beta20/caca/dither.c:966:29: note: Assignment 'floyd_steinberg=malloc(3*(fs_length+2)*sizeof(int))', assigned value is 0 libcaca-0.99.beta20/caca/dither.c:968:28: note: Null pointer addition libcaca-0.99.beta20/caca/dither.c:373:39: style:inconclusive: Function 'caca_set_dither_palette' argument 2 names different: declaration 'r' definition 'red'. [funcArgNamesDifferent] libcaca-0.99.beta20/caca/caca.h:391:48: note: Function 'caca_set_dither_palette' argument 2 names different: declaration 'r' definition 'red'. libcaca-0.99.beta20/caca/dither.c:373:39: note: Function 'caca_set_dither_palette' argument 2 names different: declaration 'r' definition 'red'. libcaca-0.99.beta20/caca/dither.c:373:55: style:inconclusive: Function 'caca_set_dither_palette' argument 3 names different: declaration 'g' definition 'green'. [funcArgNamesDifferent] libcaca-0.99.beta20/caca/caca.h:391:62: note: Function 'caca_set_dither_palette' argument 3 names different: declaration 'g' definition 'green'. libcaca-0.99.beta20/caca/dither.c:373:55: note: Function 'caca_set_dither_palette' argument 3 names different: declaration 'g' definition 'green'. libcaca-0.99.beta20/caca/dither.c:374:39: style:inconclusive: Function 'caca_set_dither_palette' argument 4 names different: declaration 'b' definition 'blue'. [funcArgNamesDifferent] libcaca-0.99.beta20/caca/caca.h:392:48: note: Function 'caca_set_dither_palette' argument 4 names different: declaration 'b' definition 'blue'. libcaca-0.99.beta20/caca/dither.c:374:39: note: Function 'caca_set_dither_palette' argument 4 names different: declaration 'b' definition 'blue'. libcaca-0.99.beta20/caca/dither.c:374:56: style:inconclusive: Function 'caca_set_dither_palette' argument 5 names different: declaration 'a' definition 'alpha'. [funcArgNamesDifferent] libcaca-0.99.beta20/caca/caca.h:392:62: note: Function 'caca_set_dither_palette' argument 5 names different: declaration 'a' definition 'alpha'. libcaca-0.99.beta20/caca/dither.c:374:56: note: Function 'caca_set_dither_palette' argument 5 names different: declaration 'a' definition 'alpha'. libcaca-0.99.beta20/caca/dither.c:373:39: style: Parameter 'red' can be declared as const array [constParameter] libcaca-0.99.beta20/caca/dither.c:373:55: style: Parameter 'green' can be declared as const array [constParameter] libcaca-0.99.beta20/caca/dither.c:374:39: style: Parameter 'blue' can be declared as const array [constParameter] libcaca-0.99.beta20/caca/dither.c:374:56: style: Parameter 'alpha' can be declared as const array [constParameter] libcaca-0.99.beta20/caca/driver/null.c:63:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_EVENT_NONE [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/driver/null.c:73:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_DRIVER_NULL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/driver/null.c:26:47: style: Parameter 'dp' can be declared as pointer to const. However it seems that 'null_init_graphics' is a callback function, if 'dp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcaca-0.99.beta20/caca/driver/null.c:76:29: note: You might need to cast the function pointer here libcaca-0.99.beta20/caca/driver/null.c:26:47: note: Parameter 'dp' can be declared as pointer to const libcaca-0.99.beta20/caca/driver/null.c:31:46: style: Parameter 'dp' can be declared as pointer to const. However it seems that 'null_end_graphics' is a callback function, if 'dp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcaca-0.99.beta20/caca/driver/null.c:77:28: note: You might need to cast the function pointer here libcaca-0.99.beta20/caca/driver/null.c:31:46: note: Parameter 'dp' can be declared as pointer to const libcaca-0.99.beta20/caca/driver/null.c:36:51: style: Parameter 'dp' can be declared as pointer to const. However it seems that 'null_set_display_title' is a callback function, if 'dp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcaca-0.99.beta20/caca/driver/null.c:78:33: note: You might need to cast the function pointer here libcaca-0.99.beta20/caca/driver/null.c:36:51: note: Parameter 'dp' can be declared as pointer to const libcaca-0.99.beta20/caca/driver/null.c:51:42: style: Parameter 'dp' can be declared as pointer to const. However it seems that 'null_display' is a callback function, if 'dp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcaca-0.99.beta20/caca/driver/null.c:81:23: note: You might need to cast the function pointer here libcaca-0.99.beta20/caca/driver/null.c:51:42: note: Parameter 'dp' can be declared as pointer to const libcaca-0.99.beta20/caca/driver/null.c:56:48: style: Parameter 'dp' can be declared as pointer to const. However it seems that 'null_handle_resize' is a callback function, if 'dp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcaca-0.99.beta20/caca/driver/null.c:82:29: note: You might need to cast the function pointer here libcaca-0.99.beta20/caca/driver/null.c:56:48: note: Parameter 'dp' can be declared as pointer to const libcaca-0.99.beta20/caca/driver/raw.c:74:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/driver/raw.c:86:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_EVENT_NONE [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/driver/raw.c:96:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_DRIVER_RAW [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/driver/raw.c:46:45: style: Parameter 'dp' can be declared as pointer to const. However it seems that 'raw_end_graphics' is a callback function, if 'dp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcaca-0.99.beta20/caca/driver/raw.c:100:28: note: You might need to cast the function pointer here libcaca-0.99.beta20/caca/driver/raw.c:46:45: note: Parameter 'dp' can be declared as pointer to const libcaca-0.99.beta20/caca/driver/raw.c:51:50: style: Parameter 'dp' can be declared as pointer to const. However it seems that 'raw_set_display_title' is a callback function, if 'dp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcaca-0.99.beta20/caca/driver/raw.c:101:33: note: You might need to cast the function pointer here libcaca-0.99.beta20/caca/driver/raw.c:51:50: note: Parameter 'dp' can be declared as pointer to const libcaca-0.99.beta20/caca/driver/raw.c:79:47: style: Parameter 'dp' can be declared as pointer to const. However it seems that 'raw_handle_resize' is a callback function, if 'dp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcaca-0.99.beta20/caca/driver/raw.c:105:29: note: You might need to cast the function pointer here libcaca-0.99.beta20/caca/driver/raw.c:79:47: note: Parameter 'dp' can be declared as pointer to const libcaca-0.99.beta20/caca/driver/raw.c:31:17: style: Unused variable: geometry [unusedVariable] libcaca-0.99.beta20/caca/figfont.c:90:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_DEFAULT [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/figfont.c:129:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_DEFAULT [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/figfont.c:193:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_OVERLAP [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/figfont.c:323:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/figfont.c:543:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H_NONE [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/figfont.c:436:24: style:inconclusive: Redundant condition: The condition '!buf[0]' is redundant since 'buf[0] < '0'' is sufficient. [redundantCondition] libcaca-0.99.beta20/caca/figfont.c:367:8: warning:inconclusive: Width 6 given in format string (no. 1) is smaller than destination buffer 'hardblank[10]'. [invalidScanfFormatWidth_smaller] libcaca-0.99.beta20/caca/figfont.c:367:8: warning: %u in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] libcaca-0.99.beta20/caca/figfont.c:367:8: warning: %u in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] libcaca-0.99.beta20/caca/figfont.c:367:8: warning: %u in format string (no. 4) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] libcaca-0.99.beta20/caca/figfont.c:367:8: warning: %u in format string (no. 6) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] libcaca-0.99.beta20/caca/figfont.c:367:8: warning: %u in format string (no. 7) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] libcaca-0.99.beta20/caca/figfont.c:367:8: warning: %u in format string (no. 8) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] libcaca-0.99.beta20/caca/figfont.c:367:8: warning: %u in format string (no. 9) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] libcaca-0.99.beta20/caca/figfont.c:455:17: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] libcaca-0.99.beta20/caca/file.c:133:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/file.c:72:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfMemory] libcaca-0.99.beta20/caca/file.c:70:29: note: Assuming allocation function fails libcaca-0.99.beta20/caca/file.c:70:29: note: Assignment 'fp=malloc(sizeof(*fp))', assigned value is 0 libcaca-0.99.beta20/caca/file.c:72:5: note: Null pointer dereference libcaca-0.99.beta20/caca/file.c:128:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfMemory] libcaca-0.99.beta20/caca/file.c:70:29: note: Assuming allocation function fails libcaca-0.99.beta20/caca/file.c:70:29: note: Assignment 'fp=malloc(sizeof(*fp))', assigned value is 0 libcaca-0.99.beta20/caca/file.c:128:5: note: Null pointer dereference libcaca-0.99.beta20/caca/file.c:130:9: warning: If memory allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfMemory] libcaca-0.99.beta20/caca/file.c:70:29: note: Assuming allocation function fails libcaca-0.99.beta20/caca/file.c:70:29: note: Assignment 'fp=malloc(sizeof(*fp))', assigned value is 0 libcaca-0.99.beta20/caca/file.c:130:9: note: Null pointer dereference libcaca-0.99.beta20/caca/font.c:123:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/font.c:423:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/frame.c:61:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/frame.c:114:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/frame.c:211:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/getopt.c:126:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/getopt.c:62:15: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/caca/graphics.c:45:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOSYS [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/graphics.c:104:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/graphics.c:222:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOSYS [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/graphics.c:247:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOSYS [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/graphics.c:284:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/line.c:220:41: style: Parameter 'cv' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/caca/line.c:239:61: style: Parameter 's' can be declared as pointer to const. However it seems that 'draw_solid_line' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcaca-0.99.beta20/caca/line.c:91:14: note: You might need to cast the function pointer here libcaca-0.99.beta20/caca/line.c:239:61: note: Parameter 's' can be declared as pointer to const libcaca-0.99.beta20/caca/line.c:301:60: style: Parameter 's' can be declared as pointer to const. However it seems that 'draw_thin_line' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcaca-0.99.beta20/caca/line.c:149:14: note: You might need to cast the function pointer here libcaca-0.99.beta20/caca/line.c:301:60: note: Parameter 's' can be declared as pointer to const libcaca-0.99.beta20/caca/string.c:342:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/string.c:466:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/string.c:572:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/string.c:359:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] libcaca-0.99.beta20/caca/string.c:349:21: note: Assuming allocation function fails libcaca-0.99.beta20/caca/string.c:349:21: note: Assignment 'buf=malloc(bufsize)', assigned value is 0 libcaca-0.99.beta20/caca/string.c:359:5: note: Null pointer dereference libcaca-0.99.beta20/caca/t/bug-setlocale.c:44:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/t/canvas.cpp:35:10: performance:inconclusive: Either there is a missing 'override', or the member function 'CanvasTest::setUp' can be static. [functionStatic] libcaca-0.99.beta20/caca/t/canvas.cpp:37:10: performance:inconclusive: Either there is a missing 'override', or the member function 'CanvasTest::tearDown' can be static. [functionStatic] libcaca-0.99.beta20/caca/t/dirty.cpp:36:10: performance:inconclusive: Either there is a missing 'override', or the member function 'DirtyTest::setUp' can be static. [functionStatic] libcaca-0.99.beta20/caca/t/dirty.cpp:38:10: performance:inconclusive: Either there is a missing 'override', or the member function 'DirtyTest::tearDown' can be static. [functionStatic] libcaca-0.99.beta20/caca/t/driver.cpp:31:10: performance:inconclusive: Either there is a missing 'override', or the member function 'DriverTest::setUp' can be static. [functionStatic] libcaca-0.99.beta20/caca/t/driver.cpp:33:10: performance:inconclusive: Either there is a missing 'override', or the member function 'DriverTest::tearDown' can be static. [functionStatic] libcaca-0.99.beta20/caca/t/export.cpp:31:10: performance:inconclusive: Either there is a missing 'override', or the member function 'ExportTest::setUp' can be static. [functionStatic] libcaca-0.99.beta20/caca/t/export.cpp:33:10: performance:inconclusive: Either there is a missing 'override', or the member function 'ExportTest::tearDown' can be static. [functionStatic] libcaca-0.99.beta20/caca/t/simple.c:40:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/time.c:82:12: error: Uninitialized variable: new_sec [uninitvar] libcaca-0.99.beta20/caca/time.c:87:22: error: Uninitialized variable: new_usec [uninitvar] libcaca-0.99.beta20/caca/time.c:92:23: error: Uninitialized variable: new_sec [legacyUninitvar] libcaca-0.99.beta20/caca/time.c:93:24: error: Uninitialized variable: new_usec [legacyUninitvar] libcaca-0.99.beta20/caca/transform.c:262:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/transform.c:382:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/transform.c:500:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/transform.c:593:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/caca/transform.c:187:29: warning: Either the condition '!cbegin' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] libcaca-0.99.beta20/caca/transform.c:192:8: note: Assuming that condition '!cbegin' is not redundant libcaca-0.99.beta20/caca/transform.c:187:29: note: Null pointer addition libcaca-0.99.beta20/caca/triangle.c:293:8: style: Variable 'xb' is reassigned a value before the old one has been used. [redundantAssignment] libcaca-0.99.beta20/caca/triangle.c:283:9: note: xb is assigned libcaca-0.99.beta20/caca/triangle.c:293:8: note: xb is overwritten libcaca-0.99.beta20/caca/triangle.c:362:37: style: Parameter 'coords' can be declared as const array [constParameter] libcaca-0.99.beta20/caca/triangle.c:363:60: style: Parameter 'uv' can be declared as const array [constParameter] libcaca-0.99.beta20/caca/triangle.c:284:9: style: Variable 'sl12' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/caca/triangle.c:287:9: style: Variable 'usl12' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/caca/triangle.c:288:9: style: Variable 'vsl12' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/cxx/caca++.cpp:113:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/cxx/caca++.cpp:29:19: performance:inconclusive: Technically the member function 'Charset::utf8ToUtf32' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:40:14: note: Technically the member function 'Charset::utf8ToUtf32' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:29:19: note: Technically the member function 'Charset::utf8ToUtf32' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:33:17: performance:inconclusive: Technically the member function 'Charset::utf32ToUtf8' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:41:12: note: Technically the member function 'Charset::utf32ToUtf8' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:33:17: note: Technically the member function 'Charset::utf32ToUtf8' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:37:18: performance:inconclusive: Technically the member function 'Charset::utf32ToCp437' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:42:13: note: Technically the member function 'Charset::utf32ToCp437' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:37:18: note: Technically the member function 'Charset::utf32ToCp437' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:41:19: performance:inconclusive: Technically the member function 'Charset::cp437ToUtf32' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:43:14: note: Technically the member function 'Charset::cp437ToUtf32' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:41:19: note: Technically the member function 'Charset::cp437ToUtf32' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:398:27: performance:inconclusive: Technically the member function 'Font::getList' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:52:25: note: Technically the member function 'Font::getList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:398:27: note: Technically the member function 'Font::getList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:293:29: performance:inconclusive: Technically the member function 'Canvas::getImportList' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:140:26: note: Technically the member function 'Canvas::getImportList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:293:29: note: Technically the member function 'Canvas::getImportList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:308:29: performance:inconclusive: Technically the member function 'Canvas::getExportList' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:143:26: note: Technically the member function 'Canvas::getExportList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:308:29: note: Technically the member function 'Canvas::getExportList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.h:182:5: style: Class 'Caca' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libcaca-0.99.beta20/cxx/caca++.cpp:71:35: style:inconclusive: Function 'setSize' argument 1 names different: declaration 'w' definition 'width'. [funcArgNamesDifferent] libcaca-0.99.beta20/cxx/caca++.h:99:31: note: Function 'setSize' argument 1 names different: declaration 'w' definition 'width'. libcaca-0.99.beta20/cxx/caca++.cpp:71:35: note: Function 'setSize' argument 1 names different: declaration 'w' definition 'width'. libcaca-0.99.beta20/cxx/caca++.cpp:71:55: style:inconclusive: Function 'setSize' argument 2 names different: declaration 'h' definition 'height'. [funcArgNamesDifferent] libcaca-0.99.beta20/cxx/caca++.h:99:47: note: Function 'setSize' argument 2 names different: declaration 'h' definition 'height'. libcaca-0.99.beta20/cxx/caca++.cpp:71:55: note: Function 'setSize' argument 2 names different: declaration 'h' definition 'height'. libcaca-0.99.beta20/cxx/cxxtest.cpp:50:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/canvas.c:29:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/colors.c:57:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_BOLD [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/conio-snake.cpp:83:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YELLOW [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/conio-snake.cpp:171:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIGHTBLUE [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/conio-snake.cpp:189:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIGHTBLUE [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/conio-snake.cpp:195:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIGHTCYAN [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/conio.c:622:3: warning: Return value of function rand() is not used. [ignoredReturnValue] libcaca-0.99.beta20/examples/conio.c:101:33: style: Parameter 'xsquare' can be declared as const array [constParameter] libcaca-0.99.beta20/examples/conio.c:145:28: style: Parameter 'xsquare' can be declared as const array [constParameter] libcaca-0.99.beta20/examples/conio.c:323:13: style: Parameter 'n' can be declared as const array [constParameter] libcaca-0.99.beta20/examples/conio.c:407:23: style: Parameter 'xsquare' can be declared as const array [constParameter] libcaca-0.99.beta20/examples/demo.c:90:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_EVENT_ANY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo.c:391:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_BLACK [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo.c:418:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_BLACK [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo.c:449:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_BLACK [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo.c:479:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_BLACK [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo.c:566:42: style:inconclusive: Function 'draw_circle' argument 2 names different: declaration 'xo' definition 'x'. [funcArgNamesDifferent] libcaca-0.99.beta20/examples/demo.c:523:42: note: Function 'draw_circle' argument 2 names different: declaration 'xo' definition 'x'. libcaca-0.99.beta20/examples/demo.c:566:42: note: Function 'draw_circle' argument 2 names different: declaration 'xo' definition 'x'. libcaca-0.99.beta20/examples/demo.c:566:49: style:inconclusive: Function 'draw_circle' argument 3 names different: declaration 'yo' definition 'y'. [funcArgNamesDifferent] libcaca-0.99.beta20/examples/demo.c:523:50: note: Function 'draw_circle' argument 3 names different: declaration 'yo' definition 'y'. libcaca-0.99.beta20/examples/demo.c:566:49: note: Function 'draw_circle' argument 3 names different: declaration 'yo' definition 'y'. libcaca-0.99.beta20/examples/demo.c:188:19: style: Variable 'mouse' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/examples/demo.c:188:26: style: Variable 'menu' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/examples/demo0.c:79:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_EVENT_ANY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo0.c:224:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_DITHERING_NONE [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo0.c:352:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo0.c:385:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_COLOR_BLACK [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo0.c:412:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_COLOR_BLACK [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo0.c:443:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_COLOR_BLACK [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo0.c:473:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_COLOR_BLACK [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/demo0.c:560:42: style:inconclusive: Function 'draw_circle' argument 2 names different: declaration 'xo' definition 'x'. [funcArgNamesDifferent] libcaca-0.99.beta20/examples/demo0.c:517:42: note: Function 'draw_circle' argument 2 names different: declaration 'xo' definition 'x'. libcaca-0.99.beta20/examples/demo0.c:560:42: note: Function 'draw_circle' argument 2 names different: declaration 'xo' definition 'x'. libcaca-0.99.beta20/examples/demo0.c:560:49: style:inconclusive: Function 'draw_circle' argument 3 names different: declaration 'yo' definition 'y'. [funcArgNamesDifferent] libcaca-0.99.beta20/examples/demo0.c:517:50: note: Function 'draw_circle' argument 3 names different: declaration 'yo' definition 'y'. libcaca-0.99.beta20/examples/demo0.c:560:49: note: Function 'draw_circle' argument 3 names different: declaration 'yo' definition 'y'. libcaca-0.99.beta20/examples/demo0.c:170:19: style: Variable 'mouse' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/examples/demo0.c:170:26: style: Variable 'menu' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/examples/dithering.c:126:16: style: Redundant initialization for 'ch'. The initialized value is overwritten before it is read. [redundantInitialization] libcaca-0.99.beta20/examples/dithering.c:59:17: note: ch is initialized libcaca-0.99.beta20/examples/dithering.c:126:16: note: ch is overwritten libcaca-0.99.beta20/examples/event.c:57:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable caca_event_t [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/event.c:58:12: warning: If memory allocation fails, then there is a possible null pointer dereference: events [nullPointerOutOfMemory] libcaca-0.99.beta20/examples/event.c:57:20: note: Assuming allocation function fails libcaca-0.99.beta20/examples/event.c:57:20: note: Assignment 'events=malloc(h*sizeof(caca_event_t))', assigned value is 0 libcaca-0.99.beta20/examples/event.c:58:12: note: Null pointer dereference libcaca-0.99.beta20/examples/export.c:34:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable p [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/figfont.c:31:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/font.c:58:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/font2tga.c:76:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/frames.c:39:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/gamma.c:66:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_EVENT_KEY_PRESS [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/gamma.c:52:54: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libcaca-0.99.beta20/examples/gamma.c:53:40: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libcaca-0.99.beta20/examples/gamma.c:54:40: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libcaca-0.99.beta20/examples/import.c:29:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/input.c:70:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_MAGIC_FULLWIDTH [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/mouse.c:50:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_EVENT_ANY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/spritedit.c:82:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/swallow.c:25:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/swallow.c:68:29: style: Variable 'bytes[i]' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/examples/text.c:69:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_LIGHTBLUE [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/trifiller.c:65:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/examples/trifiller.c:40:11: style: Variable 'square' can be declared as const array [constVariable] libcaca-0.99.beta20/java/org_zoy_caca_Canvas.c:377:14: style: Variable 'size' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/java/org_zoy_caca_Canvas.c:377:9: style: Variable 'size' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/java/org_zoy_caca_Display.c:158:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable caca_event_t [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/kernel/boot/idt.c:147:5: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'idtr'. [invalidPrintfArgType_uint] libcaca-0.99.beta20/kernel/boot/idt.c:144:12: error: Null pointer dereference [nullPointer] libcaca-0.99.beta20/kernel/boot/interruptions.c:124:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ticks [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/kernel/boot/stage2.c:34:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sti [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/kernel/drivers/floppy.c:26:11: style: Variable 'drive_type' can be declared as const array [constVariable] libcaca-0.99.beta20/kernel/drivers/floppy.c:50:44: style: Parameter 'floppy_info' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/drivers/processor.c:27:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/kernel/drivers/processor.c:81:50: style: Parameter 'processor_info' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/drivers/processor.h:84:28: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] libcaca-0.99.beta20/kernel/klibc.c:145:12: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] libcaca-0.99.beta20/kernel/klibc.c:144:15: note: Assuming allocation function fails libcaca-0.99.beta20/kernel/klibc.c:144:15: note: Assignment 'p=malloc(size)', assigned value is 0 libcaca-0.99.beta20/kernel/klibc.c:145:12: note: Null pointer dereference libcaca-0.99.beta20/kernel/klibc.c:145:15: warning: Either the condition '!ptr' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] libcaca-0.99.beta20/kernel/klibc.c:135:9: note: Assuming that condition '!ptr' is not redundant libcaca-0.99.beta20/kernel/klibc.c:145:15: note: Null pointer dereference libcaca-0.99.beta20/kernel/klibc.c:275:12: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] libcaca-0.99.beta20/kernel/klibc.c:274:17: note: Assuming allocation function fails libcaca-0.99.beta20/kernel/klibc.c:274:17: note: Assignment 'new=malloc(len+1)', assigned value is 0 libcaca-0.99.beta20/kernel/klibc.c:275:12: note: Null pointer dereference libcaca-0.99.beta20/kernel/klibc.c:514:35: style: Same expression on both sides of '-' because 'ticks' and 'start' represent the same value. [duplicateExpression] libcaca-0.99.beta20/kernel/klibc.c:509:17: note: 'start' is assigned value 'ticks' here. libcaca-0.99.beta20/kernel/klibc.c:514:35: note: Same expression on both sides of '-' because 'ticks' and 'start' represent the same value. libcaca-0.99.beta20/kernel/klibc.c:255:24: style:inconclusive: Function 'memcmp' argument 1 names different: declaration 's1' definition '_s1'. [funcArgNamesDifferent] libcaca-0.99.beta20/kernel/klibc.h:84:24: note: Function 'memcmp' argument 1 names different: declaration 's1' definition '_s1'. libcaca-0.99.beta20/kernel/klibc.c:255:24: note: Function 'memcmp' argument 1 names different: declaration 's1' definition '_s1'. libcaca-0.99.beta20/kernel/klibc.c:255:41: style:inconclusive: Function 'memcmp' argument 2 names different: declaration 's2' definition '_s2'. [funcArgNamesDifferent] libcaca-0.99.beta20/kernel/klibc.h:84:40: note: Function 'memcmp' argument 2 names different: declaration 's2' definition '_s2'. libcaca-0.99.beta20/kernel/klibc.c:255:41: note: Function 'memcmp' argument 2 names different: declaration 's2' definition '_s2'. libcaca-0.99.beta20/kernel/klibc.c:327:24: style:inconclusive: Function 'printf' argument 1 names different: declaration 'format' definition 'fmt'. [funcArgNamesDifferent] libcaca-0.99.beta20/kernel/klibc.h:109:24: note: Function 'printf' argument 1 names different: declaration 'format' definition 'fmt'. libcaca-0.99.beta20/kernel/klibc.c:327:24: note: Function 'printf' argument 1 names different: declaration 'format' definition 'fmt'. libcaca-0.99.beta20/kernel/klibc.c:421:36: style:inconclusive: Function 'sprintf' argument 2 names different: declaration 'format' definition 'fmt'. [funcArgNamesDifferent] libcaca-0.99.beta20/kernel/klibc.h:113:36: note: Function 'sprintf' argument 2 names different: declaration 'format' definition 'fmt'. libcaca-0.99.beta20/kernel/klibc.c:421:36: note: Function 'sprintf' argument 2 names different: declaration 'format' definition 'fmt'. libcaca-0.99.beta20/kernel/klibc.c:41:28: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/kernel/klibc.c:122:17: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/klibc.c:164:16: style: Parameter 'dummy' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/klibc.c:291:21: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/klibc.c:304:17: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/klibc.c:310:19: style: Parameter 's' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/klibc.c:310:39: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/klibc.c:316:66: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/klibc.c:321:19: style: Parameter 'fp' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/klibc.c:334:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/kernel/klibc.c:409:20: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/klibc.c:415:19: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/kernel/klibc.c:427:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/kernel/klibc.c:510:21: style: Variable 'diff' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/ruby/caca-canvas.c:63:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:109:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:124:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:155:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:169:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:177:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:185:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:218:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_FIXNUM [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:248:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:255:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:256:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:257:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:258:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:259:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:260:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:261:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:262:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:283:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNoMemError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:345:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNoMemError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:467:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:515:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:529:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:548:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:562:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:570:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:585:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:607:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:617:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:627:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:637:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:669:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:670:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:711:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-canvas.c:717:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-display.c:38:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-display.c:134:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-display.c:177:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-display.c:255:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-display.c:270:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-display.c:283:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-dither.c:38:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-dither.c:53:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-dither.c:156:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-dither.c:157:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-dither.c:158:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-dither.c:177:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-dither.c:178:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-dither.c:179:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-dither.c:180:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-dither.c:184:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-event.c:31:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-font.c:38:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eRuntimeError [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca-font.c:90:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/ruby/caca.c:33:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_BLACK [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/aafire.c:117:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable aa_defparams [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/aafire.c:265:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AA_RESIZE [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/aafire.c:292:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable aa_help [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/aafire.c:190:5: style: Variable 'i' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/src/aafire.c:234:5: style: Variable 'i' is assigned a value that is never used. [unreadVariable] libcaca-0.99.beta20/src/cacaclock.c:28:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacaclock.c:101:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable caca_optarg [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacaclock.c:59:35: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] libcaca-0.99.beta20/src/cacaclock.c:172:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libcaca-0.99.beta20/src/cacaclock.c:59:14: warning: If memory allocation fails, then there is a possible null pointer dereference: charTime [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaclock.c:56:28: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaclock.c:56:28: note: Assignment 'charTime=malloc(101)', assigned value is 0 libcaca-0.99.beta20/src/cacaclock.c:59:14: note: Null pointer dereference libcaca-0.99.beta20/src/cacaclock.c:54:29: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/src/cacademo.c:104:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_EVENT_KEY_PRESS [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacademo.c:757:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_WHITE [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacademo.c:838:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_WHITE [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacademo.c:482:20: style: Condition 'n<0x40' is always false [knownConditionTrueFalse] libcaca-0.99.beta20/src/cacademo.c:482:35: style: Condition 'n<0xc0' is always false [knownConditionTrueFalse] libcaca-0.99.beta20/src/cacademo.c:484:20: style: Condition 'n<0x40' is always false [knownConditionTrueFalse] libcaca-0.99.beta20/src/cacademo.c:716:16: warning: If memory allocation fails, then there is a possible null pointer dereference: screen [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacademo.c:715:24: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacademo.c:715:24: note: Assignment 'screen=malloc(width*height)', assigned value is 0 libcaca-0.99.beta20/src/cacademo.c:716:16: note: Null pointer dereference libcaca-0.99.beta20/src/cacademo.c:402:15: style: Variable 't1' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/src/cacademo.c:403:15: style: Variable 't2' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/src/cacademo.c:404:15: style: Variable 't3' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/src/cacademo.c:659:11: style: Variable 'src' can be declared as pointer to const [constVariablePointer] libcaca-0.99.beta20/src/cacademo.c:694:16: style: Variable 'steps' can be declared as const array [constVariable] libcaca-0.99.beta20/src/cacadraw.c:36:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacaplay.c:41:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacaplay.c:76:13: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] libcaca-0.99.beta20/src/cacaserver.c:167:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacaserver.c:343:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacaserver.c:360:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in6 [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacaserver.c:435:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacaserver.c:605:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacaserver.c:171:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcaca-0.99.beta20/src/cacaserver.c:230:5: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcaca-0.99.beta20/src/cacaserver.c:176:8: error: Memory leak: server.input [memleak] libcaca-0.99.beta20/src/cacaserver.c:151:5: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assignment 'server=malloc(sizeof(struct server))', assigned value is 0 libcaca-0.99.beta20/src/cacaserver.c:151:5: note: Null pointer dereference libcaca-0.99.beta20/src/cacaserver.c:152:5: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assignment 'server=malloc(sizeof(struct server))', assigned value is 0 libcaca-0.99.beta20/src/cacaserver.c:152:5: note: Null pointer dereference libcaca-0.99.beta20/src/cacaserver.c:154:5: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assignment 'server=malloc(sizeof(struct server))', assigned value is 0 libcaca-0.99.beta20/src/cacaserver.c:154:5: note: Null pointer dereference libcaca-0.99.beta20/src/cacaserver.c:155:5: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assignment 'server=malloc(sizeof(struct server))', assigned value is 0 libcaca-0.99.beta20/src/cacaserver.c:155:5: note: Null pointer dereference libcaca-0.99.beta20/src/cacaserver.c:156:5: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assignment 'server=malloc(sizeof(struct server))', assigned value is 0 libcaca-0.99.beta20/src/cacaserver.c:156:5: note: Null pointer dereference libcaca-0.99.beta20/src/cacaserver.c:159:12: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assignment 'server=malloc(sizeof(struct server))', assigned value is 0 libcaca-0.99.beta20/src/cacaserver.c:159:12: note: Null pointer dereference libcaca-0.99.beta20/src/cacaserver.c:160:18: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assignment 'server=malloc(sizeof(struct server))', assigned value is 0 libcaca-0.99.beta20/src/cacaserver.c:160:18: note: Null pointer dereference libcaca-0.99.beta20/src/cacaserver.c:162:24: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assignment 'server=malloc(sizeof(struct server))', assigned value is 0 libcaca-0.99.beta20/src/cacaserver.c:162:24: note: Null pointer dereference libcaca-0.99.beta20/src/cacaserver.c:164:24: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assignment 'server=malloc(sizeof(struct server))', assigned value is 0 libcaca-0.99.beta20/src/cacaserver.c:164:24: note: Null pointer dereference libcaca-0.99.beta20/src/cacaserver.c:171:33: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaserver.c:149:20: note: Assignment 'server=malloc(sizeof(struct server))', assigned value is 0 libcaca-0.99.beta20/src/cacaserver.c:171:33: note: Null pointer dereference libcaca-0.99.beta20/src/cacaserver.c:341:47: style: Parameter 'ai' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/src/cacaserver.c:161:25: error: Uninitialized struct member: server.width [uninitStructMember] libcaca-0.99.beta20/src/cacaserver.c:163:25: error: Uninitialized struct member: server.height [uninitStructMember] libcaca-0.99.beta20/src/cacaserver.c:210:23: error: Uninitialized struct member: server.sock_count [uninitStructMember] libcaca-0.99.beta20/src/cacaview.c:78:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacaview.c:439:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/cacaview.c:118:13: error: Common realloc mistake: 'list' nulled but not freed upon failure [memleakOnRealloc] libcaca-0.99.beta20/src/cacaview.c:121:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaview.c:120:26: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaview.c:120:26: note: Assignment 'list=malloc(sizeof(char*))', assigned value is 0 libcaca-0.99.beta20/src/cacaview.c:121:9: note: Null pointer dereference libcaca-0.99.beta20/src/cacaview.c:318:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaview.c:315:28: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaview.c:315:28: note: Assignment 'buffer=malloc(len)', assigned value is 0 libcaca-0.99.beta20/src/cacaview.c:318:13: note: Null pointer dereference libcaca-0.99.beta20/src/cacaview.c:320:43: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaview.c:315:28: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaview.c:315:28: note: Assignment 'buffer=malloc(len)', assigned value is 0 libcaca-0.99.beta20/src/cacaview.c:320:43: note: Null pointer dereference libcaca-0.99.beta20/src/cacaview.c:363:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaview.c:360:28: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaview.c:360:28: note: Assignment 'buffer=malloc(len)', assigned value is 0 libcaca-0.99.beta20/src/cacaview.c:363:13: note: Null pointer dereference libcaca-0.99.beta20/src/cacaview.c:365:43: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] libcaca-0.99.beta20/src/cacaview.c:360:28: note: Assuming allocation function fails libcaca-0.99.beta20/src/cacaview.c:360:28: note: Assignment 'buffer=malloc(len)', assigned value is 0 libcaca-0.99.beta20/src/cacaview.c:365:43: note: Null pointer dereference libcaca-0.99.beta20/src/img2txt.c:32:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/src/img2txt.c:93:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/tools/makefont.c:110:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/tools/makefont.c:465:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/tools/makefont.c:127:5: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcaca-0.99.beta20/tools/makefont.c:127:5: warning: %i in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcaca-0.99.beta20/tools/makefont.c:184:5: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcaca-0.99.beta20/tools/makefont.c:184:5: warning: %i in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcaca-0.99.beta20/tools/makefont.c:187:5: warning: %i in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcaca-0.99.beta20/tools/makefont.c:187:5: warning: %i in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcaca-0.99.beta20/tools/makefont.c:191:5: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcaca-0.99.beta20/tools/makefont.c:193:5: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcaca-0.99.beta20/tools/makefont.c:469:19: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcaca-0.99.beta20/tools/makefont.c:243:13: warning: If memory allocation fails, then there is a possible null pointer dereference: gtab [nullPointerOutOfMemory] libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assuming allocation function fails libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assignment 'gtab=malloc(glyphs*sizeof(struct glyph))', assigned value is 0 libcaca-0.99.beta20/tools/makefont.c:243:13: note: Null pointer dereference libcaca-0.99.beta20/tools/makefont.c:244:40: warning: If memory allocation fails, then there is a possible null pointer dereference: gtab [nullPointerOutOfMemory] libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assuming allocation function fails libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assignment 'gtab=malloc(glyphs*sizeof(struct glyph))', assigned value is 0 libcaca-0.99.beta20/tools/makefont.c:244:40: note: Null pointer dereference libcaca-0.99.beta20/tools/makefont.c:244:53: warning: If memory allocation fails, then there is a possible null pointer dereference: gtab [nullPointerOutOfMemory] libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assuming allocation function fails libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assignment 'gtab=malloc(glyphs*sizeof(struct glyph))', assigned value is 0 libcaca-0.99.beta20/tools/makefont.c:244:53: note: Null pointer dereference libcaca-0.99.beta20/tools/makefont.c:245:13: warning: If memory allocation fails, then there is a possible null pointer dereference: gtab [nullPointerOutOfMemory] libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assuming allocation function fails libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assignment 'gtab=malloc(glyphs*sizeof(struct glyph))', assigned value is 0 libcaca-0.99.beta20/tools/makefont.c:245:13: note: Null pointer dereference libcaca-0.99.beta20/tools/makefont.c:248:38: warning: If memory allocation fails, then there is a possible null pointer dereference: gtab [nullPointerOutOfMemory] libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assuming allocation function fails libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assignment 'gtab=malloc(glyphs*sizeof(struct glyph))', assigned value is 0 libcaca-0.99.beta20/tools/makefont.c:248:38: note: Null pointer dereference libcaca-0.99.beta20/tools/makefont.c:253:29: warning: If memory allocation fails, then there is a possible null pointer dereference: gtab [nullPointerOutOfMemory] libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assuming allocation function fails libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assignment 'gtab=malloc(glyphs*sizeof(struct glyph))', assigned value is 0 libcaca-0.99.beta20/tools/makefont.c:253:29: note: Null pointer dereference libcaca-0.99.beta20/tools/makefont.c:256:31: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/tools/makefont.c:180:24: note: Assuming allocation function fails libcaca-0.99.beta20/tools/makefont.c:180:24: note: Assignment 'glyph_data=malloc(data_size)', assigned value is 0 libcaca-0.99.beta20/tools/makefont.c:256:31: note: Null pointer addition libcaca-0.99.beta20/tools/makefont.c:90:26: style: Parameter 'argv' can be declared as const array [constParameter] libcaca-0.99.beta20/tools/makefont.c:437:41: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/tools/makefont.c:463:49: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] libcaca-0.99.beta20/tools/optipal.c:169:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_BLACK [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/tools/optipal.c:238:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CACA_BLUE [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/tools/sortchars.c:61:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcaca-0.99.beta20/tools/sortchars.c:125:20: warning: Either the condition 'i<=0x9f' is redundant or the array 'allbits[127]' is accessed at index 159, which is out of bounds. [arrayIndexOutOfBoundsCond] libcaca-0.99.beta20/tools/sortchars.c:123:27: note: Assuming that condition 'i<=0x9f' is not redundant libcaca-0.99.beta20/tools/sortchars.c:125:20: note: Array index out of bounds libcaca-0.99.beta20/tools/sortchars.c:123:14: style: Condition 'i>=0x7f' is always false [knownConditionTrueFalse] libcaca-0.99.beta20/tools/sortchars.c:119:21: note: Assuming that condition 'i<0x7f' is not redundant libcaca-0.99.beta20/tools/sortchars.c:123:14: note: Condition 'i>=0x7f' is always false libcaca-0.99.beta20/tools/sortchars.c:217:12: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] libcaca-0.99.beta20/tools/sortchars.c:213:26: note: Assuming allocation function fails libcaca-0.99.beta20/tools/sortchars.c:213:26: note: Assignment 'buf=malloc(256*256)', assigned value is 0 libcaca-0.99.beta20/tools/sortchars.c:217:12: note: Null pointer dereference libcaca-0.99.beta20/tools/sortchars.c:218:12: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] libcaca-0.99.beta20/tools/sortchars.c:214:27: note: Assuming allocation function fails libcaca-0.99.beta20/tools/sortchars.c:214:27: note: Assignment 'dst=malloc(40*2*18*3*sizeof(uint16_t))', assigned value is 0 libcaca-0.99.beta20/tools/sortchars.c:218:12: note: Null pointer dereference diff: head libcaca-0.99.beta20/caca/caca.c:383:17: style: Variable 'var' is assigned a value that is never used. [unreadVariable] head libcaca-0.99.beta20/caca/caca0.c:79:11: error: failed to expand 'caca_get_event', Wrong number of parameters for macro 'caca_get_event'. [preprocessorErrorDirective] 2.17.0 libcaca-0.99.beta20/caca/codec/text.c:576:62: error: If memory allocation fail: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:519:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:519:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:521:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:576:62: note: Null pointer subtraction head libcaca-0.99.beta20/caca/codec/text.c:576:62: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:519:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:519:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:521:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:576:62: note: Null pointer subtraction 2.17.0 libcaca-0.99.beta20/caca/codec/text.c:577:30: error: If memory allocation fail: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:519:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:519:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:521:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:577:30: note: Null pointer subtraction head libcaca-0.99.beta20/caca/codec/text.c:577:30: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:519:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:519:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:521:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:577:30: note: Null pointer subtraction 2.17.0 libcaca-0.99.beta20/caca/codec/text.c:656:62: error: If memory allocation fail: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:602:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:602:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:604:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:656:62: note: Null pointer subtraction head libcaca-0.99.beta20/caca/codec/text.c:656:62: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:602:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:602:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:604:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:656:62: note: Null pointer subtraction 2.17.0 libcaca-0.99.beta20/caca/codec/text.c:657:30: error: If memory allocation fail: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:602:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:602:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:604:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:657:30: note: Null pointer subtraction head libcaca-0.99.beta20/caca/codec/text.c:657:30: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:602:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:602:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:604:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:657:30: note: Null pointer subtraction 2.17.0 libcaca-0.99.beta20/caca/codec/text.c:763:62: error: If memory allocation fail: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:686:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:686:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:688:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:763:62: note: Null pointer subtraction head libcaca-0.99.beta20/caca/codec/text.c:763:62: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:686:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:686:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:688:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:763:62: note: Null pointer subtraction 2.17.0 libcaca-0.99.beta20/caca/codec/text.c:764:30: error: If memory allocation fail: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:686:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:686:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:688:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:764:30: note: Null pointer subtraction head libcaca-0.99.beta20/caca/codec/text.c:764:30: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/codec/text.c:686:24: note: Assuming allocation function fails libcaca-0.99.beta20/caca/codec/text.c:686:16: note: Assignment 'cur=data=malloc(*bytes)', assigned value is 0 libcaca-0.99.beta20/caca/codec/text.c:688:18: note: Assuming condition is false libcaca-0.99.beta20/caca/codec/text.c:764:30: note: Null pointer subtraction 2.17.0 libcaca-0.99.beta20/caca/dither.c:968:28: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/dither.c:966:29: note: Assuming allocation function fails libcaca-0.99.beta20/caca/dither.c:966:29: note: Assignment 'floyd_steinberg=malloc(3*(fs_length+2)*sizeof(int))', assigned value is 0 libcaca-0.99.beta20/caca/dither.c:968:28: note: Null pointer addition head libcaca-0.99.beta20/caca/dither.c:968:28: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/caca/dither.c:966:29: note: Assuming allocation function fails libcaca-0.99.beta20/caca/dither.c:966:29: note: Assignment 'floyd_steinberg=malloc(3*(fs_length+2)*sizeof(int))', assigned value is 0 libcaca-0.99.beta20/caca/dither.c:968:28: note: Null pointer addition head libcaca-0.99.beta20/cxx/caca++.cpp:293:29: performance:inconclusive: Technically the member function 'Canvas::getImportList' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:140:26: note: Technically the member function 'Canvas::getImportList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:293:29: note: Technically the member function 'Canvas::getImportList' can be static (but you may consider moving to unnamed namespace). head libcaca-0.99.beta20/cxx/caca++.cpp:29:19: performance:inconclusive: Technically the member function 'Charset::utf8ToUtf32' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:40:14: note: Technically the member function 'Charset::utf8ToUtf32' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:29:19: note: Technically the member function 'Charset::utf8ToUtf32' can be static (but you may consider moving to unnamed namespace). head libcaca-0.99.beta20/cxx/caca++.cpp:308:29: performance:inconclusive: Technically the member function 'Canvas::getExportList' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:143:26: note: Technically the member function 'Canvas::getExportList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:308:29: note: Technically the member function 'Canvas::getExportList' can be static (but you may consider moving to unnamed namespace). head libcaca-0.99.beta20/cxx/caca++.cpp:33:17: performance:inconclusive: Technically the member function 'Charset::utf32ToUtf8' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:41:12: note: Technically the member function 'Charset::utf32ToUtf8' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:33:17: note: Technically the member function 'Charset::utf32ToUtf8' can be static (but you may consider moving to unnamed namespace). head libcaca-0.99.beta20/cxx/caca++.cpp:37:18: performance:inconclusive: Technically the member function 'Charset::utf32ToCp437' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:42:13: note: Technically the member function 'Charset::utf32ToCp437' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:37:18: note: Technically the member function 'Charset::utf32ToCp437' can be static (but you may consider moving to unnamed namespace). head libcaca-0.99.beta20/cxx/caca++.cpp:398:27: performance:inconclusive: Technically the member function 'Font::getList' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:52:25: note: Technically the member function 'Font::getList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:398:27: note: Technically the member function 'Font::getList' can be static (but you may consider moving to unnamed namespace). head libcaca-0.99.beta20/cxx/caca++.cpp:41:19: performance:inconclusive: Technically the member function 'Charset::cp437ToUtf32' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.h:43:14: note: Technically the member function 'Charset::cp437ToUtf32' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.cpp:41:19: note: Technically the member function 'Charset::cp437ToUtf32' can be static (but you may consider moving to unnamed namespace). 2.17.0 libcaca-0.99.beta20/cxx/caca++.h:140:26: performance:inconclusive: Technically the member function 'Canvas::getImportList' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.cpp:293:29: note: Technically the member function 'Canvas::getImportList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.h:140:26: note: Technically the member function 'Canvas::getImportList' can be static (but you may consider moving to unnamed namespace). 2.17.0 libcaca-0.99.beta20/cxx/caca++.h:143:26: performance:inconclusive: Technically the member function 'Canvas::getExportList' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.cpp:308:29: note: Technically the member function 'Canvas::getExportList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.h:143:26: note: Technically the member function 'Canvas::getExportList' can be static (but you may consider moving to unnamed namespace). 2.17.0 libcaca-0.99.beta20/cxx/caca++.h:40:14: performance:inconclusive: Technically the member function 'Charset::utf8ToUtf32' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.cpp:29:19: note: Technically the member function 'Charset::utf8ToUtf32' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.h:40:14: note: Technically the member function 'Charset::utf8ToUtf32' can be static (but you may consider moving to unnamed namespace). 2.17.0 libcaca-0.99.beta20/cxx/caca++.h:41:12: performance:inconclusive: Technically the member function 'Charset::utf32ToUtf8' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.cpp:33:17: note: Technically the member function 'Charset::utf32ToUtf8' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.h:41:12: note: Technically the member function 'Charset::utf32ToUtf8' can be static (but you may consider moving to unnamed namespace). 2.17.0 libcaca-0.99.beta20/cxx/caca++.h:42:13: performance:inconclusive: Technically the member function 'Charset::utf32ToCp437' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.cpp:37:18: note: Technically the member function 'Charset::utf32ToCp437' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.h:42:13: note: Technically the member function 'Charset::utf32ToCp437' can be static (but you may consider moving to unnamed namespace). 2.17.0 libcaca-0.99.beta20/cxx/caca++.h:43:14: performance:inconclusive: Technically the member function 'Charset::cp437ToUtf32' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.cpp:41:19: note: Technically the member function 'Charset::cp437ToUtf32' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.h:43:14: note: Technically the member function 'Charset::cp437ToUtf32' can be static (but you may consider moving to unnamed namespace). 2.17.0 libcaca-0.99.beta20/cxx/caca++.h:52:25: performance:inconclusive: Technically the member function 'Font::getList' can be static (but you may consider moving to unnamed namespace). [functionStatic] libcaca-0.99.beta20/cxx/caca++.cpp:398:27: note: Technically the member function 'Font::getList' can be static (but you may consider moving to unnamed namespace). libcaca-0.99.beta20/cxx/caca++.h:52:25: note: Technically the member function 'Font::getList' can be static (but you may consider moving to unnamed namespace). head libcaca-0.99.beta20/java/org_zoy_caca_Canvas.c:377:9: style: Variable 'size' is assigned a value that is never used. [unreadVariable] head libcaca-0.99.beta20/tools/makefont.c:244:53: warning: If memory allocation fails, then there is a possible null pointer dereference: gtab [nullPointerOutOfMemory] libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assuming allocation function fails libcaca-0.99.beta20/tools/makefont.c:179:18: note: Assignment 'gtab=malloc(glyphs*sizeof(struct glyph))', assigned value is 0 libcaca-0.99.beta20/tools/makefont.c:244:53: note: Null pointer dereference 2.17.0 libcaca-0.99.beta20/tools/makefont.c:256:31: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/tools/makefont.c:180:24: note: Assuming allocation function fails libcaca-0.99.beta20/tools/makefont.c:180:24: note: Assignment 'glyph_data=malloc(data_size)', assigned value is 0 libcaca-0.99.beta20/tools/makefont.c:256:31: note: Null pointer addition head libcaca-0.99.beta20/tools/makefont.c:256:31: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libcaca-0.99.beta20/tools/makefont.c:180:24: note: Assuming allocation function fails libcaca-0.99.beta20/tools/makefont.c:180:24: note: Assignment 'glyph_data=malloc(data_size)', assigned value is 0 libcaca-0.99.beta20/tools/makefont.c:256:31: note: Null pointer addition DONE