2025-11-23 08:52 ftp://ftp.de.debian.org/debian/pool/main/p/pmidi/pmidi_1.7.1.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 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 127 125 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: pmidi-1.7.1/src/except.c:49:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:36:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:49:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/mdutil.c:98:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:77:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:93:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:107:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:125:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:144:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:161:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:178:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:195:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:212:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:226:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:240:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:256:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:269:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:282:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:297:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:314:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:328:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:361:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/elements.c:398:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable text [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/glib.c:59:2: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] pmidi-1.7.1/src/glib.c:57:10: note: Assuming allocation function fails pmidi-1.7.1/src/glib.c:57:10: note: Assignment 'array=(struct GRealPtrArray*)malloc((unsigned int)sizeof(struct GRealPtrArray)*1)', assigned value is 0 pmidi-1.7.1/src/glib.c:59:2: note: Null pointer dereference pmidi-1.7.1/src/glib.c:60:2: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] pmidi-1.7.1/src/glib.c:57:10: note: Assuming allocation function fails pmidi-1.7.1/src/glib.c:57:10: note: Assignment 'array=(struct GRealPtrArray*)malloc((unsigned int)sizeof(struct GRealPtrArray)*1)', assigned value is 0 pmidi-1.7.1/src/glib.c:60:2: note: Null pointer dereference pmidi-1.7.1/src/glib.c:61:2: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] pmidi-1.7.1/src/glib.c:57:10: note: Assuming allocation function fails pmidi-1.7.1/src/glib.c:57:10: note: Assignment 'array=(struct GRealPtrArray*)malloc((unsigned int)sizeof(struct GRealPtrArray)*1)', assigned value is 0 pmidi-1.7.1/src/glib.c:61:2: note: Null pointer dereference pmidi-1.7.1/src/glib.c:166:2: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] pmidi-1.7.1/src/glib.c:164:10: note: Assuming allocation function fails pmidi-1.7.1/src/glib.c:164:10: note: Assignment 'array=(struct GRealArray*)malloc((unsigned int)sizeof(struct GRealArray)*1)', assigned value is 0 pmidi-1.7.1/src/glib.c:166:2: note: Null pointer dereference pmidi-1.7.1/src/glib.c:167:2: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] pmidi-1.7.1/src/glib.c:164:10: note: Assuming allocation function fails pmidi-1.7.1/src/glib.c:164:10: note: Assignment 'array=(struct GRealArray*)malloc((unsigned int)sizeof(struct GRealArray)*1)', assigned value is 0 pmidi-1.7.1/src/glib.c:167:2: note: Null pointer dereference pmidi-1.7.1/src/glib.c:168:2: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] pmidi-1.7.1/src/glib.c:164:10: note: Assuming allocation function fails pmidi-1.7.1/src/glib.c:164:10: note: Assignment 'array=(struct GRealArray*)malloc((unsigned int)sizeof(struct GRealArray)*1)', assigned value is 0 pmidi-1.7.1/src/glib.c:168:2: note: Null pointer dereference pmidi-1.7.1/src/glib.c:169:2: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] pmidi-1.7.1/src/glib.c:164:10: note: Assuming allocation function fails pmidi-1.7.1/src/glib.c:164:10: note: Assignment 'array=(struct GRealArray*)malloc((unsigned int)sizeof(struct GRealArray)*1)', assigned value is 0 pmidi-1.7.1/src/glib.c:169:2: note: Null pointer dereference pmidi-1.7.1/src/glib.c:170:2: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] pmidi-1.7.1/src/glib.c:164:10: note: Assuming allocation function fails pmidi-1.7.1/src/glib.c:164:10: note: Assignment 'array=(struct GRealArray*)malloc((unsigned int)sizeof(struct GRealArray)*1)', assigned value is 0 pmidi-1.7.1/src/glib.c:170:2: note: Null pointer dereference pmidi-1.7.1/src/glib.c:171:2: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] pmidi-1.7.1/src/glib.c:164:10: note: Assuming allocation function fails pmidi-1.7.1/src/glib.c:164:10: note: Assignment 'array=(struct GRealArray*)malloc((unsigned int)sizeof(struct GRealArray)*1)', assigned value is 0 pmidi-1.7.1/src/glib.c:171:2: note: Null pointer dereference pmidi-1.7.1/src/glib.c:67:48: style:inconclusive: Function 'g_ptr_array_free' argument 2 names different: declaration 'free_seg' definition 'free_segment'. [funcArgNamesDifferent] pmidi-1.7.1/src/glib.h:1564:20: note: Function 'g_ptr_array_free' argument 2 names different: declaration 'free_seg' definition 'free_segment'. pmidi-1.7.1/src/glib.c:67:48: note: Function 'g_ptr_array_free' argument 2 names different: declaration 'free_seg' definition 'free_segment'. pmidi-1.7.1/src/glib.c:100:42: style:inconclusive: Function 'g_ptr_array_remove_index_fast' argument 1 names different: declaration 'array' definition 'farray'. [funcArgNamesDifferent] pmidi-1.7.1/src/glib.h:1569:56: note: Function 'g_ptr_array_remove_index_fast' argument 1 names different: declaration 'array' definition 'farray'. pmidi-1.7.1/src/glib.c:100:42: note: Function 'g_ptr_array_remove_index_fast' argument 1 names different: declaration 'array' definition 'farray'. pmidi-1.7.1/src/glib.c:133:28: style:inconclusive: Function 'g_ptr_array_add' argument 1 names different: declaration 'array' definition 'farray'. [funcArgNamesDifferent] pmidi-1.7.1/src/glib.h:1575:42: note: Function 'g_ptr_array_add' argument 1 names different: declaration 'array' definition 'farray'. pmidi-1.7.1/src/glib.c:133:28: note: Function 'g_ptr_array_add' argument 1 names different: declaration 'array' definition 'farray'. pmidi-1.7.1/src/glib.c:160:62: style:inconclusive: Function 'g_array_new' argument 3 names different: declaration 'element_size' definition 'elt_size'. [funcArgNamesDifferent] pmidi-1.7.1/src/glib.h:1536:18: note: Function 'g_array_new' argument 3 names different: declaration 'element_size' definition 'elt_size'. pmidi-1.7.1/src/glib.c:160:62: note: Function 'g_array_new' argument 3 names different: declaration 'element_size' definition 'elt_size'. pmidi-1.7.1/src/glib.c:186:29: style:inconclusive: Function 'g_array_append_vals' argument 1 names different: declaration 'array' definition 'farray'. [funcArgNamesDifferent] pmidi-1.7.1/src/glib.h:1539:47: note: Function 'g_array_append_vals' argument 1 names different: declaration 'array' definition 'farray'. pmidi-1.7.1/src/glib.c:186:29: note: Function 'g_array_append_vals' argument 1 names different: declaration 'array' definition 'farray'. pmidi-1.7.1/src/elements.c:126:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:124:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:124:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:126:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:127:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:124:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:124:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:127:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:128:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:124:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:124:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:128:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:129:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:124:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:124:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:129:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:162:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:160:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:160:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:162:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:163:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:160:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:160:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:163:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:179:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:177:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:177:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:179:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:196:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:194:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:194:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:196:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:197:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:194:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:194:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:197:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:213:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:211:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:211:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:213:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:227:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:225:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:225:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:227:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:241:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:239:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:239:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:241:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:242:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:239:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:239:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:242:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:243:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:239:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:239:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:243:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:283:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:281:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:281:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:283:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:284:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:281:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:281:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:284:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:298:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:296:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:296:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:298:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:299:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:296:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:296:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:299:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:300:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:296:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:296:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:300:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:301:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:296:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:296:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:301:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:315:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:313:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:313:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:315:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:340:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:327:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:327:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:340:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:341:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:327:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:327:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:341:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:342:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:327:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:327:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:342:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:344:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:327:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:327:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:344:3: note: Null pointer dereference pmidi-1.7.1/src/elements.c:346:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:327:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:327:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:346:3: note: Null pointer dereference pmidi-1.7.1/src/elements.c:362:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:360:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:360:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:362:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:363:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:360:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:360:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:363:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:364:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:360:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:360:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:364:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:365:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:360:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:360:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:365:2: note: Null pointer dereference pmidi-1.7.1/src/elements.c:366:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] pmidi-1.7.1/src/elements.c:360:8: note: Assuming allocation function fails pmidi-1.7.1/src/elements.c:360:8: note: Assignment 'new=(voidgpointer)calloc(sizeof(*new),1)', assigned value is 0 pmidi-1.7.1/src/elements.c:366:2: note: Null pointer dereference pmidi-1.7.1/src/mdutil.c:150:18: style: Condition 'leasttime==-1' is always false [knownConditionTrueFalse] pmidi-1.7.1/src/mdutil.c:99:2: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] pmidi-1.7.1/src/mdutil.c:96:10: note: Assuming allocation function fails pmidi-1.7.1/src/mdutil.c:96:10: note: Assignment 'state=(struct sequenceState*)malloc((unsigned int)sizeof(struct sequenceState)*1)', assigned value is 0 pmidi-1.7.1/src/mdutil.c:99:2: note: Null pointer dereference pmidi-1.7.1/src/mdutil.c:100:2: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] pmidi-1.7.1/src/mdutil.c:96:10: note: Assuming allocation function fails pmidi-1.7.1/src/mdutil.c:96:10: note: Assignment 'state=(struct sequenceState*)malloc((unsigned int)sizeof(struct sequenceState)*1)', assigned value is 0 pmidi-1.7.1/src/mdutil.c:100:2: note: Null pointer dereference pmidi-1.7.1/src/mdutil.c:101:2: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] pmidi-1.7.1/src/mdutil.c:96:10: note: Assuming allocation function fails pmidi-1.7.1/src/mdutil.c:96:10: note: Assignment 'state=(struct sequenceState*)malloc((unsigned int)sizeof(struct sequenceState)*1)', assigned value is 0 pmidi-1.7.1/src/mdutil.c:101:2: note: Null pointer dereference pmidi-1.7.1/src/mdutil.c:102:2: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] pmidi-1.7.1/src/mdutil.c:96:10: note: Assuming allocation function fails pmidi-1.7.1/src/mdutil.c:96:10: note: Assignment 'state=(struct sequenceState*)malloc((unsigned int)sizeof(struct sequenceState)*1)', assigned value is 0 pmidi-1.7.1/src/mdutil.c:102:2: note: Null pointer dereference pmidi-1.7.1/src/mdutil.c:110:3: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] pmidi-1.7.1/src/mdutil.c:96:10: note: Assuming allocation function fails pmidi-1.7.1/src/mdutil.c:96:10: note: Assignment 'state=(struct sequenceState*)malloc((unsigned int)sizeof(struct sequenceState)*1)', assigned value is 0 pmidi-1.7.1/src/mdutil.c:110:3: note: Null pointer dereference pmidi-1.7.1/src/mdutil.c:111:3: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] pmidi-1.7.1/src/mdutil.c:96:10: note: Assuming allocation function fails pmidi-1.7.1/src/mdutil.c:96:10: note: Assignment 'state=(struct sequenceState*)malloc((unsigned int)sizeof(struct sequenceState)*1)', assigned value is 0 pmidi-1.7.1/src/mdutil.c:111:3: note: Null pointer dereference pmidi-1.7.1/src/mdutil.c:112:3: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] pmidi-1.7.1/src/mdutil.c:96:10: note: Assuming allocation function fails pmidi-1.7.1/src/mdutil.c:96:10: note: Assignment 'state=(struct sequenceState*)malloc((unsigned int)sizeof(struct sequenceState)*1)', assigned value is 0 pmidi-1.7.1/src/mdutil.c:112:3: note: Null pointer dereference pmidi-1.7.1/src/mdutil.c:69:29: style: Parameter 'el' can be declared as pointer to const [constParameterPointer] pmidi-1.7.1/src/mdutil.c:190:44: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] pmidi-1.7.1/src/midiread.c:87:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/midiread.c:222:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device_channel [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/midiread.c:423:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable element_time [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/midiread.c:579:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device_channel [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/pmidi.c:125:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/pmidi.c:200:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable snd_seq_addr_t [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/pmidi.c:265:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/pmidi.c:313:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_OPEN_DUPLEX [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/pmidi.c:378:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/pmidi.c:385:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/pmidi.c:397:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable time_base [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqlib.c:43:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_OPEN_DUPLEX [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqlib.c:94:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIDI_CTL_ALL_SOUNDS_OFF [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqlib.c:117:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_PORT_CAP_WRITE [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqlib.c:293:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_START [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqlib.c:303:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_STOP [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqlib.c:310:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_START [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqmidi.c:76:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_NOTE [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqmidi.c:99:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_NOTEON [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqmidi.c:122:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_NOTEOFF [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqmidi.c:144:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_KEYPRESS [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqmidi.c:164:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_CONTROLLER [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqmidi.c:182:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_PGMCHANGE [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqmidi.c:199:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_CHANPRESS [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqmidi.c:217:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_PITCHBEND [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqmidi.c:235:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_TEMPO [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/seqmidi.c:261:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_SYSEX [valueFlowBailoutIncompleteVar] pmidi-1.7.1/src/pmidi.c:205:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pmidi-1.7.1/src/pmidi.c:205:50: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] pmidi-1.7.1/src/pmidi.c:463:1: error: Memory leak: sap [memleak] pmidi-1.7.1/src/pmidi.c:461:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sap [nullPointerOutOfMemory] pmidi-1.7.1/src/pmidi.c:457:32: note: Assuming allocation function fails pmidi-1.7.1/src/pmidi.c:457:32: note: Assignment 'sap=calloc(1,sizeof(struct sigaction))', assigned value is 0 pmidi-1.7.1/src/pmidi.c:461:2: note: Null pointer dereference pmidi-1.7.1/src/seqlib.c:41:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctxp [nullPointerOutOfMemory] pmidi-1.7.1/src/seqlib.c:40:9: note: Assuming allocation function fails pmidi-1.7.1/src/seqlib.c:40:9: note: Assignment 'ctxp=(struct seq_context_t*)malloc((unsigned int)sizeof(struct seq_context_t)*1)', assigned value is 0 pmidi-1.7.1/src/seqlib.c:41:2: note: Null pointer dereference pmidi-1.7.1/src/midiread.c:584:5: portability: %d in format string (no. 2) requires 'int' but the argument type is 'guint32 {aka unsigned int}'. [invalidPrintfArgType_sint] pmidi-1.7.1/src/seqlib.c:82:33: style:inconclusive: Function 'seq_free_context' argument 1 names different: declaration 'cxtp' definition 'ctxp'. [funcArgNamesDifferent] pmidi-1.7.1/src/seqlib.h:35:38: note: Function 'seq_free_context' argument 1 names different: declaration 'cxtp' definition 'ctxp'. pmidi-1.7.1/src/seqlib.c:82:33: note: Function 'seq_free_context' argument 1 names different: declaration 'cxtp' definition 'ctxp'. pmidi-1.7.1/src/seqlib.c:132:33: style:inconclusive: Function 'seq_destroy_port' argument 1 names different: declaration 'cxtp' definition 'ctxp'. [funcArgNamesDifferent] pmidi-1.7.1/src/seqlib.h:37:38: note: Function 'seq_destroy_port' argument 1 names different: declaration 'cxtp' definition 'ctxp'. pmidi-1.7.1/src/seqlib.c:132:33: note: Function 'seq_destroy_port' argument 1 names different: declaration 'cxtp' definition 'ctxp'. pmidi-1.7.1/src/midiread.c:487:2: error: Memory leak: data [memleak] pmidi-1.7.1/src/midiread.c:122:9: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] pmidi-1.7.1/src/midiread.c:116:12: note: Assuming allocation function fails pmidi-1.7.1/src/midiread.c:116:12: note: Assignment 'fp=fopen(name,"rb")', assigned value is 0 pmidi-1.7.1/src/midiread.c:122:9: note: Null pointer dereference pmidi-1.7.1/src/midiread.c:475:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] pmidi-1.7.1/src/midiread.c:472:24: note: Assuming allocation function fails pmidi-1.7.1/src/midiread.c:472:24: note: Assignment 'data=(voidgpointer)malloc(length+1)', assigned value is 0 pmidi-1.7.1/src/midiread.c:475:3: note: Null pointer dereference pmidi-1.7.1/src/midiread.c:479:12: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] pmidi-1.7.1/src/midiread.c:472:24: note: Assuming allocation function fails pmidi-1.7.1/src/midiread.c:472:24: note: Assignment 'data=(voidgpointer)malloc(length+1)', assigned value is 0 pmidi-1.7.1/src/midiread.c:474:13: note: Assuming condition is false pmidi-1.7.1/src/midiread.c:479:12: note: Null pointer dereference pmidi-1.7.1/src/seqlib.c:69:31: style: Parameter 'ctxp' can be declared as pointer to const [constParameterPointer] pmidi-1.7.1/src/seqlib.c:132:33: style: Parameter 'ctxp' can be declared as pointer to const [constParameterPointer] pmidi-1.7.1/src/seqlib.c:201:30: style: Parameter 'ctxp' can be declared as pointer to const [constParameterPointer] pmidi-1.7.1/src/seqlib.c:243:18: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] pmidi-1.7.1/src/seqlib.c:348:27: style: Parameter 'ctxp' can be declared as pointer to const [constParameterPointer] pmidi-1.7.1/src/pmidi.c:102:17: style: Variable 'op' can be declared as pointer to const [constVariablePointer] pmidi-1.7.1/src/pmidi.c:187:8: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] pmidi-1.7.1/src/seqmidi.c:266:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ndata [nullPointerOutOfMemory] pmidi-1.7.1/src/seqmidi.c:263:10: note: Assuming allocation function fails pmidi-1.7.1/src/seqmidi.c:263:10: note: Assignment 'ndata=(voidgpointer)malloc(length+1)', assigned value is 0 pmidi-1.7.1/src/seqmidi.c:266:2: note: Null pointer dereference pmidi-1.7.1/src/seqmidi.c:267:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pmidi-1.7.1/src/seqmidi.c:263:10: note: Assuming allocation function fails pmidi-1.7.1/src/seqmidi.c:263:10: note: Assignment 'ndata=(voidgpointer)malloc(length+1)', assigned value is 0 pmidi-1.7.1/src/seqmidi.c:267:14: note: Null pointer addition pmidi-1.7.1/src/seqmidi.c:256:24: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] diff: head pmidi-1.7.1/src/pmidi.c:102:17: style: Variable 'op' can be declared as pointer to const [constVariablePointer] head pmidi-1.7.1/src/pmidi.c:187:8: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] DONE