2025-05-05 05:01 ftp://ftp.de.debian.org/debian/pool/main/j/jgraph/jgraph_83.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 88ef81e (2025-05-02 08:42:38 +0200) count: 231 230 elapsed-time: 14.9 15.3 head-timing-info: old-timing-info: head results: jgraph-83.orig/draw.c:51:1: portability: Omitted return type of function 'draw_axis' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:117:1: portability: Omitted return type of function 'draw_label' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/jgraph.c:299:1: portability: Omitted return type of function 'new_graphs' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:125:1: portability: Omitted return type of function 'set_clip' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/jgraph.c:318:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:136:1: portability: Omitted return type of function 'draw_curves' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:151:1: portability: Omitted return type of function 'draw_curve' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:270:1: portability: Omitted return type of function 'draw_mark' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:502:1: portability: Omitted return type of function 'draw_arrow' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:542:1: portability: Omitted return type of function 'draw_legend' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:606:1: portability: Omitted return type of function 'draw_strings' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:616:1: portability: Omitted return type of function 'draw_graph' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:637:1: portability: Omitted return type of function 'draw_graphs' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:654:1: portability: Omitted return type of function 'draw_header' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:749:1: portability: Omitted return type of function 'draw_footer' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:16:1: portability: Omitted return type of function 'edit_label' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:75:1: portability: Omitted return type of function 'copy_curve' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:141:1: portability: Omitted return type of function 'copy_label' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:159:1: portability: Omitted return type of function 'copy_axis' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:332:1: portability: Omitted return type of function 'copy_legend' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:342:1: portability: Omitted return type of function 'inherit_axes' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:359:1: portability: Omitted return type of function 'getpattern' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:388:1: portability: Omitted return type of function 'edit_curve' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:683:1: portability: Omitted return type of function 'edit_hash_label' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:734:1: portability: Omitted return type of function 'edit_axis' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:910:1: portability: Omitted return type of function 'edit_legend' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:977:1: portability: Omitted return type of function 'edit_graph' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/edit.c:1052:1: portability: Omitted return type of function 'edit_graphs' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/draw.c:21:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/draw.c:296:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/draw.c:736:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/draw.c:760:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/jgraph.c:38:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:37:22: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:37:7: note: Assignment 'l=(struct LabelLabel)malloc(sizeof(struct label))', assigned value is 0 jgraph-83.orig/jgraph.c:38:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:39:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:37:22: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:37:7: note: Assignment 'l=(struct LabelLabel)malloc(sizeof(struct label))', assigned value is 0 jgraph-83.orig/jgraph.c:39:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:40:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:37:22: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:37:7: note: Assignment 'l=(struct LabelLabel)malloc(sizeof(struct label))', assigned value is 0 jgraph-83.orig/jgraph.c:40:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:41:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:37:22: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:37:7: note: Assignment 'l=(struct LabelLabel)malloc(sizeof(struct label))', assigned value is 0 jgraph-83.orig/jgraph.c:41:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:42:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:37:22: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:37:7: note: Assignment 'l=(struct LabelLabel)malloc(sizeof(struct label))', assigned value is 0 jgraph-83.orig/jgraph.c:42:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:43:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:37:22: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:37:7: note: Assignment 'l=(struct LabelLabel)malloc(sizeof(struct label))', assigned value is 0 jgraph-83.orig/jgraph.c:43:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:44:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:37:22: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:37:7: note: Assignment 'l=(struct LabelLabel)malloc(sizeof(struct label))', assigned value is 0 jgraph-83.orig/jgraph.c:44:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:45:27: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:37:22: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:37:7: note: Assignment 'l=(struct LabelLabel)malloc(sizeof(struct label))', assigned value is 0 jgraph-83.orig/jgraph.c:45:27: note: Null pointer dereference jgraph-83.orig/jgraph.c:46:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:37:22: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:37:7: note: Assignment 'l=(struct LabelLabel)malloc(sizeof(struct label))', assigned value is 0 jgraph-83.orig/jgraph.c:46:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:137:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:137:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:138:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:138:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:139:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:139:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:140:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:140:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:141:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:141:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:142:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:142:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:143:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:143:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:144:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:144:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:145:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:145:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:146:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:146:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:147:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:147:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:148:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:148:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:149:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:149:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:150:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:150:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:151:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:151:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:152:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:152:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:153:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:153:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:154:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:154:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:155:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:155:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:156:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:156:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:157:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:157:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:158:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:158:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:159:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:159:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:160:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:160:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:161:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:161:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:162:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:162:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:163:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:163:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:164:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:164:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:165:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:165:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:166:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:166:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:167:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:167:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:168:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:168:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:169:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:169:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:170:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:170:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:171:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:171:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:172:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:172:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:173:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:173:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:174:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:174:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:175:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:175:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:176:27: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:176:27: note: Null pointer dereference jgraph-83.orig/jgraph.c:177:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:177:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:178:27: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:178:27: note: Null pointer dereference jgraph-83.orig/jgraph.c:179:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:179:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:180:27: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:180:27: note: Null pointer dereference jgraph-83.orig/jgraph.c:181:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:181:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:182:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:182:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:183:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:183:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:184:3: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:136:21: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:136:7: note: Assignment 'a=(struct AxisAxis)malloc(sizeof(struct axis))', assigned value is 0 jgraph-83.orig/jgraph.c:184:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:192:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:191:23: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:191:7: note: Assignment 'l=(struct LegendLegend)malloc(sizeof(struct legend))', assigned value is 0 jgraph-83.orig/jgraph.c:192:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:193:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:191:23: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:191:7: note: Assignment 'l=(struct LegendLegend)malloc(sizeof(struct legend))', assigned value is 0 jgraph-83.orig/jgraph.c:193:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:194:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:191:23: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:191:7: note: Assignment 'l=(struct LegendLegend)malloc(sizeof(struct legend))', assigned value is 0 jgraph-83.orig/jgraph.c:194:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:195:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:191:23: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:191:7: note: Assignment 'l=(struct LegendLegend)malloc(sizeof(struct legend))', assigned value is 0 jgraph-83.orig/jgraph.c:195:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:196:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:191:23: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:191:7: note: Assignment 'l=(struct LegendLegend)malloc(sizeof(struct legend))', assigned value is 0 jgraph-83.orig/jgraph.c:196:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:197:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:191:23: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:191:7: note: Assignment 'l=(struct LegendLegend)malloc(sizeof(struct legend))', assigned value is 0 jgraph-83.orig/jgraph.c:197:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:198:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:191:23: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:191:7: note: Assignment 'l=(struct LegendLegend)malloc(sizeof(struct legend))', assigned value is 0 jgraph-83.orig/jgraph.c:198:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:199:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:191:23: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:191:7: note: Assignment 'l=(struct LegendLegend)malloc(sizeof(struct legend))', assigned value is 0 jgraph-83.orig/jgraph.c:199:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:200:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:191:23: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:191:7: note: Assignment 'l=(struct LegendLegend)malloc(sizeof(struct legend))', assigned value is 0 jgraph-83.orig/jgraph.c:200:3: note: Null pointer dereference jgraph-83.orig/jgraph.c:201:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/jgraph.c:191:23: note: Assuming allocation function fails jgraph-83.orig/jgraph.c:191:7: note: Assignment 'l=(struct LegendLegend)malloc(sizeof(struct legend))', assigned value is 0 jgraph-83.orig/jgraph.c:201:3: note: Null pointer dereference jgraph-83.orig/jmalloc.c:83:1: portability: Omitted return type of function 'dump_core' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/jmalloc.c:203:1: portability: Omitted return type of function 'jmalloc_print_mem' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/jmalloc.c:248:1: portability: Omitted return type of function 'jmalloc_check_mem' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/jmalloc.c:437:1: portability: Omitted return type of function 'jmalloc_usage' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/jmalloc.c:117:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/jmalloc.c:217:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/jmalloc.c:259:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/jmalloc.c:284:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/jmalloc.c:338:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/jmalloc.c:432:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/jmalloc.c:439:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/edit.c:234:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/edit.c:287:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/edit.c:322:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/edit.c:379:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/edit.c:410:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/edit.c:719:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/edit.c:778:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/edit.c:994:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/edit.c:1065:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/draw.c:688:5: warning: %f in format string (no. 1) requires 'double' but the argument type is 'signed int'. [invalidPrintfArgType_float] jgraph-83.orig/draw.c:313:17: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] jgraph-83.orig/list.c:35:1: portability: Omitted return type of function 'insert' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/list.c:49:1: portability: Omitted return type of function 'delete_item' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/list.c:86:1: portability: Omitted return type of function 'free_node' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/list.c:62:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/list.c:61:24: note: Assuming allocation function fails jgraph-83.orig/list.c:61:7: note: Assignment 'l=(struct Int_listInt_list)malloc(sizeof(struct int_list))', assigned value is 0 jgraph-83.orig/list.c:62:3: note: Null pointer dereference jgraph-83.orig/list.c:63:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/list.c:61:24: note: Assuming allocation function fails jgraph-83.orig/list.c:61:7: note: Assignment 'l=(struct Int_listInt_list)malloc(sizeof(struct int_list))', assigned value is 0 jgraph-83.orig/list.c:63:3: note: Null pointer dereference jgraph-83.orig/list.c:64:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/list.c:61:24: note: Assuming allocation function fails jgraph-83.orig/list.c:61:7: note: Assignment 'l=(struct Int_listInt_list)malloc(sizeof(struct int_list))', assigned value is 0 jgraph-83.orig/list.c:64:3: note: Null pointer dereference jgraph-83.orig/list.c:65:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/list.c:61:24: note: Assuming allocation function fails jgraph-83.orig/list.c:61:7: note: Assignment 'l=(struct Int_listInt_list)malloc(sizeof(struct int_list))', assigned value is 0 jgraph-83.orig/list.c:65:3: note: Null pointer dereference jgraph-83.orig/list.c:66:3: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/list.c:61:24: note: Assuming allocation function fails jgraph-83.orig/list.c:61:7: note: Assignment 'l=(struct Int_listInt_list)malloc(sizeof(struct int_list))', assigned value is 0 jgraph-83.orig/list.c:66:3: note: Null pointer dereference jgraph-83.orig/list.c:66:4: warning: If memory allocation fails, then there is a possible null pointer dereference: l->free_list [nullPointerOutOfMemory] jgraph-83.orig/list.c:65:32: note: Assuming allocation function fails jgraph-83.orig/list.c:65:18: note: Assignment 'l->free_list=(struct ListList)malloc(sizeof(struct list))', assigned value is 0 jgraph-83.orig/list.c:66:4: note: Null pointer dereference jgraph-83.orig/list.c:66:25: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/list.c:61:24: note: Assuming allocation function fails jgraph-83.orig/list.c:61:7: note: Assignment 'l=(struct Int_listInt_list)malloc(sizeof(struct int_list))', assigned value is 0 jgraph-83.orig/list.c:66:25: note: Null pointer dereference jgraph-83.orig/printline.c:26:1: portability: Omitted return type of function 'gsave' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:36:1: portability: Omitted return type of function 'grestore' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:51:1: portability: Omitted return type of function 'setfont' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:78:1: portability: Omitted return type of function 'setfill' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:103:1: portability: Omitted return type of function 'setgray' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:114:1: portability: Omitted return type of function 'printline' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:125:1: portability: Omitted return type of function 'print_ebar' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:133:1: portability: Omitted return type of function 'start_line' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:142:1: portability: Omitted return type of function 'cont_line' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:148:1: portability: Omitted return type of function 'end_line' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:157:1: portability: Omitted return type of function 'bezier_control' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:163:1: portability: Omitted return type of function 'bezier_end' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:170:1: portability: Omitted return type of function 'start_poly' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:176:1: portability: Omitted return type of function 'cont_poly' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:182:1: portability: Omitted return type of function 'end_poly' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:195:1: portability: Omitted return type of function 'printellipse' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:205:1: portability: Omitted return type of function 'set_comment' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:211:1: portability: Omitted return type of function 'comment' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:217:1: portability: Omitted return type of function 'printline_c' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:225:1: portability: Omitted return type of function 'print_label' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:293:1: portability: Omitted return type of function 'setlinewidth' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:299:1: portability: Omitted return type of function 'setlinestyle' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/printline.c:122:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] jgraph-83.orig/printline.c:153:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] jgraph-83.orig/printline.c:190:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] jgraph-83.orig/printline.c:202:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] jgraph-83.orig/printline.c:320:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/printline.c:81:7: style: Parameter 'f' can be declared as const array [constParameter] jgraph-83.orig/printline.c:105:7: style: Parameter 'f' can be declared as const array [constParameter] jgraph-83.orig/printline.c:212:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jgraph-83.orig/jmalloc.c:217:5: portability: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'Jmalloc * {aka jmalloc *}'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:226:7: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:229:7: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:259:7: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:263:7: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:284:5: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:287:5: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/prio_list.c:28:1: portability: Omitted return type of function 'prio_insert' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/jmalloc.c:348:5: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:351:5: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'char *'. [invalidPrintfArgType_uint] jgraph-83.orig/jmalloc.c:403:5: error: Memory leak: loc2 [memleak] jgraph-83.orig/jmalloc.c:406:35: warning: If memory allocation fails, then there is a possible null pointer dereference: loc2 [nullPointerOutOfMemory] jgraph-83.orig/jmalloc.c:405:18: note: Assuming allocation function fails jgraph-83.orig/jmalloc.c:405:18: note: Assignment 'loc2=malloc(size)', assigned value is 0 jgraph-83.orig/jmalloc.c:406:35: note: Null pointer dereference jgraph-83.orig/jmalloc.c:424:40: warning: If memory allocation fails, then there is a possible null pointer dereference: iptr [nullPointerOutOfMemory] jgraph-83.orig/jmalloc.c:421:15: note: Assuming allocation function fails jgraph-83.orig/jmalloc.c:421:15: note: Assignment 'ptr=malloc(sz)', assigned value is 0 jgraph-83.orig/jmalloc.c:422:8: note: iptr is assigned '(int*)ptr' here. jgraph-83.orig/jmalloc.c:424:40: note: Null pointer dereference jgraph-83.orig/jmalloc.c:425:42: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] jgraph-83.orig/jmalloc.c:421:15: note: Assuming allocation function fails jgraph-83.orig/jmalloc.c:421:15: note: Assignment 'ptr=malloc(sz)', assigned value is 0 jgraph-83.orig/jmalloc.c:425:42: note: Null pointer dereference jgraph-83.orig/jmalloc.c:389:10: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] jgraph-83.orig/jmalloc.c:388:18: note: Assuming allocation function fails jgraph-83.orig/jmalloc.c:388:18: note: Assignment 'loc2=malloc(i)', assigned value is 0 jgraph-83.orig/jmalloc.c:389:10: note: Null pointer subtraction jgraph-83.orig/prio_list.c:56:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/show.c:60:1: portability: Omitted return type of function 'show_string' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/show.c:77:1: portability: Omitted return type of function 'show_label' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/show.c:101:1: portability: Omitted return type of function 'show_lmark' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/show.c:116:1: portability: Omitted return type of function 'show_curve' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/show.c:254:1: portability: Omitted return type of function 'show_axis' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/show.c:345:1: portability: Omitted return type of function 'show_legend' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/show.c:365:1: portability: Omitted return type of function 'show_graph' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/show.c:397:1: portability: Omitted return type of function 'show_graphs' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:21:1: portability: Omitted return type of function 'process_title' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:46:1: portability: Omitted return type of function 'process_legend' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:318:1: portability: Omitted return type of function 'process_axis1' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:388:1: portability: Omitted return type of function 'process_axis2' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:578:1: portability: Omitted return type of function 'process_label' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:620:1: portability: Omitted return type of function 'process_label_max_n_mins' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:669:1: portability: Omitted return type of function 'process_strings' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:679:1: portability: Omitted return type of function 'process_curve' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:707:1: portability: Omitted return type of function 'process_curves' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:716:1: portability: Omitted return type of function 'process_extrema' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:766:1: portability: Omitted return type of function 'process_label_extrema' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:777:1: portability: Omitted return type of function 'process_graph' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/process.c:793:1: portability: Omitted return type of function 'process_graphs' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/show.c:148:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/process.c:328:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/process.c:461:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/process.c:685:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/show.c:47:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jgraph-83.orig/show.c:61:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jgraph-83.orig/sin.c:2:6: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/sin2.c:2:6: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/token.c:63:1: portability: Omitted return type of function 'set_input_file' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/token.c:96:1: portability: Omitted return type of function 'error_header' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/token.c:109:1: portability: Omitted return type of function 'ungettokenchar' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/token.c:134:1: portability: Omitted return type of function 'get_comment' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/token.c:418:1: portability: Omitted return type of function 'rejecttoken' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] jgraph-83.orig/token.c:72:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] jgraph-83.orig/token.c:98:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/token.c:174:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/token.c:198:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/token.c:231:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jgraph-83.orig/token.c:361:7: error: Common realloc mistake: 'out_str' nulled but not freed upon failure [memleakOnRealloc] jgraph-83.orig/token.c:328:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new_s [nullPointerOutOfMemory] jgraph-83.orig/token.c:322:27: note: Assuming allocation function fails jgraph-83.orig/token.c:322:11: note: Assignment 'new_s=(char*)malloc(j)', assigned value is 0 jgraph-83.orig/token.c:328:5: note: Null pointer dereference jgraph-83.orig/token.c:330:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new_s [nullPointerOutOfMemory] jgraph-83.orig/token.c:322:27: note: Assuming allocation function fails jgraph-83.orig/token.c:322:11: note: Assignment 'new_s=(char*)malloc(j)', assigned value is 0 jgraph-83.orig/token.c:330:3: note: Null pointer dereference jgraph-83.orig/token.c:357:14: warning: If memory allocation fails, then there is a possible null pointer dereference: out_str [nullPointerOutOfMemory] jgraph-83.orig/token.c:356:33: note: Assuming allocation function fails jgraph-83.orig/token.c:356:17: note: Assignment 'out_str=(char*)malloc(sizeof(char)*(i+1))', assigned value is 0 jgraph-83.orig/token.c:357:14: note: Null pointer dereference jgraph-83.orig/token.c:198:60: error: Null pointer dereference [nullPointer] jgraph-83.orig/token.c:64:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jgraph-83.orig/token.c:308:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jgraph-83.orig/token.c:361:34: warning: Uninitialized variable: out_str [uninitvar] jgraph-83.orig/token.c:361:44: warning: Uninitialized variable: len [uninitvar] jgraph-83.orig/token.c:66:9: style: Unused variable: f [unusedVariable] jgraph-83.orig/token.c:337:10: style: Unused variable: j [unusedVariable] jgraph-83.orig/token.c:377:8: style: Unused variable: c [unusedVariable] jgraph-83.orig/token.c:379:7: style: Unused variable: i [unusedVariable] jgraph-83.orig/edit.c:50:14: warning: If memory allocation fails, then there is a possible null pointer dereference: txt [nullPointerOutOfMemory] jgraph-83.orig/edit.c:49:29: note: Assuming allocation function fails jgraph-83.orig/edit.c:49:13: note: Assignment 'txt=(char*)malloc(sizeof(char)*strlen(inp_str)+2)', assigned value is 0 jgraph-83.orig/edit.c:50:14: note: Null pointer dereference jgraph-83.orig/edit.c:360:17: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] diff: 2.17.0 jgraph-83.orig/jmalloc.c:389:10: error: If memory allocation fail: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] jgraph-83.orig/jmalloc.c:388:18: note: Assuming allocation function fails jgraph-83.orig/jmalloc.c:388:18: note: Assignment 'loc2=malloc(i)', assigned value is 0 jgraph-83.orig/jmalloc.c:389:10: note: Null pointer subtraction head jgraph-83.orig/jmalloc.c:389:10: error: If memory allocation fails: overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmeticOutOfMemory] jgraph-83.orig/jmalloc.c:388:18: note: Assuming allocation function fails jgraph-83.orig/jmalloc.c:388:18: note: Assignment 'loc2=malloc(i)', assigned value is 0 jgraph-83.orig/jmalloc.c:389:10: note: Null pointer subtraction head jgraph-83.orig/list.c:66:25: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] jgraph-83.orig/list.c:61:24: note: Assuming allocation function fails jgraph-83.orig/list.c:61:7: note: Assignment 'l=(struct Int_listInt_list)malloc(sizeof(struct int_list))', assigned value is 0 jgraph-83.orig/list.c:66:25: note: Null pointer dereference DONE