2026-08-21 07:00 ftp://ftp.de.debian.org/debian/pool/main/r/rtl-ais/rtl-ais_0.3+git20240507+ds.orig.tar.xz 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 -j1 platform: Linux-6.12.90+deb13.1-amd64-x86_64-with-glibc2.41 python: 3.12.13 client-version: 1.4.0 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.21.0 head-info: 2e19539 (2026-08-18 17:04:48 +0200) count: 100 103 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:114:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:127:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:165:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:234:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:141:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:261:9: error: Memory leak: addr [memleak] rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:272:5: error: Memory leak: addr [memleak] rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:69:5: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:67:35: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:67:35: note: Assignment 'm=malloc(sizeof(*m))', assigned value is 0 rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:69:5: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:70:5: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:67:35: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:67:35: note: Assignment 'm=malloc(sizeof(*m))', assigned value is 0 rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:70:5: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:65:40: style: Argument 'buffer' shadows outer variable [shadowVariable] rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:46:13: note: Shadowed variable rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:65:40: note: Shadow argument rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:160:29: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] rtl-ais-0.3+git20240507+ds/aisdecoder/aisdecoder.c:160:42: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/filter.c:57:44: style: Parameter 'taps' can be declared as pointer to const [constParameterPointer] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/filter.c:106:47: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:251:11: style: Condition 'type<1' is always false [knownConditionTrueFalse] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:229:11: note: Assuming that condition 'type<1' is not redundant rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:251:11: note: Condition 'type<1' is always false rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:166:15: style: Redundant assignment of 'received_t' to itself. [selfAssignment] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:373:11: style: Variable 'd->last' is reassigned a value before the old one has been used. [redundantAssignment] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:270:14: note: d->last is assigned rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:373:11: note: d->last is overwritten rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:373:11: style: Variable 'd->last' is reassigned a value before the old one has been used. [redundantAssignment] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:299:12: note: d->last is assigned rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:373:11: note: d->last is overwritten rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:373:11: style: Variable 'd->last' is reassigned a value before the old one has been used. [redundantAssignment] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:315:15: note: d->last is assigned rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:373:11: note: d->last is overwritten rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:226:27: style:inconclusive: Function 'protodec_getdata' argument 1 names different: declaration 'bufferlengde' definition 'bufferlen'. [funcArgNamesDifferent] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.h:65:27: note: Function 'protodec_getdata' argument 1 names different: declaration 'bufferlengde' definition 'bufferlen'. rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:226:27: note: Function 'protodec_getdata' argument 1 names different: declaration 'bufferlengde' definition 'bufferlen'. rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:145:66: style: Parameter 'frame' can be declared as pointer to const [constParameterPointer] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:255:28: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/protodec.c:166:15: style: Variable 'received_t' is assigned a value that is never used. [unreadVariable] rtl-ais-0.3+git20240507+ds/aisdecoder/lib/receiver.c:144:31: style: Condition 'sound_levellog!=0' is always true [knownConditionTrueFalse] rtl-ais-0.3+git20240507+ds/aisdecoder/sounddecoder.c:81:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/aisdecoder/sounddecoder.c:51:28: style: Condition 'sound_channels==SOUND_CHANNELS_MONO' is always false [knownConditionTrueFalse] rtl-ais-0.3+git20240507+ds/aisdecoder/sounddecoder.c:50:17: note: Assignment 'sound_channels=SOUND_CHANNELS_STEREO', assigned value is 1 rtl-ais-0.3+git20240507+ds/aisdecoder/sounddecoder.c:51:28: note: Condition 'sound_channels==SOUND_CHANNELS_MONO' is always false rtl-ais-0.3+git20240507+ds/aisdecoder/sounddecoder.c:64:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] rtl-ais-0.3+git20240507+ds/aisdecoder/sounddecoder.c:79:25: style: Variable 'd' can be declared as pointer to const [constVariablePointer] rtl-ais-0.3+git20240507+ds/aisdecoder/sounddecoder.c:92:27: style: Parameter 'stop' can be declared as pointer to const [constParameterPointer] rtl-ais-0.3+git20240507+ds/convenience.c:118:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/convenience.c:144:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/convenience.c:156:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/convenience.c:168:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/convenience.c:185:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/convenience.c:197:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/convenience.c:209:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/convenience.c:228:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/convenience.c:254:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/convenience.c:268:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/convenience.c:279:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/convenience.c:127:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: gains [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/convenience.c:125:16: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/convenience.c:125:16: note: Assignment 'gains=malloc(sizeof(int)*count)', assigned value is 0 rtl-ais-0.3+git20240507+ds/convenience.c:127:12: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/convenience.c:130:28: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: gains [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/convenience.c:125:16: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/convenience.c:125:16: note: Assignment 'gains=malloc(sizeof(int)*count)', assigned value is 0 rtl-ais-0.3+git20240507+ds/convenience.c:130:28: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/convenience.c:272:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] rtl-ais-0.3+git20240507+ds/main.c:31:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/main.c:80:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/main.c:112:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/main.c:235:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] rtl-ais-0.3+git20240507+ds/main.c:79:16: style: Redundant assignment of 'signum' to itself. [selfAssignment] rtl-ais-0.3+git20240507+ds/main.c:79:16: style: Variable 'signum' is assigned a value that is never used. [unreadVariable] rtl-ais-0.3+git20240507+ds/rtl_ais.c:503:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/rtl_ais.c:663:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/rtl_ais.c:506:12: style: Condition 'delta<0' is always false [knownConditionTrueFalse] rtl-ais-0.3+git20240507+ds/rtl_ais.c:490:24: note: Assuming that condition 'config->left_freq>config->right_freq' is not redundant rtl-ais-0.3+git20240507+ds/rtl_ais.c:501:29: note: Assignment 'delta=config->right_freq-config->left_freq', assigned value is greater than -1 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:506:12: note: Condition 'delta<0' is always false rtl-ais-0.3+git20240507+ds/rtl_ais.c:494:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:494:9: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:512:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:512:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:513:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:513:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:514:16: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:514:16: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:514:34: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:514:34: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:515:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:515:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:516:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:516:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:517:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:517:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:517:22: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:517:22: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:518:16: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:518:16: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:519:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:519:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:520:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:520:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:521:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:521:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:521:23: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:521:23: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:521:43: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:521:43: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:523:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:523:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:523:23: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:523:23: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:524:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:524:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:524:24: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:524:24: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:525:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:525:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:525:26: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:525:26: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:526:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:526:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:526:33: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:526:33: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:527:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:527:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:528:6: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/rtl_ais.c:493:45: note: Assignment 'ctx=malloc(sizeof(struct rtl_ais_context))', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:502:19: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/rtl_ais.c:528:6: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/rtl_ais.c:651:13: style: Redundant assignment of 'ctx' to itself. [selfAssignment] rtl-ais-0.3+git20240507+ds/rtl_ais.c:514:33: warning: Either the condition 'delta<0' is redundant or there is division by zero at line 514. [zerodivcond] rtl-ais-0.3+git20240507+ds/rtl_ais.c:506:12: note: Assuming that condition 'delta<0' is not redundant rtl-ais-0.3+git20240507+ds/rtl_ais.c:513:29: note: Assignment 'ctx->both.rate_out=delta*2', assigned value is 0 rtl-ais-0.3+git20240507+ds/rtl_ais.c:514:33: note: Division by zero rtl-ais-0.3+git20240507+ds/rtl_ais.c:610:7: style: Local variable 'r' shadows outer variable [shadowVariable] rtl-ais-0.3+git20240507+ds/rtl_ais.c:570:6: note: Shadowed variable rtl-ais-0.3+git20240507+ds/rtl_ais.c:610:7: note: Shadow local variable rtl-ais-0.3+git20240507+ds/rtl_ais.c:272:11: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] rtl-ais-0.3+git20240507+ds/rtl_ais.c:304:41: style: Parameter 'buf1' can be declared as pointer to const [constParameterPointer] rtl-ais-0.3+git20240507+ds/rtl_ais.c:351:44: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'rtlsdr_callback' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rtl-ais-0.3+git20240507+ds/rtl_ais.c:368:37: note: You might need to cast the function pointer here rtl-ais-0.3+git20240507+ds/rtl_ais.c:351:44: note: Parameter 'buf' can be declared as pointer to const rtl-ais-0.3+git20240507+ds/rtl_ais.c:644:46: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] rtl-ais-0.3+git20240507+ds/rtl_ais.c:80:11: style: struct member 'demod_state::now_r' is never used. [unusedStructMember] rtl-ais-0.3+git20240507+ds/rtl_ais.c:80:18: style: struct member 'demod_state::now_j' is never used. [unusedStructMember] rtl-ais-0.3+git20240507+ds/rtl_ais.c:651:13: style: Variable 'ctx' is assigned a value that is never used. [unreadVariable] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:88:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:132:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:190:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:240:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:274:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:434:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:301:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(P_AIS_MESS P_AIS_MESSP_AIS_MESS)malloc(sizeof(AIS_MESS AIS_MESS))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:300:12: note: Assuming condition is true rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:301:3: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:302:6: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(P_AIS_MESS P_AIS_MESSP_AIS_MESS)malloc(sizeof(AIS_MESS AIS_MESS))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:300:12: note: Assuming condition is true rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:302:6: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:309:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(P_AIS_MESS P_AIS_MESSP_AIS_MESS)malloc(sizeof(AIS_MESS AIS_MESS))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:300:12: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:309:3: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:310:11: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(P_AIS_MESS P_AIS_MESSP_AIS_MESS)malloc(sizeof(AIS_MESS AIS_MESS))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:300:12: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:310:11: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:312:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(P_AIS_MESS P_AIS_MESSP_AIS_MESS)malloc(sizeof(AIS_MESS AIS_MESS))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:300:12: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:312:2: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:364:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:362:27: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:362:8: note: Assignment 'ptr=(P_TCP_SOCK P_TCP_SOCKP_TCP_SOCK)malloc(sizeof(TCP_SOCK TCP_SOCK))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:364:9: note: Null pointer dereference rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:129:5: style: Redundant assignment of 'arg' to itself. [selfAssignment] diff: head rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:301:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(P_AIS_MESS P_AIS_MESSP_AIS_MESS)malloc(sizeof(AIS_MESS AIS_MESS))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:300:12: note: Assuming condition is true rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:301:3: note: Null pointer dereference 2.21.0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:301:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(struct t_ais_mess*)malloc(sizeof(struct t_ais_mess))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:301:3: note: Null pointer dereference head rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:302:6: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(P_AIS_MESS P_AIS_MESSP_AIS_MESS)malloc(sizeof(AIS_MESS AIS_MESS))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:300:12: note: Assuming condition is true rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:302:6: note: Null pointer dereference 2.21.0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:302:6: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(struct t_ais_mess*)malloc(sizeof(struct t_ais_mess))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:302:6: note: Null pointer dereference 2.21.0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:306:11: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(struct t_ais_mess*)malloc(sizeof(struct t_ais_mess))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:302:23: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:306:11: note: Null pointer dereference 2.21.0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:307:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(struct t_ais_mess*)malloc(sizeof(struct t_ais_mess))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:302:23: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:307:3: note: Null pointer dereference head rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:309:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(P_AIS_MESS P_AIS_MESSP_AIS_MESS)malloc(sizeof(AIS_MESS AIS_MESS))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:300:12: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:309:3: note: Null pointer dereference 2.21.0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:309:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(struct t_ais_mess*)malloc(sizeof(struct t_ais_mess))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:309:3: note: Null pointer dereference head rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:310:11: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(P_AIS_MESS P_AIS_MESSP_AIS_MESS)malloc(sizeof(AIS_MESS AIS_MESS))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:300:12: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:310:11: note: Null pointer dereference 2.21.0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:310:11: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(struct t_ais_mess*)malloc(sizeof(struct t_ais_mess))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:310:11: note: Null pointer dereference head rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:312:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(P_AIS_MESS P_AIS_MESSP_AIS_MESS)malloc(sizeof(AIS_MESS AIS_MESS))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:300:12: note: Assuming condition is false rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:312:2: note: Null pointer dereference 2.21.0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:312:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(struct t_ais_mess*)malloc(sizeof(struct t_ais_mess))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:312:2: note: Null pointer dereference 2.21.0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:321:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:32: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:299:13: note: Assignment 'new_node=(struct t_ais_mess*)malloc(sizeof(struct t_ais_mess))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:321:2: note: Null pointer dereference head rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:364:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:362:27: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:362:8: note: Assignment 'ptr=(P_TCP_SOCK P_TCP_SOCKP_TCP_SOCK)malloc(sizeof(TCP_SOCK TCP_SOCK))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:364:9: note: Null pointer dereference 2.21.0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:364:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:362:27: note: Assuming allocation function fails rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:362:8: note: Assignment 'ptr=(struct t_sockIo*)malloc(sizeof(struct t_sockIo))', assigned value is 0 rtl-ais-0.3+git20240507+ds/tcp_listener/tcp_listener.c:364:9: note: Null pointer dereference DONE