2025-09-15 21:37 ftp://ftp.de.debian.org/debian/pool/main/r/rdesktop/rdesktop_1.9.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.12.43+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 3e169d6 (2025-09-15 13:38:15 +0200) count: 808 808 elapsed-time: 5.1 5.2 head-timing-info: old-timing-info: head results: rdesktop-1.9.0/channels.c:137:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/channels.c:169:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/channels.c:204:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/channels.c:227:4: style: Unsigned expression '(unsigned long)(in->end-(in)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/channels.c:49:24: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/channels.c:84:41: style: Parameter 'channel' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/asn.c:47:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/asn.c:91:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/asn.c:101:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/asn.c:122:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/asn.c:128:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/asn.c:160:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/asn.c:189:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ASN1_SUCCESS [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/asn.c:234:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ASN1_SUCCESS [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/asn.c:272:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ASN1_SUCCESS [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/asn.c:85:25: style:inconclusive: Function 'ber_out_sequence' argument 1 names different: declaration 's' definition 'out'. [funcArgNamesDifferent] rdesktop-1.9.0/proto.h:238:30: note: Function 'ber_out_sequence' argument 1 names different: declaration 's' definition 'out'. rdesktop-1.9.0/asn.c:85:25: note: Function 'ber_out_sequence' argument 1 names different: declaration 's' definition 'out'. rdesktop-1.9.0/asn.c:85:37: style:inconclusive: Function 'ber_out_sequence' argument 2 names different: declaration 'contents' definition 'content'. [funcArgNamesDifferent] rdesktop-1.9.0/proto.h:238:40: note: Function 'ber_out_sequence' argument 2 names different: declaration 'contents' definition 'content'. rdesktop-1.9.0/asn.c:85:37: note: Function 'ber_out_sequence' argument 2 names different: declaration 'contents' definition 'content'. rdesktop-1.9.0/asn.c:126:43: style:inconclusive: Function 'ber_in_header' argument 3 names different: declaration 'length' definition 'decoded_len'. [funcArgNamesDifferent] rdesktop-1.9.0/proto.h:234:51: note: Function 'ber_in_header' argument 3 names different: declaration 'length' definition 'decoded_len'. rdesktop-1.9.0/asn.c:126:43: note: Function 'ber_in_header' argument 3 names different: declaration 'length' definition 'decoded_len'. rdesktop-1.9.0/cliprdr.c:48:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cliprdr.c:123:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cache.c:58:55: style: Parameter 'idx' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cache.c:339:38: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cache.c:459:64: style: Parameter 'brush_data' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cliprdr.c:94:10: warning: If memory allocation fails, then there is a possible null pointer dereference: last_formats [nullPointerOutOfMemory] rdesktop-1.9.0/cliprdr.c:93:25: note: Assuming allocation function fails rdesktop-1.9.0/cliprdr.c:93:25: note: Assignment 'last_formats=xmalloc(formats_data_length)', assigned value is 0 rdesktop-1.9.0/cliprdr.c:94:10: note: Null pointer dereference rdesktop-1.9.0/cliprdr.c:40:57: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/ctrl.c:107:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHUT_RDWR [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ctrl.c:186:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ctrl.c:279:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ctrl.c:377:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ctrl.c:466:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:41:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:62:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSS_C_NULL_OID [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:83:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSS_C_NO_OID [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:120:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSS_C_NT_HOSTBASED_SERVICE [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:151:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:194:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:238:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:294:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:391:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:460:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:520:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:629:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/cssp.c:738:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSS_C_NO_CONTEXT [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ctrl.c:67:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ns [nullPointerOutOfMemory] rdesktop-1.9.0/ctrl.c:66:32: note: Assuming allocation function fails rdesktop-1.9.0/ctrl.c:66:7: note: Assignment 'ns=(struct _ctrl_slave_t*)xmalloc(sizeof(struct _ctrl_slave_t))', assigned value is 0 rdesktop-1.9.0/ctrl.c:67:9: note: Null pointer dereference rdesktop-1.9.0/ctrl.c:68:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ns [nullPointerOutOfMemory] rdesktop-1.9.0/ctrl.c:66:32: note: Assuming allocation function fails rdesktop-1.9.0/ctrl.c:66:7: note: Assignment 'ns=(struct _ctrl_slave_t*)xmalloc(sizeof(struct _ctrl_slave_t))', assigned value is 0 rdesktop-1.9.0/ctrl.c:68:2: note: Null pointer dereference rdesktop-1.9.0/ctrl.c:500:20: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rdesktop-1.9.0/ctrl.c:498:13: note: Assuming allocation function fails rdesktop-1.9.0/ctrl.c:498:13: note: Assignment 'fp=fdopen(s,"r")', assigned value is 0 rdesktop-1.9.0/ctrl.c:500:20: note: Null pointer dereference rdesktop-1.9.0/ctrl.c:451:48: style:inconclusive: Function 'ctrl_send_command' argument 2 names different: declaration 'args' definition 'arg'. [funcArgNamesDifferent] rdesktop-1.9.0/proto.h:70:52: note: Function 'ctrl_send_command' argument 2 names different: declaration 'args' definition 'arg'. rdesktop-1.9.0/ctrl.c:451:48: note: Function 'ctrl_send_command' argument 2 names different: declaration 'args' definition 'arg'. rdesktop-1.9.0/ctrl.c:134:38: style: Parameter 'slave' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/ctrl.c:257:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/dvc.c:222:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/dvc.c:266:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/dvc.c:290:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/dvc.c:305:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/dvc.c:321:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/dvc.c:365:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/dvc.c:419:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/dvc.c:321:2: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] rdesktop-1.9.0/cssp.c:236:69: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] rdesktop-1.9.0/cssp.c:297:69: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] rdesktop-1.9.0/cssp.c:389:69: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] rdesktop-1.9.0/cssp.c:469:69: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] rdesktop-1.9.0/cssp.c:523:69: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] rdesktop-1.9.0/cssp.c:534:70: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] rdesktop-1.9.0/cssp.c:624:61: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] rdesktop-1.9.0/cssp.c:647:65: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] rdesktop-1.9.0/cssp.c:801:8: style: Condition '!ret' is always false [knownConditionTrueFalse] rdesktop-1.9.0/cssp.c:795:29: note: Calling function 'cssp_send_tsrequest' returns 1 rdesktop-1.9.0/cssp.c:795:29: note: Assignment 'ret=cssp_send_tsrequest(token,NULL,NULL)', assigned value is 1 rdesktop-1.9.0/cssp.c:801:8: note: Condition '!ret' is always false rdesktop-1.9.0/cssp.c:828:8: style: Condition '!ret' is always false [knownConditionTrueFalse] rdesktop-1.9.0/cssp.c:824:29: note: Calling function 'cssp_send_tsrequest' returns 1 rdesktop-1.9.0/cssp.c:824:29: note: Assignment 'ret=cssp_send_tsrequest(NULL,NULL,blob)', assigned value is 1 rdesktop-1.9.0/cssp.c:828:8: note: Condition '!ret' is always false rdesktop-1.9.0/cssp.c:887:6: style: Condition '!ret' is always false [knownConditionTrueFalse] rdesktop-1.9.0/cssp.c:883:27: note: Calling function 'cssp_send_tsrequest' returns 1 rdesktop-1.9.0/cssp.c:883:27: note: Assignment 'ret=cssp_send_tsrequest(NULL,blob,NULL)', assigned value is 1 rdesktop-1.9.0/cssp.c:887:6: note: Condition '!ret' is always false rdesktop-1.9.0/cssp.c:154:2: style: Variable 'in->p' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/cssp.c:153:2: note: in->p is assigned rdesktop-1.9.0/cssp.c:154:2: note: in->p is overwritten rdesktop-1.9.0/cssp.c:197:2: style: Variable 'in->p' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/cssp.c:196:2: note: in->p is assigned rdesktop-1.9.0/cssp.c:197:2: note: in->p is overwritten rdesktop-1.9.0/cssp.c:364:2: style: Variable 'message.end' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/cssp.c:359:3: note: message.end is assigned rdesktop-1.9.0/cssp.c:364:2: note: message.end is overwritten rdesktop-1.9.0/cssp.c:436:2: style: Variable 'message.end' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/cssp.c:431:3: note: message.end is assigned rdesktop-1.9.0/cssp.c:436:2: note: message.end is overwritten rdesktop-1.9.0/cssp.c:573:2: style: Variable 'message.end' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/cssp.c:569:3: note: message.end is assigned rdesktop-1.9.0/cssp.c:573:2: note: message.end is overwritten rdesktop-1.9.0/cssp.c:151:2: style: Unsigned expression '(unsigned long)(in->end-(in)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/cssp.c:154:2: style: Unsigned expression '(unsigned long)(in->end-(in)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/cssp.c:177:2: style: Unsigned expression '(unsigned long)(out->end-(out)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/cssp.c:194:2: style: Unsigned expression '(unsigned long)(in->end-(in)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/cssp.c:197:2: style: Unsigned expression '(unsigned long)(in->end-(in)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/cssp.c:211:2: style: Unsigned expression '(unsigned long)(out->end-(out)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/cssp.c:662:3: style: Unsigned expression '(unsigned long)(out->end-(out)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/cssp.c:677:3: style: Unsigned expression '(unsigned long)(out->end-(out)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/cssp.c:855:2: style: Unsigned expression '(unsigned long)(pubkey_cmp->end-(pubkey_cmp)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/cssp.c:857:2: style: Unsigned expression '(unsigned long)(pubkey_cmp->end-(pubkey_cmp)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/cssp.c:113:33: style: Parameter 'server' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cssp.c:220:35: style: Parameter 'username' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cssp.c:220:51: style: Parameter 'password' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cssp.c:220:67: style: Parameter 'domain' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cssp.c:282:58: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cssp.c:282:70: style: Parameter 'reader' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cssp.c:282:84: style: Parameter 'container' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cssp.c:283:14: style: Parameter 'csp' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cssp.c:376:36: style: Parameter 'username' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cssp.c:376:52: style: Parameter 'password' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cssp.c:376:68: style: Parameter 'domain' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/cssp.c:700:17: style: Variable 'pubkey_data' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/cssp.c:701:17: style: Variable 'pubkey_cmp_data' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/ewmhints.c:58:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ewmhints.c:251:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WithdrawnState [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ewmhints.c:388:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ClientMessage [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ewmhints.c:412:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PropModeReplace [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ewmhints.c:419:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PropModeReplace [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ewmhints.c:492:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_CARDINAL [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ewmhints.c:538:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_CARDINAL [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:225:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:274:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_EXCL [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:365:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:550:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:606:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:636:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:668:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:766:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:1023:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:1144:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:1257:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/iso.c:46:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/iso.c:72:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/iso.c:114:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/iso.c:184:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/iso.c:289:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ewmhints.c:467:11: warning: If memory allocation fails, then there is a possible null pointer dereference: new_set [nullPointerOutOfMemory] rdesktop-1.9.0/ewmhints.c:466:21: note: Assuming allocation function fails rdesktop-1.9.0/ewmhints.c:466:21: note: Assignment 'new_set=xmalloc((nitems+width*height+2)*sizeof(unsigned long))', assigned value is 0 rdesktop-1.9.0/ewmhints.c:467:11: note: Null pointer dereference rdesktop-1.9.0/ewmhints.c:479:2: warning: If memory allocation fails, then there is a possible null pointer dereference: icon [nullPointerOutOfMemory] rdesktop-1.9.0/ewmhints.c:474:20: note: Assuming allocation function fails rdesktop-1.9.0/ewmhints.c:474:20: note: Assignment 'new_set=xmalloc((width*height+2)*sizeof(unsigned long))', assigned value is 0 rdesktop-1.9.0/ewmhints.c:475:10: note: Assignment 'icon=new_set', assigned value is 0 rdesktop-1.9.0/ewmhints.c:479:2: note: Null pointer dereference rdesktop-1.9.0/ewmhints.c:480:2: warning: If memory allocation fails, then there is a possible null pointer dereference: icon [nullPointerOutOfMemory] rdesktop-1.9.0/ewmhints.c:474:20: note: Assuming allocation function fails rdesktop-1.9.0/ewmhints.c:474:20: note: Assignment 'new_set=xmalloc((width*height+2)*sizeof(unsigned long))', assigned value is 0 rdesktop-1.9.0/ewmhints.c:475:10: note: Assignment 'icon=new_set', assigned value is 0 rdesktop-1.9.0/ewmhints.c:480:2: note: Null pointer dereference rdesktop-1.9.0/ewmhints.c:468:19: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] rdesktop-1.9.0/ewmhints.c:466:21: note: Assuming allocation function fails rdesktop-1.9.0/ewmhints.c:466:21: note: Assignment 'new_set=xmalloc((nitems+width*height+2)*sizeof(unsigned long))', assigned value is 0 rdesktop-1.9.0/ewmhints.c:468:19: note: Null pointer addition rdesktop-1.9.0/ewmhints.c:139:8: style: Variable 'return_words' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/ewmhints.c:210:17: style: Variable 'return_words' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/ewmhints.c:560:17: style: Variable 'return_words' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/iso.c:390:17: style: Expression is always true because 'else if' condition is opposite to previous condition at line 386. [multiCondition] rdesktop-1.9.0/iso.c:386:17: note: first condition rdesktop-1.9.0/iso.c:390:17: note: else if condition is opposite to first condition rdesktop-1.9.0/iso.c:256:16: style: Condition 'neg_proto&PROTOCOL_HYBRID' is always false [knownConditionTrueFalse] rdesktop-1.9.0/iso.c:245:14: note: Assignment 'neg_proto=PROTOCOL_SSL', assigned value is 1 rdesktop-1.9.0/iso.c:256:16: note: Condition 'neg_proto&PROTOCOL_HYBRID' is always false rdesktop-1.9.0/iso.c:62:35: style: Parameter 'username' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/lspci.c:142:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/lspci.c:167:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/licence.c:74:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/licence.c:116:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/licence.c:158:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/licence.c:203:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/licence.c:228:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/licence.c:286:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/licence.c:325:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/licence.c:372:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:55:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:68:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:104:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:155:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:172:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:191:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:227:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:245:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:318:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:348:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:371:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/mcs.c:380:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/disk.c:816:9: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] rdesktop-1.9.0/licence.c:63:22: style: Parameter 'client_random' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/licence.c:63:45: style: Parameter 'rsa_data' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/licence.c:64:15: style: Parameter 'licence_data' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/licence.c:64:55: style: Parameter 'hwid' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/licence.c:64:69: style: Parameter 'signature' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/licence.c:105:42: style: Parameter 'client_random' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/licence.c:105:65: style: Parameter 'rsa_data' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/licence.c:105:81: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/licence.c:105:93: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/licence.c:195:50: style: Parameter 'token' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/licence.c:195:65: style: Parameter 'crypt_hwid' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/licence.c:195:85: style: Parameter 'signature' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/disk.c:1418:30: warning: Logical disjunction always evaluates to true: request>>16 != 20 || request>>16 != 9. [incorrectLogicOperator] rdesktop-1.9.0/disk.c:805:16: style: Condition 'write_time' is always false [knownConditionTrueFalse] rdesktop-1.9.0/disk.c:802:8: note: Assuming that condition 'write_time' is not redundant rdesktop-1.9.0/disk.c:805:16: note: Condition 'write_time' is always false rdesktop-1.9.0/mcs.c:376:29: style:inconclusive: Function 'mcs_connect_finalize' argument 1 names different: declaration 's' definition 'mcs_data'. [funcArgNamesDifferent] rdesktop-1.9.0/proto.h:106:37: note: Function 'mcs_connect_finalize' argument 1 names different: declaration 's' definition 'mcs_data'. rdesktop-1.9.0/mcs.c:376:29: note: Function 'mcs_connect_finalize' argument 1 names different: declaration 's' definition 'mcs_data'. rdesktop-1.9.0/disk.c:331:10: warning: If memory allocation fails, then there is a possible null pointer dereference: pdisk_data [nullPointerOutOfMemory] rdesktop-1.9.0/disk.c:330:39: note: Assuming allocation function fails rdesktop-1.9.0/disk.c:330:16: note: Assignment 'pdisk_data=(struct DISK_DEVICE*)xmalloc(sizeof(struct DISK_DEVICE))', assigned value is 0 rdesktop-1.9.0/disk.c:331:10: note: Null pointer dereference rdesktop-1.9.0/disk.c:332:11: warning: If memory allocation fails, then there is a possible null pointer dereference: pdisk_data [nullPointerOutOfMemory] rdesktop-1.9.0/disk.c:330:39: note: Assuming allocation function fails rdesktop-1.9.0/disk.c:330:16: note: Assignment 'pdisk_data=(struct DISK_DEVICE*)xmalloc(sizeof(struct DISK_DEVICE))', assigned value is 0 rdesktop-1.9.0/disk.c:332:11: note: Null pointer dereference rdesktop-1.9.0/disk.c:904:28: warning: If resource allocation fails, then there is a possible null pointer dereference: dp [nullPointerOutOfResources] rdesktop-1.9.0/disk.c:901:23: note: Assuming allocation function fails rdesktop-1.9.0/disk.c:901:23: note: Assignment 'dp=opendir(pfinfo->path)', assigned value is 0 rdesktop-1.9.0/disk.c:904:28: note: Null pointer dereference rdesktop-1.9.0/disk.c:913:15: warning: If resource allocation fails, then there is a possible null pointer dereference: dp [nullPointerOutOfResources] rdesktop-1.9.0/disk.c:901:23: note: Assuming allocation function fails rdesktop-1.9.0/disk.c:901:23: note: Assignment 'dp=opendir(pfinfo->path)', assigned value is 0 rdesktop-1.9.0/disk.c:907:11: note: Assuming condition is false rdesktop-1.9.0/disk.c:913:15: note: Null pointer dereference rdesktop-1.9.0/disk.c:1048:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fullname [nullPointerOutOfMemory] rdesktop-1.9.0/disk.c:1045:30: note: Assuming allocation function fails rdesktop-1.9.0/disk.c:1045:14: note: Assignment 'fullname=(char*)xmalloc(strlen(pfinfo->path)+strlen(dp->d_name)+2)', assigned value is 0 rdesktop-1.9.0/disk.c:1048:13: note: Null pointer dereference rdesktop-1.9.0/disk.c:326:14: style: Redundant initialization for 'pos'. The initialized value is overwritten before it is read. [redundantInitialization] rdesktop-1.9.0/disk.c:319:12: note: pos is initialized rdesktop-1.9.0/disk.c:326:14: note: pos is overwritten rdesktop-1.9.0/disk.c:774:4: style: Variable 'ft_low' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/disk.c:770:4: note: ft_low is assigned rdesktop-1.9.0/disk.c:774:4: note: ft_low is overwritten rdesktop-1.9.0/disk.c:775:4: style: Variable 'ft_high' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/disk.c:771:4: note: ft_high is assigned rdesktop-1.9.0/disk.c:775:4: note: ft_high is overwritten rdesktop-1.9.0/disk.c:320:8: style: Variable 'pos2' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/disk.c:626:40: style: Parameter 'data' can be declared as pointer to const. However it seems that 'disk_write' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/disk.c:1442:2: note: You might need to cast the function pointer here rdesktop-1.9.0/disk.c:626:40: note: Parameter 'data' can be declared as pointer to const rdesktop-1.9.0/disk.c:902:21: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/disk.c:1016:17: style: Variable 'dp' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/disk.c:1133:14: style: Variable 'fsinfo' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/disk.c:1215:8: style: Variable 'dirname' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/disk.c:1217:17: style: Variable 'pdirent' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/mppc.c:58:21: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/disk.c:152:7: style: struct member 'FsInfoType::name' is never used. [unusedStructMember] rdesktop-1.9.0/parallel.c:88:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/parallel.c:143:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/parallel.c:52:14: style: Redundant initialization for 'pos'. The initialized value is overwritten before it is read. [redundantInitialization] rdesktop-1.9.0/parallel.c:46:12: note: pos is initialized rdesktop-1.9.0/parallel.c:52:14: note: pos is overwritten rdesktop-1.9.0/parallel.c:130:44: style: Parameter 'data' can be declared as pointer to const. However it seems that 'parallel_write' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/parallel.c:199:2: note: You might need to cast the function pointer here rdesktop-1.9.0/parallel.c:130:44: note: Parameter 'data' can be declared as pointer to const rdesktop-1.9.0/printer.c:60:14: style: Redundant initialization for 'pos'. The initialized value is overwritten before it is read. [redundantInitialization] rdesktop-1.9.0/printer.c:41:12: note: pos is initialized rdesktop-1.9.0/printer.c:60:14: note: pos is overwritten rdesktop-1.9.0/printer.c:42:8: style: Variable 'pos2' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/printer.c:147:43: style: Parameter 'data' can be declared as pointer to const. However it seems that 'printer_write' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/printer.c:167:2: note: You might need to cast the function pointer here rdesktop-1.9.0/printer.c:147:43: note: Parameter 'data' can be declared as pointer to const rdesktop-1.9.0/orders.c:50:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:63:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:95:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:109:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:137:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:179:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:211:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:238:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:276:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:296:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:349:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:378:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:415:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:463:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:532:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:606:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:688:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:760:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:795:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:827:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:907:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:944:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:1005:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:1081:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:1115:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:1180:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:1258:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/orders.c:1324:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/printercache.c:48:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/printercache.c:145:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/printercache.c:177:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/printercache.c:217:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/printercache.c:246:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/printercache.c:187:3: error: Resource leak: fd [resourceLeak] rdesktop-1.9.0/printercache.c:48:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] rdesktop-1.9.0/printercache.c:45:25: note: Assuming allocation function fails rdesktop-1.9.0/printercache.c:45:9: note: Assignment 'path=(char*)xmalloc(strlen(base)+sizeof("/.rdesktop/rdpdr/")+strlen(printer)+1)', assigned value is 0 rdesktop-1.9.0/printercache.c:48:13: note: Null pointer dereference rdesktop-1.9.0/printercache.c:94:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] rdesktop-1.9.0/printercache.c:89:25: note: Assuming allocation function fails rdesktop-1.9.0/printercache.c:89:9: note: Assignment 'path=(char*)xmalloc(strlen(home)+sizeof("/.rdesktop/rdpdr/")+strlen(printer)+sizeof("/AutoPrinterCacheData")+1)', assigned value is 0 rdesktop-1.9.0/printercache.c:94:13: note: Null pointer dereference rdesktop-1.9.0/printercache.c:142:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: printer_path [nullPointerOutOfMemory] rdesktop-1.9.0/printercache.c:134:33: note: Assuming allocation function fails rdesktop-1.9.0/printercache.c:134:17: note: Assignment 'printer_path=(char*)xmalloc(printer_maxlen)', assigned value is 0 rdesktop-1.9.0/printercache.c:142:13: note: Null pointer dereference rdesktop-1.9.0/printercache.c:142:27: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: new_printer_path [nullPointerOutOfMemory] rdesktop-1.9.0/printercache.c:135:37: note: Assuming allocation function fails rdesktop-1.9.0/printercache.c:135:21: note: Assignment 'new_printer_path=(char*)xmalloc(printer_maxlen)', assigned value is 0 rdesktop-1.9.0/printercache.c:142:27: note: Null pointer dereference rdesktop-1.9.0/printercache.c:177:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] rdesktop-1.9.0/printercache.c:173:25: note: Assuming allocation function fails rdesktop-1.9.0/printercache.c:173:9: note: Assignment 'path=(char*)xmalloc(strlen(home)+sizeof("/.rdesktop/rdpdr/")+strlen(printer_name)+sizeof("/AutoPrinterCacheData")+1)', assigned value is 0 rdesktop-1.9.0/printercache.c:177:12: note: Null pointer dereference rdesktop-1.9.0/printercache.c:217:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] rdesktop-1.9.0/printercache.c:213:25: note: Assuming allocation function fails rdesktop-1.9.0/printercache.c:213:9: note: Assignment 'path=(char*)xmalloc(strlen(home)+sizeof("/.rdesktop/rdpdr/")+strlen(printer_name)+sizeof("/AutoPrinterCacheData")+1)', assigned value is 0 rdesktop-1.9.0/printercache.c:217:12: note: Null pointer dereference rdesktop-1.9.0/printercache.c:310:4: style: Variable 's->p' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/printercache.c:301:4: note: s->p is assigned rdesktop-1.9.0/printercache.c:310:4: note: s->p is overwritten rdesktop-1.9.0/printercache.c:41:26: style: Parameter 'base' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/printercache.c:41:38: style: Parameter 'printer' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/printercache.c:77:32: style: Parameter 'printer' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/printercache.c:80:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/printercache.c:114:32: style: Parameter 'printer' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/printercache.c:114:47: style: Parameter 'new_printer' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/printercache.c:120:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/printercache.c:158:30: style: Parameter 'printer_name' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/printercache.c:160:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/printercache.c:198:52: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/pstcache.c:83:64: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdesktop.c:169:14: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] rdesktop-1.9.0/rdp5.c:37:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp5.c:94:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp5.c:120:4: style: Unsigned expression '(unsigned long)(ns->end-(ns)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/rdp5.c:150:5: style: Unsigned expression '(unsigned long)((assembled[code])->end-(assembled[code])->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/bitmap.c:69:9: style: Variable 'end' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/bitmap.c:70:9: style: Variable 'prevline' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/bitmap.c:269:9: style: Variable 'end' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/bitmap.c:270:10: style: Variable 'prevline' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/bitmap.c:470:9: style: Variable 'end' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/bitmap.c:471:9: style: Variable 'prevline' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/bitmap.c:769:10: style: Variable 'last_line' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/bitmap.c:771:10: style: Variable 'org_in' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/bitmap.c:77:15: style: Variable 'fom_mask' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/bitmap.c:277:15: style: Variable 'fom_mask' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/bitmap.c:478:15: style: Variable 'fom_mask' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/orders.c:560:9: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] rdesktop-1.9.0/orders.c:559:31: note: Assuming allocation function fails rdesktop-1.9.0/orders.c:559:11: note: Assignment 'points=(struct RD_POINT*)xmalloc((os->npoints+1)*sizeof(struct RD_POINT))', assigned value is 0 rdesktop-1.9.0/orders.c:560:9: note: Null pointer dereference rdesktop-1.9.0/orders.c:562:2: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] rdesktop-1.9.0/orders.c:559:31: note: Assuming allocation function fails rdesktop-1.9.0/orders.c:559:11: note: Assignment 'points=(struct RD_POINT*)xmalloc((os->npoints+1)*sizeof(struct RD_POINT))', assigned value is 0 rdesktop-1.9.0/orders.c:562:2: note: Null pointer dereference rdesktop-1.9.0/orders.c:563:2: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] rdesktop-1.9.0/orders.c:559:31: note: Assuming allocation function fails rdesktop-1.9.0/orders.c:559:11: note: Assignment 'points=(struct RD_POINT*)xmalloc((os->npoints+1)*sizeof(struct RD_POINT))', assigned value is 0 rdesktop-1.9.0/orders.c:563:2: note: Null pointer dereference rdesktop-1.9.0/orders.c:642:9: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] rdesktop-1.9.0/orders.c:641:31: note: Assuming allocation function fails rdesktop-1.9.0/orders.c:641:11: note: Assignment 'points=(struct RD_POINT*)xmalloc((os->npoints+1)*sizeof(struct RD_POINT))', assigned value is 0 rdesktop-1.9.0/orders.c:642:9: note: Null pointer dereference rdesktop-1.9.0/orders.c:644:2: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] rdesktop-1.9.0/orders.c:641:31: note: Assuming allocation function fails rdesktop-1.9.0/orders.c:641:11: note: Assignment 'points=(struct RD_POINT*)xmalloc((os->npoints+1)*sizeof(struct RD_POINT))', assigned value is 0 rdesktop-1.9.0/orders.c:644:2: note: Null pointer dereference rdesktop-1.9.0/orders.c:645:2: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] rdesktop-1.9.0/orders.c:641:31: note: Assuming allocation function fails rdesktop-1.9.0/orders.c:641:11: note: Assignment 'points=(struct RD_POINT*)xmalloc((os->npoints+1)*sizeof(struct RD_POINT))', assigned value is 0 rdesktop-1.9.0/orders.c:645:2: note: Null pointer dereference rdesktop-1.9.0/orders.c:712:9: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] rdesktop-1.9.0/orders.c:711:31: note: Assuming allocation function fails rdesktop-1.9.0/orders.c:711:11: note: Assignment 'points=(struct RD_POINT*)xmalloc((os->lines+1)*sizeof(struct RD_POINT))', assigned value is 0 rdesktop-1.9.0/orders.c:712:9: note: Null pointer dereference rdesktop-1.9.0/orders.c:714:2: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] rdesktop-1.9.0/orders.c:711:31: note: Assuming allocation function fails rdesktop-1.9.0/orders.c:711:11: note: Assignment 'points=(struct RD_POINT*)xmalloc((os->lines+1)*sizeof(struct RD_POINT))', assigned value is 0 rdesktop-1.9.0/orders.c:714:2: note: Null pointer dereference rdesktop-1.9.0/orders.c:715:2: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] rdesktop-1.9.0/orders.c:711:31: note: Assuming allocation function fails rdesktop-1.9.0/orders.c:711:11: note: Assignment 'points=(struct RD_POINT*)xmalloc((os->lines+1)*sizeof(struct RD_POINT))', assigned value is 0 rdesktop-1.9.0/orders.c:715:2: note: Null pointer dereference rdesktop-1.9.0/orders.c:74:21: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/orders.c:147:40: style: Parameter 'in_brush' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/orders.c:904:9: style: Variable 'data' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/orders.c:1140:9: style: Variable 'pal' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/rdpedisp.c:41:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpedisp.c:66:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpedisp.c:97:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpedisp.c:125:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:111:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:175:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:223:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:253:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:279:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:336:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:421:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:582:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:597:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:615:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:640:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:677:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:722:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:749:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:770:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:825:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:852:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:871:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:896:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:909:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:922:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:933:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:945:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:956:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:967:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:977:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:988:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1002:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1020:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1033:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1043:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1053:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1076:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1086:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1115:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1181:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1199:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1258:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1307:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1357:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1385:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1395:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1407:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1419:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1451:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1494:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1588:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1605:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1633:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1677:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1720:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1747:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1767:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:1856:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:2131:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:2143:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpdr.c:200:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpdr.c:229:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpdr.c:296:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpdr.c:384:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpdr.c:432:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpdr.c:848:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpdr.c:898:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpdr.c:1045:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpdr.c:1250:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_alsa.c:79:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_alsa.c:127:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_alsa.c:188:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_PCM_ACCESS_RW_INTERLEAVED [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_alsa.c:279:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_PCM_STREAM_PLAYBACK [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_alsa.c:389:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd.c:84:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd.c:102:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd.c:163:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd.c:279:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd.c:308:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd.c:403:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd.c:465:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd.c:598:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_alsa.c:112:25: style: Parameter 'rfds' can be declared as pointer to const. However it seems that 'alsa_check_fds' is a callback function, if 'rfds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_alsa.c:511:26: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_alsa.c:112:25: note: Parameter 'rfds' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_alsa.c:112:40: style: Parameter 'wfds' can be declared as pointer to const. However it seems that 'alsa_check_fds' is a callback function, if 'wfds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_alsa.c:511:26: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_alsa.c:112:40: note: Parameter 'wfds' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_alsa.c:306:41: style: Parameter 'pwfx' can be declared as pointer to const. However it seems that 'alsa_format_supported' is a callback function, if 'pwfx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_alsa.c:521:41: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_alsa.c:306:41: note: Parameter 'pwfx' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_alsa.c:501:21: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpsnd_dsp.c:309:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_dsp.c:427:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd.c:439:4: style: Unsigned expression '(unsigned long)(packet.end-packet.p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/rdpsnd.c:275:16: style: Local variable 'packet' shadows outer variable [shadowVariable] rdesktop-1.9.0/rdpsnd.c:68:22: note: Shadowed declaration rdesktop-1.9.0/rdpsnd.c:275:16: note: Shadow variable rdesktop-1.9.0/rdpsnd.c:637:23: style: Local variable 'packet' shadows outer variable [shadowVariable] rdesktop-1.9.0/rdpsnd.c:68:22: note: Shadowed declaration rdesktop-1.9.0/rdpsnd.c:637:23: note: Shadow variable rdesktop-1.9.0/rdpsnd.c:676:23: style: Local variable 'packet' shadows outer variable [shadowVariable] rdesktop-1.9.0/rdpsnd.c:68:22: note: Shadowed declaration rdesktop-1.9.0/rdpsnd.c:676:23: note: Shadow variable rdesktop-1.9.0/rdpsnd.c:693:23: style: Local variable 'packet' shadows outer variable [shadowVariable] rdesktop-1.9.0/rdpsnd.c:68:22: note: Shadowed declaration rdesktop-1.9.0/rdpsnd.c:693:23: note: Shadow variable rdesktop-1.9.0/rdpsnd.c:728:23: style: Local variable 'packet' shadows outer variable [shadowVariable] rdesktop-1.9.0/rdpsnd.c:68:22: note: Shadowed declaration rdesktop-1.9.0/rdpsnd.c:728:23: note: Shadow variable rdesktop-1.9.0/rdpsnd.c:756:23: style: Local variable 'packet' shadows outer variable [shadowVariable] rdesktop-1.9.0/rdpsnd.c:68:22: note: Shadowed declaration rdesktop-1.9.0/rdpsnd.c:756:23: note: Shadow variable rdesktop-1.9.0/rdpsnd.c:518:8: style: Variable 'driver' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/rdpsnd.c:185:20: style: Variable 'device_available' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/rdpsnd_dsp.c:310:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] rdesktop-1.9.0/rdpsnd_dsp.c:245:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpdata [nullPointerOutOfMemory] rdesktop-1.9.0/rdpsnd_dsp.c:242:39: note: Assuming allocation function fails rdesktop-1.9.0/rdpsnd_dsp.c:242:14: note: Assignment 'tmpdata=(unsigned char*)xmalloc(size*2)', assigned value is 0 rdesktop-1.9.0/rdpsnd_dsp.c:245:5: note: Null pointer dereference rdesktop-1.9.0/rdpsnd_dsp.c:246:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpdata [nullPointerOutOfMemory] rdesktop-1.9.0/rdpsnd_dsp.c:242:39: note: Assuming allocation function fails rdesktop-1.9.0/rdpsnd_dsp.c:242:14: note: Assignment 'tmpdata=(unsigned char*)xmalloc(size*2)', assigned value is 0 rdesktop-1.9.0/rdpsnd_dsp.c:246:5: note: Null pointer dereference rdesktop-1.9.0/rdpsnd_dsp.c:431:2: style: Unsigned expression '(unsigned long)(out->end-(out)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/rdpsnd_dsp.c:166:49: style:inconclusive: Function 'rdpsnd_dsp_resample_supported' argument 1 names different: declaration 'pwfx' definition 'format'. [funcArgNamesDifferent] rdesktop-1.9.0/rdpsnd_dsp.h:29:57: note: Function 'rdpsnd_dsp_resample_supported' argument 1 names different: declaration 'pwfx' definition 'format'. rdesktop-1.9.0/rdpsnd_dsp.c:166:49: note: Function 'rdpsnd_dsp_resample_supported' argument 1 names different: declaration 'pwfx' definition 'format'. rdesktop-1.9.0/rdpsnd_dsp.c:56:17: style: Variable 'posin' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/rdpsnd_dsp.c:115:82: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpsnd_dsp.c:166:49: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpsnd_dsp.c:180:25: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpsnd_dsp.c:400:82: style: Parameter 'current_driver' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpsnd_dsp.c:387:12: style: Variable 'outsize' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/rdpsnd_libao.c:86:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AO_FMT_NATIVE [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_libao.c:125:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AO_FMT_NATIVE [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_libao.c:176:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_libao.c:117:36: style: Parameter 'pwfx' can be declared as pointer to const. However it seems that 'libao_set_format' is a callback function, if 'pwfx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_libao.c:224:37: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_libao.c:117:36: note: Parameter 'pwfx' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_libao.c:209:22: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpsnd_oss.c:78:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_oss.c:156:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNDCTL_DSP_SETDUPLEX [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_oss.c:199:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_oss.c:209:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_oss.c:223:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_oss.c:233:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_oss.c:263:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AFMT_U8 [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_oss.c:389:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOUND_MIXER_PCM [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_oss.c:420:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_oss.c:487:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_oss.c:462:20: style: Condition 'delay_bytes==-1' is always true [knownConditionTrueFalse] rdesktop-1.9.0/rdpsnd_oss.c:459:19: note: Assignment 'delay_bytes=-1', assigned value is -1 rdesktop-1.9.0/rdpsnd_oss.c:462:20: note: Condition 'delay_bytes==-1' is always true rdesktop-1.9.0/rdpsnd_oss.c:87:24: style: Parameter 'rfds' can be declared as pointer to const. However it seems that 'oss_check_fds' is a callback function, if 'rfds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_oss.c:512:25: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_oss.c:87:24: note: Parameter 'rfds' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_oss.c:87:39: style: Parameter 'wfds' can be declared as pointer to const. However it seems that 'oss_check_fds' is a callback function, if 'wfds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_oss.c:512:25: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_oss.c:87:39: note: Parameter 'wfds' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_oss.c:241:40: style: Parameter 'pwfx' can be declared as pointer to const. However it seems that 'oss_format_supported' is a callback function, if 'pwfx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_oss.c:522:40: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_oss.c:241:40: note: Parameter 'pwfx' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_oss.c:254:34: style: Parameter 'pwfx' can be declared as pointer to const. However it seems that 'oss_set_format' is a callback function, if 'pwfx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_oss.c:523:34: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_oss.c:254:34: note: Parameter 'pwfx' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_oss.c:503:20: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpsnd_pulse.c:207:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:288:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:335:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_SAMPLE_S16LE [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:488:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_STREAM_READY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:513:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:539:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_STREAM_READY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:601:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_STREAM_READY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:662:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_STREAM_START_CORKED [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:693:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_STREAM_READY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:755:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_STREAM_READY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:806:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_STREAM_START_CORKED [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:854:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_CONTEXT_READY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:867:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_STREAM_FAILED [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:988:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_pulse.c:1180:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_OPERATION_RUNNING [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sgi.c:152:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AL_SAMPLE_8 [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sgi.c:230:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable param [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sgi.c:261:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sgi.c:275:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] rdesktop-1.9.0/rdpsnd_sgi.c:54:24: style: Parameter 'rfds' can be declared as pointer to const. However it seems that 'sgi_check_fds' is a callback function, if 'rfds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_sgi.c:293:25: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_sgi.c:54:24: note: Parameter 'rfds' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_sgi.c:54:39: style: Parameter 'wfds' can be declared as pointer to const. However it seems that 'sgi_check_fds' is a callback function, if 'wfds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_sgi.c:293:25: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_sgi.c:54:39: note: Parameter 'wfds' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_sgi.c:130:40: style: Parameter 'pwfx' can be declared as pointer to const. However it seems that 'sgi_format_supported' is a callback function, if 'pwfx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_sgi.c:297:41: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_sgi.c:130:40: note: Parameter 'pwfx' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_sgi.c:143:34: style: Parameter 'pwfx' can be declared as pointer to const. However it seems that 'sgi_set_format' is a callback function, if 'pwfx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_sgi.c:298:35: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_sgi.c:143:34: note: Parameter 'pwfx' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_sgi.c:283:20: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpsnd_pulse.c:550:11: style: Condition 'ret<0' is always false [knownConditionTrueFalse] rdesktop-1.9.0/rdpsnd_pulse.c:548:9: note: Assignment 'ret=1', assigned value is 1 rdesktop-1.9.0/rdpsnd_pulse.c:550:11: note: Condition 'ret<0' is always false rdesktop-1.9.0/rdpsnd_pulse.c:557:16: style: Condition 'ret!=0' is always true [knownConditionTrueFalse] rdesktop-1.9.0/rdpsnd_pulse.c:548:9: note: Assignment 'ret=1', assigned value is 1 rdesktop-1.9.0/rdpsnd_pulse.c:557:16: note: Condition 'ret!=0' is always true rdesktop-1.9.0/rdpsnd_pulse.c:612:11: style: Condition 'ret<0' is always false [knownConditionTrueFalse] rdesktop-1.9.0/rdpsnd_pulse.c:610:9: note: Assignment 'ret=0', assigned value is 0 rdesktop-1.9.0/rdpsnd_pulse.c:612:11: note: Condition 'ret<0' is always false rdesktop-1.9.0/rdpsnd_pulse.c:619:16: style: Condition 'ret==0' is always true [knownConditionTrueFalse] rdesktop-1.9.0/rdpsnd_pulse.c:610:9: note: Assignment 'ret=0', assigned value is 0 rdesktop-1.9.0/rdpsnd_pulse.c:619:16: note: Condition 'ret==0' is always true rdesktop-1.9.0/rdpsnd_pulse.c:704:11: style: Condition 'ret<0' is always false [knownConditionTrueFalse] rdesktop-1.9.0/rdpsnd_pulse.c:702:9: note: Assignment 'ret=1', assigned value is 1 rdesktop-1.9.0/rdpsnd_pulse.c:704:11: note: Condition 'ret<0' is always false rdesktop-1.9.0/rdpsnd_pulse.c:711:16: style: Condition 'ret!=0' is always true [knownConditionTrueFalse] rdesktop-1.9.0/rdpsnd_pulse.c:702:9: note: Assignment 'ret=1', assigned value is 1 rdesktop-1.9.0/rdpsnd_pulse.c:711:16: note: Condition 'ret!=0' is always true rdesktop-1.9.0/rdpsnd_pulse.c:766:11: style: Condition 'ret<0' is always false [knownConditionTrueFalse] rdesktop-1.9.0/rdpsnd_pulse.c:764:9: note: Assignment 'ret=0', assigned value is 0 rdesktop-1.9.0/rdpsnd_pulse.c:766:11: note: Condition 'ret<0' is always false rdesktop-1.9.0/rdpsnd_pulse.c:773:16: style: Condition 'ret==0' is always true [knownConditionTrueFalse] rdesktop-1.9.0/rdpsnd_pulse.c:764:9: note: Assignment 'ret=0', assigned value is 0 rdesktop-1.9.0/rdpsnd_pulse.c:773:16: note: Condition 'ret==0' is always true rdesktop-1.9.0/rdpsnd_pulse.c:824:17: style: Condition 'ret<0' is always false [knownConditionTrueFalse] rdesktop-1.9.0/rdpsnd_pulse.c:822:12: note: Assuming that condition 'ret==0' is not redundant rdesktop-1.9.0/rdpsnd_pulse.c:824:17: note: Condition 'ret<0' is always false rdesktop-1.9.0/rdpsnd_pulse.c:396:26: style: Variable 'buffer_attr.maxlength' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/rdpsnd_pulse.c:378:25: note: buffer_attr.maxlength is assigned rdesktop-1.9.0/rdpsnd_pulse.c:396:26: note: buffer_attr.maxlength is overwritten rdesktop-1.9.0/rdpsnd_pulse.c:412:22: style: Variable 'buffer_attr.minreq' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/rdpsnd_pulse.c:379:22: note: buffer_attr.minreq is assigned rdesktop-1.9.0/rdpsnd_pulse.c:412:22: note: buffer_attr.minreq is overwritten rdesktop-1.9.0/rdpsnd_pulse.c:887:27: style: Parameter 'p' can be declared as pointer to const. However it seems that 'pulse_read_cb' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_pulse.c:463:41: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_pulse.c:887:27: note: Parameter 'p' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_pulse.c:887:51: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'pulse_read_cb' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_pulse.c:463:41: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_pulse.c:887:51: note: Parameter 'userdata' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_pulse.c:895:28: style: Parameter 'p' can be declared as pointer to const. However it seems that 'pulse_write_cb' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_pulse.c:461:42: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_pulse.c:895:28: note: Parameter 'p' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_pulse.c:895:52: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'pulse_write_cb' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_pulse.c:461:42: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_pulse.c:895:52: note: Parameter 'userdata' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_pulse.c:903:27: style: Parameter 'p' can be declared as pointer to const. However it seems that 'pulse_cork_cb' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_pulse.c:775:43: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_pulse.c:903:27: note: Parameter 'p' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_pulse.c:972:26: style: Parameter 'rfds' can be declared as pointer to const. However it seems that 'pulse_check_fds' is a callback function, if 'rfds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_pulse.c:1448:27: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_pulse.c:972:26: note: Parameter 'rfds' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_pulse.c:1084:42: style: Parameter 'pwfx' can be declared as pointer to const. However it seems that 'pulse_format_supported' is a callback function, if 'pwfx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_pulse.c:1458:42: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_pulse.c:1084:42: note: Parameter 'pwfx' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_pulse.c:1097:40: style: Parameter 'pwfx' can be declared as pointer to const. However it seems that 'pulse_set_format_out' is a callback function, if 'pwfx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_pulse.c:1453:37: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_pulse.c:1097:40: note: Parameter 'pwfx' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_pulse.c:1286:39: style: Parameter 'pwfx' can be declared as pointer to const. However it seems that 'pulse_set_format_in' is a callback function, if 'pwfx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_pulse.c:1459:36: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_pulse.c:1286:39: note: Parameter 'pwfx' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_pulse.c:1438:22: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpsnd_pulse.c:1210:19: style: Variable 'playback_seek' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/rdpsnd_pulse.c:1216:25: style: Variable 'err' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/rdpsnd_sun.c:72:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUDIO_SETINFO [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sun.c:92:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUDIO_SETINFO [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sun.c:130:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sun.c:204:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sun.c:243:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sun.c:298:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUDIO_DRAIN [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sun.c:386:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUDIO_MID_BALANCE [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sun.c:427:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sun.c:475:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdpsnd_sun.c:243:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] rdesktop-1.9.0/rdpsnd_sun.c:113:24: style: Parameter 'rfds' can be declared as pointer to const. However it seems that 'sun_check_fds' is a callback function, if 'rfds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_sun.c:517:25: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_sun.c:113:24: note: Parameter 'rfds' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_sun.c:113:39: style: Parameter 'wfds' can be declared as pointer to const. However it seems that 'sun_check_fds' is a callback function, if 'wfds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_sun.c:517:25: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_sun.c:113:39: note: Parameter 'wfds' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_sun.c:281:40: style: Parameter 'pwfx' can be declared as pointer to const. However it seems that 'sun_format_supported' is a callback function, if 'pwfx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_sun.c:527:40: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_sun.c:281:40: note: Parameter 'pwfx' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_sun.c:294:34: style: Parameter 'pwfx' can be declared as pointer to const. However it seems that 'sun_set_format' is a callback function, if 'pwfx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/rdpsnd_sun.c:528:34: note: You might need to cast the function pointer here rdesktop-1.9.0/rdpsnd_sun.c:294:34: note: Parameter 'pwfx' can be declared as pointer to const rdesktop-1.9.0/rdpsnd_sun.c:506:20: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/seamless.c:383:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/seamless.c:444:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/rdp.c:524:19: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] rdesktop-1.9.0/rdp.c:524:40: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] rdesktop-1.9.0/rdp.c:329:4: warning: If memory allocation fails, then there is a possible null pointer dereference: *string [nullPointerOutOfMemory] rdesktop-1.9.0/rdp.c:327:21: note: Assuming allocation function fails rdesktop-1.9.0/rdp.c:327:21: note: Assignment '*string=xmalloc(1)', assigned value is 0 rdesktop-1.9.0/rdp.c:329:4: note: Null pointer dereference rdesktop-1.9.0/rdpdr.c:826:4: style: Unsigned expression '(unsigned long)(out->end-(out)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/rdpdr.c:117:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpdr.c:246:15: style: Variable 'diskinfo' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/rdpdr.c:290:15: style: Variable 'diskinfo' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/rdpdr.c:366:87: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpdr.c:1091:27: style: Parameter 'rfds' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpdr.c:1091:42: style: Parameter 'wfds' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/rdpdr.c:542:4: error: Shifting 32-bit value by 32 bits is undefined behaviour [shiftTooManyBits] rdesktop-1.9.0/rdpdr.c:542:4: error: Shifting 32-bit value by 40 bits is undefined behaviour [shiftTooManyBits] rdesktop-1.9.0/rdpdr.c:542:4: error: Shifting 32-bit value by 48 bits is undefined behaviour [shiftTooManyBits] rdesktop-1.9.0/rdpdr.c:542:4: error: Shifting 32-bit value by 56 bits is undefined behaviour [shiftTooManyBits] rdesktop-1.9.0/rdpdr.c:599:4: error: Shifting 32-bit value by 32 bits is undefined behaviour [shiftTooManyBits] rdesktop-1.9.0/rdpdr.c:599:4: error: Shifting 32-bit value by 40 bits is undefined behaviour [shiftTooManyBits] rdesktop-1.9.0/rdpdr.c:599:4: error: Shifting 32-bit value by 48 bits is undefined behaviour [shiftTooManyBits] rdesktop-1.9.0/rdpdr.c:599:4: error: Shifting 32-bit value by 56 bits is undefined behaviour [shiftTooManyBits] rdesktop-1.9.0/rdpdr.c:801:4: style: Variable 'info_level' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/rdpdr.c:1125:11: style: Variable 'iorq' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/rdpdr.c:1351:9: style: Variable 'iorq' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/rdp.c:1793:3: style: Unsigned expression '(unsigned long)(ns->end-(ns)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/rdp.c:135:3: style: Variable 'pdu_source' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/rdp.c:407:16: style: Variable 'packetlen' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/seamless.c:528:27: style:inconclusive: Function 'seamless_send_spawn' argument 1 names different: declaration 'cmd' definition 'cmdline'. [funcArgNamesDifferent] rdesktop-1.9.0/proto.h:363:40: note: Function 'seamless_send_spawn' argument 1 names different: declaration 'cmd' definition 'cmdline'. rdesktop-1.9.0/seamless.c:528:27: note: Function 'seamless_send_spawn' argument 1 names different: declaration 'cmd' definition 'cmdline'. rdesktop-1.9.0/seamless.c:61:8: style: Variable 'tok1' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/seamless.c:61:15: style: Variable 'tok3' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/seamless.c:61:22: style: Variable 'tok4' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/seamless.c:61:29: style: Variable 'tok5' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/seamless.c:61:36: style: Variable 'tok6' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/seamless.c:61:43: style: Variable 'tok7' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/seamless.c:61:50: style: Variable 'tok8' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/seamless.c:528:27: style: Parameter 'cmdline' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/seamless.c:307:9: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/seamless.c:339:9: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/seamless.c:350:9: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/ssl.c:44:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ssl.c:62:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_SIZE [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ssl.c:123:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ssl.c:193:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_PK_RSA [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ssl.c:285:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_CRT_PRINT_ONELINE [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ssl.c:363:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_SIZE [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:162:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_S_SUCCESS [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:507:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:517:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:526:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:541:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:567:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:583:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:627:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:642:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:651:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:668:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:675:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_E_NO_MEMORY [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:692:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_S_SUCCESS [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:731:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:767:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:809:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:900:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:992:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:1038:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:1136:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_ATR_SIZE [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:1155:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_ATR_SIZE [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:1174:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:1283:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:1323:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:1450:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:1478:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:1548:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:1730:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:1851:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:2012:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:2147:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:2275:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:2293:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:2610:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/ssl.c:228:12: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/secure.c:350:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/secure.c:388:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/secure.c:408:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/secure.c:533:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/secure.c:577:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/secure.c:594:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/secure.c:785:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/secure.c:804:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/secure.c:823:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/secure.c:891:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/stream.c:98:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/stream.c:133:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/stream.c:156:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/stream.c:172:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/stream.c:200:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/serial.c:264:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B0 [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/serial.c:409:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B9600 [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/serial.c:565:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/serial.c:664:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VTIME [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/serial.c:724:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/serial.c:1027:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCMGET [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/stream.c:34:9: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:34:9: note: Null pointer dereference rdesktop-1.9.0/stream.c:46:9: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:45:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:45:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:46:9: note: Null pointer dereference rdesktop-1.9.0/stream.c:47:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:45:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:45:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:47:2: note: Null pointer dereference rdesktop-1.9.0/stream.c:47:9: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:45:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:45:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:47:9: note: Null pointer dereference rdesktop-1.9.0/stream.c:48:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:45:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:45:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:48:2: note: Null pointer dereference rdesktop-1.9.0/stream.c:58:6: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:6: note: Null pointer dereference rdesktop-1.9.0/stream.c:61:9: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:61:9: note: Null pointer dereference rdesktop-1.9.0/stream.c:62:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:62:2: note: Null pointer dereference rdesktop-1.9.0/stream.c:63:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:63:2: note: Null pointer dereference rdesktop-1.9.0/stream.c:64:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:64:2: note: Null pointer dereference rdesktop-1.9.0/stream.c:64:9: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:64:9: note: Null pointer dereference rdesktop-1.9.0/stream.c:64:20: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:64:20: note: Null pointer dereference rdesktop-1.9.0/stream.c:65:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:65:2: note: Null pointer dereference rdesktop-1.9.0/stream.c:65:11: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:65:11: note: Null pointer dereference rdesktop-1.9.0/stream.c:65:22: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:65:22: note: Null pointer dereference rdesktop-1.9.0/stream.c:66:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:66:2: note: Null pointer dereference rdesktop-1.9.0/stream.c:66:15: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:66:15: note: Null pointer dereference rdesktop-1.9.0/stream.c:66:26: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:66:26: note: Null pointer dereference rdesktop-1.9.0/stream.c:67:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:67:2: note: Null pointer dereference rdesktop-1.9.0/stream.c:67:15: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:67:15: note: Null pointer dereference rdesktop-1.9.0/stream.c:67:26: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:67:26: note: Null pointer dereference rdesktop-1.9.0/stream.c:68:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:68:2: note: Null pointer dereference rdesktop-1.9.0/stream.c:68:15: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:68:15: note: Null pointer dereference rdesktop-1.9.0/stream.c:68:26: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:68:26: note: Null pointer dereference rdesktop-1.9.0/stream.c:69:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:69:2: note: Null pointer dereference rdesktop-1.9.0/stream.c:69:15: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:69:15: note: Null pointer dereference rdesktop-1.9.0/stream.c:69:26: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:69:26: note: Null pointer dereference rdesktop-1.9.0/stream.c:70:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:70:2: note: Null pointer dereference rdesktop-1.9.0/stream.c:70:19: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:70:19: note: Null pointer dereference rdesktop-1.9.0/stream.c:70:30: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] rdesktop-1.9.0/stream.c:33:13: note: Assuming allocation function fails rdesktop-1.9.0/stream.c:33:13: note: Assignment 's=xmalloc(sizeof(struct stream))', assigned value is 0 rdesktop-1.9.0/stream.c:35:12: note: Calling function 's_realloc', 1st argument 's' value is 0 rdesktop-1.9.0/stream.c:58:14: note: Assuming condition is false rdesktop-1.9.0/stream.c:70:30: note: Null pointer dereference rdesktop-1.9.0/stream.c:150:56: style:inconclusive: Function 'out_utf16s_padded' argument 3 names different: declaration 'width' definition 'length'. [funcArgNamesDifferent] rdesktop-1.9.0/stream.h:56:61: note: Function 'out_utf16s_padded' argument 3 names different: declaration 'width' definition 'length'. rdesktop-1.9.0/stream.c:150:56: note: Function 'out_utf16s_padded' argument 3 names different: declaration 'width' definition 'length'. rdesktop-1.9.0/serial.c:524:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pser_inf [nullPointerOutOfMemory] rdesktop-1.9.0/serial.c:523:39: note: Assuming allocation function fails rdesktop-1.9.0/serial.c:523:14: note: Assignment 'pser_inf=(struct SERIAL_DEVICE*)xmalloc(sizeof(struct SERIAL_DEVICE))', assigned value is 0 rdesktop-1.9.0/serial.c:524:3: note: Null pointer dereference rdesktop-1.9.0/serial.c:525:10: warning: If memory allocation fails, then there is a possible null pointer dereference: pser_inf [nullPointerOutOfMemory] rdesktop-1.9.0/serial.c:523:39: note: Assuming allocation function fails rdesktop-1.9.0/serial.c:523:14: note: Assignment 'pser_inf=(struct SERIAL_DEVICE*)xmalloc(sizeof(struct SERIAL_DEVICE))', assigned value is 0 rdesktop-1.9.0/serial.c:525:10: note: Null pointer dereference rdesktop-1.9.0/serial.c:526:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pser_inf [nullPointerOutOfMemory] rdesktop-1.9.0/serial.c:523:39: note: Assuming allocation function fails rdesktop-1.9.0/serial.c:523:14: note: Assignment 'pser_inf=(struct SERIAL_DEVICE*)xmalloc(sizeof(struct SERIAL_DEVICE))', assigned value is 0 rdesktop-1.9.0/serial.c:526:3: note: Null pointer dereference rdesktop-1.9.0/serial.c:527:10: warning: If memory allocation fails, then there is a possible null pointer dereference: pser_inf [nullPointerOutOfMemory] rdesktop-1.9.0/serial.c:523:39: note: Assuming allocation function fails rdesktop-1.9.0/serial.c:523:14: note: Assignment 'pser_inf=(struct SERIAL_DEVICE*)xmalloc(sizeof(struct SERIAL_DEVICE))', assigned value is 0 rdesktop-1.9.0/serial.c:527:10: note: Null pointer dereference rdesktop-1.9.0/serial.c:520:14: style: Redundant initialization for 'pos'. The initialized value is overwritten before it is read. [redundantInitialization] rdesktop-1.9.0/serial.c:514:12: note: pos is initialized rdesktop-1.9.0/serial.c:520:14: note: pos is overwritten rdesktop-1.9.0/serial.c:515:8: style: Variable 'pos2' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/serial.c:687:42: style: Parameter 'data' can be declared as pointer to const. However it seems that 'serial_write' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/serial.c:1087:2: note: You might need to cast the function pointer here rdesktop-1.9.0/serial.c:687:42: note: Parameter 'data' can be declared as pointer to const rdesktop-1.9.0/serial.c:1063:17: style: Variable 'pser_inf' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/serial.c:1028:29: error: Uninitialized variable: pser_inf [uninitvar] rdesktop-1.9.0/serial.c:1031:7: error: Uninitialized struct member: pser_inf.wait_mask [uninitStructMember] rdesktop-1.9.0/serial.c:1040:29: error: Uninitialized struct member: pser_inf.event_cts [uninitStructMember] rdesktop-1.9.0/serial.c:1028:29: error: Uninitialized struct member: pser_inf.event_dsr [uninitStructMember] rdesktop-1.9.0/tcp.c:125:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/tcp.c:218:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/tcp.c:288:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_E_SUCCESS [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/tcp.c:357:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_CLIENT [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/tcp.c:467:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/tcp.c:554:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/tcp.c:716:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_SHUT_WR [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/tcp.c:652:19: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] rdesktop-1.9.0/tcp.c:649:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g_server_address [nullPointerOutOfMemory] rdesktop-1.9.0/tcp.c:648:29: note: Assuming allocation function fails rdesktop-1.9.0/tcp.c:648:29: note: Assignment 'g_server_address=xmalloc(sizeof(struct sockaddr_in))', assigned value is 0 rdesktop-1.9.0/tcp.c:649:3: note: Null pointer dereference rdesktop-1.9.0/tcp.c:650:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g_server_address [nullPointerOutOfMemory] rdesktop-1.9.0/tcp.c:648:29: note: Assuming allocation function fails rdesktop-1.9.0/tcp.c:648:29: note: Assignment 'g_server_address=xmalloc(sizeof(struct sockaddr_in))', assigned value is 0 rdesktop-1.9.0/tcp.c:650:3: note: Null pointer dereference rdesktop-1.9.0/tcp.c:222:3: style: Variable 's->p' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/tcp.c:220:3: note: s->p is assigned rdesktop-1.9.0/tcp.c:222:3: note: s->p is overwritten rdesktop-1.9.0/tcp.c:125:2: style: Unsigned expression '(unsigned long)(s->end-(s)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/tcp.c:517:2: style: Unsigned expression '(unsigned long)(s->end-(s)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/tcp.c:642:18: style: Variable 'nslookup' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/tcp.c:740:10: style: Variable 'ip' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/tcp.c:186:11: style: Variable 'rcvd' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/utils.c:141:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/utils.c:158:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/utils.c:195:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/utils.c:307:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/utils.c:401:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/utils.c:621:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_DIG_SHA1 [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/utils.c:666:95: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/utils.c:743:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_CERT_REVOKED [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/utils.c:903:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/utils.c:962:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:234:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PropModeReplace [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:264:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SelectionNotify [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:441:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_INTEGER [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:467:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:530:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:819:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_ATOM [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:938:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:1027:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_STRING [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:1128:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_INTEGER [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:1224:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PropertyChangeMask [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:1250:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xclip.c:1008:9: warning: If memory allocation fails, then there is a possible null pointer dereference: formats_data [nullPointerOutOfMemory] rdesktop-1.9.0/xclip.c:1007:24: note: Assuming allocation function fails rdesktop-1.9.0/xclip.c:1007:24: note: Assignment 'formats_data=xmalloc(length)', assigned value is 0 rdesktop-1.9.0/xclip.c:1008:9: note: Null pointer dereference rdesktop-1.9.0/xclip.c:138:15: style: Variable 'src' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/xclip.c:193:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/xclip.c:918:46: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/xclip.c:993:33: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/xclip.c:1030:10: style: Variable 'firstnull' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/utils.c:847:3: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] rdesktop-1.9.0/utils.c:171:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] rdesktop-1.9.0/utils.c:186:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] rdesktop-1.9.0/utils.c:435:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] rdesktop-1.9.0/utils.c:486:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] rdesktop-1.9.0/utils.c:102:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ns [nullPointerOutOfMemory] rdesktop-1.9.0/utils.c:101:14: note: Assuming allocation function fails rdesktop-1.9.0/utils.c:101:14: note: Assignment 'ns=xmalloc(strlen(str)+1)', assigned value is 0 rdesktop-1.9.0/utils.c:102:9: note: Null pointer dereference rdesktop-1.9.0/utils.c:105:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] rdesktop-1.9.0/utils.c:101:14: note: Assuming allocation function fails rdesktop-1.9.0/utils.c:101:14: note: Assignment 'ns=xmalloc(strlen(str)+1)', assigned value is 0 rdesktop-1.9.0/utils.c:103:0: note: Assignment 'ps=ns', assigned value is 0 rdesktop-1.9.0/utils.c:105:10: note: Null pointer dereference rdesktop-1.9.0/utils.c:1044:13: warning: Either the condition 'response==NULL' is redundant or there is possible null pointer dereference: response. [nullPointerRedundantCheck] rdesktop-1.9.0/utils.c:1044:46: note: Assuming that condition 'response==NULL' is not redundant rdesktop-1.9.0/utils.c:1044:13: note: Null pointer dereference rdesktop-1.9.0/utils.c:1043:52: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] rdesktop-1.9.0/utils.c:383:22: style:inconclusive: Function 'logger' argument 1 names different: declaration 'c' definition 's'. [funcArgNamesDifferent] rdesktop-1.9.0/utils.h:66:27: note: Function 'logger' argument 1 names different: declaration 'c' definition 's'. rdesktop-1.9.0/utils.c:383:22: note: Function 'logger' argument 1 names different: declaration 'c' definition 's'. rdesktop-1.9.0/utils.c:591:7: style: Local variable 'subject' shadows outer variable [shadowVariable] rdesktop-1.9.0/utils.c:352:14: note: Shadowed declaration rdesktop-1.9.0/utils.c:591:7: note: Shadow variable rdesktop-1.9.0/utils.c:40:9: style: Variable 'pstr' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/utils.c:152:8: style: Variable 'ptok' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/utils.c:423:27: style: Parameter 'subjects' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/utils.c:428:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/utils.c:494:27: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/utils.c:892:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/utils.c:167:6: style: Variable 'res' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/secure.c:355:3: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] rdesktop-1.9.0/utils.c:847:8: style: Variable 'size' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/utils.c:907:10: style: Variable 'rv' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/secure.c:133:53: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/xkeymap.c:164:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoSymbol [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xkeymap.c:206:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoSymbol [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xkeymap.c:357:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEYMAP_PATH [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xkeymap.c:643:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Alt_L [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xkeymap.c:769:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShiftMask [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xkeymap.c:924:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoSymbol [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xkeymap.c:1055:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Num_Lock [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xkeymap.c:1072:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/secure.c:355:9: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/xkeymap.c:124:9: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] rdesktop-1.9.0/xkeymap.c:123:43: note: Assuming allocation function fails rdesktop-1.9.0/xkeymap.c:123:10: note: Assignment 'entry=(struct key_translation_entry*)xmalloc(sizeof(struct key_translation_entry))', assigned value is 0 rdesktop-1.9.0/xkeymap.c:124:9: note: Null pointer dereference rdesktop-1.9.0/xkeymap.c:125:2: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] rdesktop-1.9.0/xkeymap.c:123:43: note: Assuming allocation function fails rdesktop-1.9.0/xkeymap.c:123:10: note: Assignment 'entry=(struct key_translation_entry*)xmalloc(sizeof(struct key_translation_entry))', assigned value is 0 rdesktop-1.9.0/xkeymap.c:125:2: note: Null pointer dereference rdesktop-1.9.0/xkeymap.c:129:2: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] rdesktop-1.9.0/xkeymap.c:123:43: note: Assuming allocation function fails rdesktop-1.9.0/xkeymap.c:123:10: note: Assignment 'entry=(struct key_translation_entry*)xmalloc(sizeof(struct key_translation_entry))', assigned value is 0 rdesktop-1.9.0/xkeymap.c:129:2: note: Null pointer dereference rdesktop-1.9.0/xkeymap.c:246:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tr [nullPointerOutOfMemory] rdesktop-1.9.0/xkeymap.c:245:35: note: Assuming allocation function fails rdesktop-1.9.0/xkeymap.c:245:8: note: Assignment 'tr=(struct key_translation*)xmalloc(sizeof(struct key_translation))', assigned value is 0 rdesktop-1.9.0/xkeymap.c:246:10: note: Null pointer dereference rdesktop-1.9.0/xkeymap.c:268:16: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] rdesktop-1.9.0/xkeymap.c:265:15: note: Assuming allocation function fails rdesktop-1.9.0/xkeymap.c:265:15: note: Assignment 'str=xstrdup(locale)', assigned value is 0 rdesktop-1.9.0/xkeymap.c:268:16: note: Null pointer dereference rdesktop-1.9.0/xkeymap.c:340:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/xkeymap.c:747:19: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/xkeymap.c:380:27: style: Variable 'line_length' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/xwin.c:247:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:257:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:577:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PropModeReplace [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:631:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XPointer [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:762:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable StructureNotifyMask [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:1614:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoSymbol [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:1680:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TrueColor [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:1890:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HOST_NAME_MAX [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:1913:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:1983:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSBFirst [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:2105:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CWBackPixel [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:2123:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CWOverrideRedirect [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:2129:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyPressMask [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:2150:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USPosition [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:2188:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_ATOM [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:2220:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InputOutput [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:2528:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonRelease [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:2631:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3093:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3319:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZPixmap [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3350:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZPixmap [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3393:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZPixmap [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3601:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YXBanded [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3648:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DoRed [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3755:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YXBanded [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3766:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YXBanded [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3788:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YXBanded [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3823:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FillOpaqueStippled [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3905:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YXBanded [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3919:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YXBanded [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3968:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YXBanded [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3982:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YXBanded [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:3999:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EvenOddRule [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:4091:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CoordModePrevious [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:4122:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YXBanded [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:4202:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FillOpaqueStippled [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:4282:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FillStippled [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:4410:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZPixmap [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:4573:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InputOutput [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:4898:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Below [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/xwin.c:5004:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable StateHint [valueFlowBailoutIncompleteVar] rdesktop-1.9.0/scard.c:2680:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] rdesktop-1.9.0/scard.c:505:21: style: Condition 'add>0' is always true [knownConditionTrueFalse] rdesktop-1.9.0/scard.c:504:23: note: Assignment 'add=4-read%4', assigned value is greater than 0 rdesktop-1.9.0/scard.c:505:21: note: Condition 'add>0' is always true rdesktop-1.9.0/scard.c:2450:15: style: Condition 'addToEnd<16' is always true [knownConditionTrueFalse] rdesktop-1.9.0/scard.c:2449:34: note: Assignment 'addToEnd=(pend-pStatusCode)%16', assigned value is less than 16 rdesktop-1.9.0/scard.c:2450:15: note: Condition 'addToEnd<16' is always true rdesktop-1.9.0/scard.c:290:2: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] rdesktop-1.9.0/scard.c:289:38: note: Assuming allocation function fails rdesktop-1.9.0/scard.c:289:38: note: Assignment 'item=xmalloc(sizeof(struct _scard_handle_list_t))', assigned value is 0 rdesktop-1.9.0/scard.c:290:2: note: Null pointer dereference rdesktop-1.9.0/scard.c:291:2: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] rdesktop-1.9.0/scard.c:289:38: note: Assuming allocation function fails rdesktop-1.9.0/scard.c:289:38: note: Assignment 'item=xmalloc(sizeof(struct _scard_handle_list_t))', assigned value is 0 rdesktop-1.9.0/scard.c:291:2: note: Null pointer dereference rdesktop-1.9.0/scard.c:2741:4: warning: If memory allocation fails, then there is a possible null pointer dereference: scard_mutex [nullPointerOutOfMemory] rdesktop-1.9.0/scard.c:2737:32: note: Assuming allocation function fails rdesktop-1.9.0/scard.c:2737:4: note: Assignment 'scard_mutex=(pthread_mutex_t**)xmalloc(sizeof(pthread_mutex_t*)*4)', assigned value is 0 rdesktop-1.9.0/scard.c:2741:4: note: Null pointer dereference rdesktop-1.9.0/scard.c:2745:7: warning: If memory allocation fails, then there is a possible null pointer dereference: scard_mutex [nullPointerOutOfMemory] rdesktop-1.9.0/scard.c:2737:32: note: Assuming allocation function fails rdesktop-1.9.0/scard.c:2737:4: note: Assignment 'scard_mutex=(pthread_mutex_t**)xmalloc(sizeof(pthread_mutex_t*)*4)', assigned value is 0 rdesktop-1.9.0/scard.c:2745:7: note: Null pointer dereference rdesktop-1.9.0/scard.c:238:26: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] rdesktop-1.9.0/scard.c:232:27: note: Assuming allocation function fails rdesktop-1.9.0/scard.c:232:27: note: Assignment 'nameMapList=xmalloc(nameMapCount*sizeof(struct _TSCNameMapRec))', assigned value is 0 rdesktop-1.9.0/scard.c:238:26: note: Null pointer addition rdesktop-1.9.0/scard.c:1263:23: style: Redundant assignment of 'cur->dwCurrentState' to itself. [selfAssignment] rdesktop-1.9.0/scard.c:1264:21: style: Redundant assignment of 'cur->dwEventState' to itself. [selfAssignment] rdesktop-1.9.0/scard.c:1265:14: style: Redundant assignment of 'cur->cbAtr' to itself. [selfAssignment] rdesktop-1.9.0/scard.c:1346:14: style: Redundant assignment of 'cur->cbAtr' to itself. [selfAssignment] rdesktop-1.9.0/scard.c:1364:25: style: Redundant assignment of 'rsCur->dwCurrentState' to itself. [selfAssignment] rdesktop-1.9.0/scard.c:1365:23: style: Redundant assignment of 'rsCur->dwEventState' to itself. [selfAssignment] rdesktop-1.9.0/scard.c:1366:16: style: Redundant assignment of 'rsCur->cbAtr' to itself. [selfAssignment] rdesktop-1.9.0/scard.c:1429:25: style: Redundant assignment of 'rsCur->dwCurrentState' to itself. [selfAssignment] rdesktop-1.9.0/scard.c:1430:23: style: Redundant assignment of 'rsCur->dwEventState' to itself. [selfAssignment] rdesktop-1.9.0/scard.c:1431:16: style: Redundant assignment of 'rsCur->cbAtr' to itself. [selfAssignment] rdesktop-1.9.0/scard.c:1393:19: style: Variable 'cur' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/scard.c:1392:7: note: cur is assigned rdesktop-1.9.0/scard.c:1393:19: note: cur is overwritten rdesktop-1.9.0/scard.c:1754:14: style: Variable 'dwReaderLen' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/scard.c:1743:15: note: dwReaderLen is assigned rdesktop-1.9.0/scard.c:1754:14: note: dwReaderLen is overwritten rdesktop-1.9.0/scard.c:2227:17: style: Variable 'nBytesReturned' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/scard.c:2225:17: note: nBytesReturned is assigned rdesktop-1.9.0/scard.c:2227:17: note: nBytesReturned is overwritten rdesktop-1.9.0/scard.c:2487:14: style: Variable 'd->sec_hdr' is reassigned a value before the old one has been used. [redundantAssignment] rdesktop-1.9.0/scard.c:2485:14: note: d->sec_hdr is assigned rdesktop-1.9.0/scard.c:2487:14: note: d->sec_hdr is overwritten rdesktop-1.9.0/scard.c:543:13: style: Checking if unsigned expression 'length' is less than zero. [unsignedLessThanZero] rdesktop-1.9.0/scard.c:1862:15: style: Checking if unsigned expression 'dwAtrLen' is less than zero. [unsignedLessThanZero] rdesktop-1.9.0/scard.c:2610:3: style: Unsigned expression '(unsigned long)(data->out->end-(data->out)->p)' can't be negative so it is unnecessary to test it. [unsignedPositive] rdesktop-1.9.0/scard.c:321:31: style: Variable 'list' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/scard.c:462:17: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/scard.c:489:16: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/scard.c:538:44: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/scard.c:576:8: style: Variable 'reader' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/scard.c:608:8: style: Variable 'reader' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/scard.c:1507:17: style: Variable 'srcBytes' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/scard.c:1521:17: style: Variable 'srcBytes' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/scard.c:168:6: style: Variable 'rv' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/scard.c:323:14: style: Variable 'list' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/scard.c:1880:14: style: Variable 'dwReaderLen' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/xwin.c:636:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] rdesktop-1.9.0/xwin.c:546:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sg [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:544:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:544:14: note: Assignment 'sg=xmalloc(sizeof(struct seamless_group))', assigned value is 0 rdesktop-1.9.0/xwin.c:546:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:549:18: warning: If memory allocation fails, then there is a possible null pointer dereference: sg [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:544:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:544:14: note: Assignment 'sg=xmalloc(sizeof(struct seamless_group))', assigned value is 0 rdesktop-1.9.0/xwin.c:549:18: note: Null pointer dereference rdesktop-1.9.0/xwin.c:551:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sg [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:544:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:544:14: note: Assignment 'sg=xmalloc(sizeof(struct seamless_group))', assigned value is 0 rdesktop-1.9.0/xwin.c:551:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:552:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sg [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:544:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:544:14: note: Assignment 'sg=xmalloc(sizeof(struct seamless_group))', assigned value is 0 rdesktop-1.9.0/xwin.c:552:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4652:9: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4652:9: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4654:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4654:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4655:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4655:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4656:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4656:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4657:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4657:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4658:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4658:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4659:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4659:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4660:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4660:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4661:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4661:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4661:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw->position_timer [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4660:30: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4660:30: note: Assignment 'sw->position_timer=xmalloc(sizeof(struct timeval))', assigned value is 0 rdesktop-1.9.0/xwin.c:4661:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4663:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4663:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4664:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4664:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4665:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4665:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4665:23: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4665:23: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4666:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4666:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4666:21: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4666:21: note: Null pointer dereference rdesktop-1.9.0/xwin.c:4668:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sw [nullPointerOutOfMemory] rdesktop-1.9.0/xwin.c:4650:14: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:4650:14: note: Assignment 'sw=xmalloc(sizeof(struct seamless_window))', assigned value is 0 rdesktop-1.9.0/xwin.c:4668:2: note: Null pointer dereference rdesktop-1.9.0/xwin.c:1514:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] rdesktop-1.9.0/xwin.c:1513:25: note: Assuming allocation function fails rdesktop-1.9.0/xwin.c:1513:8: note: Assignment 'out=(unsigned char*)xmalloc(size)', assigned value is 0 rdesktop-1.9.0/xwin.c:1514:12: note: Null pointer addition rdesktop-1.9.0/xwin.c:3511:31: style:inconclusive: Function 'ui_create_cursor' argument 1 names different: declaration 'x' definition 'xhot'. [funcArgNamesDifferent] rdesktop-1.9.0/proto.h:286:42: note: Function 'ui_create_cursor' argument 1 names different: declaration 'x' definition 'xhot'. rdesktop-1.9.0/xwin.c:3511:31: note: Function 'ui_create_cursor' argument 1 names different: declaration 'x' definition 'xhot'. rdesktop-1.9.0/xwin.c:3511:50: style:inconclusive: Function 'ui_create_cursor' argument 2 names different: declaration 'y' definition 'yhot'. [funcArgNamesDifferent] rdesktop-1.9.0/proto.h:286:58: note: Function 'ui_create_cursor' argument 2 names different: declaration 'y' definition 'yhot'. rdesktop-1.9.0/xwin.c:3511:50: note: Function 'ui_create_cursor' argument 2 names different: declaration 'y' definition 'yhot'. rdesktop-1.9.0/xwin.c:362:36: style: Parameter 'win' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/xwin.c:483:19: style: Variable 'sw_below' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/xwin.c:590:50: style: Parameter 'xevent' can be declared as pointer to const. However it seems that 'sw_configurenotify_p' is a callback function, if 'xevent' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rdesktop-1.9.0/xwin.c:631:41: note: You might need to cast the function pointer here rdesktop-1.9.0/xwin.c:590:50: note: Parameter 'xevent' can be declared as pointer to const rdesktop-1.9.0/xwin.c:593:30: style: Variable 'context' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/xwin.c:937:56: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/xwin.c:1034:59: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/xwin.c:1370:58: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/xwin.c:1692:17: style: Variable 'visual_info' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/xwin.c:1812:24: style: Variable 'pf' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/xwin.c:3120:32: style: Parameter 'time' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/xwin.c:3414:31: style: Parameter 'andmask' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/xwin.c:3472:32: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] rdesktop-1.9.0/xwin.c:3636:15: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] rdesktop-1.9.0/xwin.c:213:16: style: struct member 'PropMotifWmHints::functions' is never used. [unusedStructMember] rdesktop-1.9.0/xwin.c:215:7: style: struct member 'PropMotifWmHints::inputMode' is never used. [unusedStructMember] rdesktop-1.9.0/xwin.c:216:16: style: struct member 'PropMotifWmHints::status' is never used. [unusedStructMember] rdesktop-1.9.0/xwin.c:1372:15: style: Variable 'pixel' is assigned a value that is never used. [unreadVariable] rdesktop-1.9.0/xwin.c:3429:9: style: Variable 'offs' is assigned a value that is never used. [unreadVariable] diff: DONE