2025-05-09 00:40 ftp://ftp.de.debian.org/debian/pool/main/x/x11vnc/x11vnc_0.9.17.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --library=cairo --library=openssl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 66c9938 (2025-05-08 13:55:11 +0200) count: 1687 1655 elapsed-time: 9.7 10.2 head-timing-info: old-timing-info: head results: x11vnc-0.9.17/misc/blockdpy.c:138:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/blockdpy.c:164:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DPMSModeOff [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:101:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:162:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:207:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:219:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:252:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:293:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:343:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:361:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:379:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:393:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:407:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:435:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/Xdummy.c:455:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/blockdpy.c:157:6: style: Local variable 'verbose' shadows outer variable [shadowVariable] x11vnc-0.9.17/misc/blockdpy.c:124:5: note: Shadowed declaration x11vnc-0.9.17/misc/blockdpy.c:157:6: note: Shadow variable x11vnc-0.9.17/misc/blockdpy.c:157:19: style: Local variable 'bg' shadows outer variable [shadowVariable] x11vnc-0.9.17/misc/blockdpy.c:125:5: note: Shadowed declaration x11vnc-0.9.17/misc/blockdpy.c:157:19: note: Shadow variable x11vnc-0.9.17/misc/blockdpy.c:159:8: style: Variable 'lock_cmd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/misc/blockdpy.c:160:8: style: Variable 'flag_file' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/misc/Xdummy.c:353:2: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] x11vnc-0.9.17/misc/Xdummy.c:300:9: style: Condition '0&&!closed_xf86Info_consoleFd' is always false [knownConditionTrueFalse] x11vnc-0.9.17/misc/Xdummy.c:123:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/misc/Xdummy.c:259:9: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/misc/turbovnc/tight.c:224:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:374:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:406:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:446:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitsPerPixel [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:487:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfbMemory [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:488:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfbMemory [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:489:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfbMemory [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:535:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:552:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:649:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ublen [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:686:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ublen [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:708:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ublen [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:776:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ublen [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:841:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ublen [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:872:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable updateBuf [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:929:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable updateBuf [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:1171:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbTranslateNone [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:1172:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbTranslateNone [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:1273:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bigEndian [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:1405:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitsPerPixel [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/8to24.c:204:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/8to24.c:730:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/8to24.c:1095:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/8to24.c:1205:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/8to24.c:1234:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/8to24.c:1479:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/8to24.c:1832:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/8to24.c:2107:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:294:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:380:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:489:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:518:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:551:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:569:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:616:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:638:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:858:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:874:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:896:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:907:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:972:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:1018:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:1123:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:1198:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:1290:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:1319:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:1334:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:1351:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:1378:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:1562:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:1616:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/appshare.c:1686:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/misc/turbovnc/tight.c:281:14: style: Local variable 'y' shadows outer argument [shadowArgument] x11vnc-0.9.17/misc/turbovnc/tight.c:200:12: note: Shadowed declaration x11vnc-0.9.17/misc/turbovnc/tight.c:281:14: note: Shadow variable x11vnc-0.9.17/misc/turbovnc/tight.c:1441:40: style: Local variable 'j' shadows outer variable [shadowVariable] x11vnc-0.9.17/misc/turbovnc/tight.c:1395:17: note: Shadowed declaration x11vnc-0.9.17/misc/turbovnc/tight.c:1441:40: note: Shadow variable x11vnc-0.9.17/misc/turbovnc/tight.c:924:11: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/misc/turbovnc/tight.c:966:12: style: Variable 'data' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/misc/turbovnc/tight.c:1069:1: style: Variable 'data' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/misc/turbovnc/tight.c:1070:1: style: Variable 'data' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/misc/turbovnc/tight.c:1171:1: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/misc/turbovnc/tight.c:1172:1: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/misc/turbovnc/tight.c:1264:21: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/misc/turbovnc/tight.c:1267:13: style: Variable 'buf32' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/misc/turbovnc/tight.c:1450:21: style: Variable 'srcptr2' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/misc/turbovnc/tight.c:869:14: style: Unused variable: i [unusedVariable] x11vnc-0.9.17/misc/turbovnc/tight.c:1403:9: style: Unused variable: dy [unusedVariable] x11vnc-0.9.17/src/8to24.c:238:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/8to24.c:257:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/8to24.c:1120:10: style: Condition '!poll_line(rect.x1,rect.x2,rect.y1,i,mod)' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/8to24.c:1120:21: note: Calling function 'poll_line' returns 1 x11vnc-0.9.17/src/8to24.c:1120:10: note: Condition '!poll_line(rect.x1,rect.x2,rect.y1,i,mod)' is always false x11vnc-0.9.17/src/8to24.c:1902:7: style: Condition '0&&line%100==0' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/8to24.c:2004:8: style: Condition '!get_cmap(j,cmaps[j])' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/8to24.c:2004:18: note: Calling function 'get_cmap' returns 0 x11vnc-0.9.17/src/8to24.c:2004:8: note: Condition '!get_cmap(j,cmaps[j])' is always true x11vnc-0.9.17/src/8to24.c:1994:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/8to24.c:1815:15: note: Shadowed declaration x11vnc-0.9.17/src/8to24.c:1994:7: note: Shadow variable x11vnc-0.9.17/src/8to24.c:1994:10: style: Local variable 'j' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/8to24.c:1815:18: note: Shadowed declaration x11vnc-0.9.17/src/8to24.c:1994:10: note: Shadow variable x11vnc-0.9.17/src/8to24.c:606:41: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/8to24.c:707:71: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/8to24.c:819:29: style: Parameter 'xi' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/8to24.c:819:41: style: Parameter 'visual' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/8to24.c:819:69: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/8to24.c:1522:32: style: Parameter 'xi' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/8to24.c:1811:17: style: Variable 'uc' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/8to24.c:1812:18: style: Variable 'us' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/8to24.c:1076:9: style: Variable 'inrun' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/avahi.c:156:6: style: Condition '!try_avahi_helper(name,host,port)' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/avahi.c:156:23: note: Calling function 'try_avahi_helper' returns 0 x11vnc-0.9.17/src/avahi.c:156:6: note: Condition '!try_avahi_helper(name,host,port)' is always true x11vnc-0.9.17/src/avahi.c:54:35: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/avahi.c:54:47: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/appshare.c:600:18: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] x11vnc-0.9.17/src/appshare.c:652:18: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] x11vnc-0.9.17/src/appshare.c:1030:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] x11vnc-0.9.17/src/cleanup.c:237:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cleanup.c:307:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cleanup.c:339:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cleanup.c:459:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cleanup.c:482:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cleanup.c:537:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cleanup.c:743:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cleanup.c:636:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/cleanup.c:448:11: warning: If memory allocation fails, then there is a possible null pointer dereference: crash_stack_command1 [nullPointerOutOfMemory] x11vnc-0.9.17/src/cleanup.c:444:40: note: Assuming allocation function fails x11vnc-0.9.17/src/cleanup.c:444:25: note: Assignment 'crash_stack_command1=(char*)malloc(buffer_size)', assigned value is 0 x11vnc-0.9.17/src/cleanup.c:448:11: note: Null pointer dereference x11vnc-0.9.17/src/cleanup.c:452:11: warning: If memory allocation fails, then there is a possible null pointer dereference: crash_stack_command2 [nullPointerOutOfMemory] x11vnc-0.9.17/src/cleanup.c:445:40: note: Assuming allocation function fails x11vnc-0.9.17/src/cleanup.c:445:25: note: Assignment 'crash_stack_command2=(char*)malloc(buffer_size)', assigned value is 0 x11vnc-0.9.17/src/cleanup.c:452:11: note: Null pointer dereference x11vnc-0.9.17/src/cleanup.c:454:11: warning: If memory allocation fails, then there is a possible null pointer dereference: crash_debug_command [nullPointerOutOfMemory] x11vnc-0.9.17/src/cleanup.c:446:40: note: Assuming allocation function fails x11vnc-0.9.17/src/cleanup.c:446:25: note: Assignment 'crash_debug_command=(char*)malloc(buffer_size)', assigned value is 0 x11vnc-0.9.17/src/cleanup.c:454:11: note: Null pointer dereference x11vnc-0.9.17/src/cleanup.c:152:13: style: Local variable 'depth' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/x11vnc.h:495:17: note: Shadowed declaration x11vnc-0.9.17/src/cleanup.c:152:13: note: Shadow variable x11vnc-0.9.17/src/cleanup.c:273:26: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/cleanup.c:282:28: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/cleanup.c:290:35: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/cleanup.c:425:34: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/cleanup.c:629:31: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/cleanup.c:630:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/cleanup.c:338:13: style: Variable 'reopen' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/cleanup.c:631:13: style: Variable 'ignore' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/cleanup.c:636:4: style: Variable 'p' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/cleanup.c:631:6: style: Variable 'ignore' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/cleanup.c:755:6: style: Unused variable: fd [unusedVariable] x11vnc-0.9.17/src/appshare.c:666:10: style: Condition 'appshare_debug' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/appshare.c:673:9: style: Condition 'appshare_debug' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/appshare.c:671:7: note: Assuming that condition '!appshare_debug' is not redundant x11vnc-0.9.17/src/appshare.c:673:9: note: Condition 'appshare_debug' is always false x11vnc-0.9.17/src/appshare.c:730:6: style: Condition '!ok' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/appshare.c:722:11: note: Assignment 'ok=0', assigned value is 0 x11vnc-0.9.17/src/appshare.c:730:6: note: Condition '!ok' is always true x11vnc-0.9.17/src/appshare.c:743:6: style: Condition 'ok' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/appshare.c:736:11: note: Assignment 'ok=0', assigned value is 0 x11vnc-0.9.17/src/appshare.c:743:6: note: Condition 'ok' is always false x11vnc-0.9.17/src/appshare.c:793:6: style: Condition '!rc' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/appshare.c:785:12: note: Assignment 'rc=0', assigned value is 0 x11vnc-0.9.17/src/appshare.c:793:6: note: Condition '!rc' is always true x11vnc-0.9.17/src/appshare.c:431:14: warning: If memory allocation fails, then there is a possible null pointer dereference: connto [nullPointerOutOfMemory] x11vnc-0.9.17/src/appshare.c:419:27: note: Assuming allocation function fails x11vnc-0.9.17/src/appshare.c:419:12: note: Assignment 'connto=(char*)calloc(len,1)', assigned value is 0 x11vnc-0.9.17/src/appshare.c:431:14: note: Null pointer dereference x11vnc-0.9.17/src/appshare.c:486:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] x11vnc-0.9.17/src/appshare.c:441:23: note: Assuming allocation function fails x11vnc-0.9.17/src/appshare.c:441:8: note: Assignment 'cmd=(char*)calloc(len,1)', assigned value is 0 x11vnc-0.9.17/src/appshare.c:486:9: note: Null pointer dereference x11vnc-0.9.17/src/appshare.c:487:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] x11vnc-0.9.17/src/appshare.c:441:23: note: Assuming allocation function fails x11vnc-0.9.17/src/appshare.c:441:8: note: Assignment 'cmd=(char*)calloc(len,1)', assigned value is 0 x11vnc-0.9.17/src/appshare.c:487:9: note: Null pointer dereference x11vnc-0.9.17/src/appshare.c:1671:12: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] x11vnc-0.9.17/src/appshare.c:1661:16: note: Assuming allocation function fails x11vnc-0.9.17/src/appshare.c:1661:16: note: Assignment 'file=strdup(tracktmp)', assigned value is 0 x11vnc-0.9.17/src/appshare.c:1671:12: note: Null pointer dereference x11vnc-0.9.17/src/appshare.c:1044:9: style: Local variable 'f' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/appshare.c:1039:10: note: Shadowed declaration x11vnc-0.9.17/src/appshare.c:1044:9: note: Shadow variable x11vnc-0.9.17/src/appshare.c:318:30: style: Parameter 'cl' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/appshare.c:355:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/appshare.c:372:8: style: Variable 'suffix' can be declared as const array [constVariable] x11vnc-0.9.17/src/appshare.c:690:33: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/appshare.c:690:49: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/appshare.c:765:28: style: Variable 'list' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/appshare.c:783:36: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/appshare.c:783:44: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/appshare.c:902:24: style: Variable 'list' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/appshare.c:1010:26: style: Parameter 'client' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/appshare.c:1615:26: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/appshare.c:1656:34: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/appshare.c:1713:12: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/appshare.c:1889:35: style: Parameter 'argv' can be declared as const array [constParameter] x11vnc-0.9.17/src/appshare.c:1891:8: style: Variable 'app_str' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/appshare.c:1892:8: style: Variable 'dpy_str' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/appshare.c:1288:9: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] x11vnc-0.9.17/src/appshare.c:547:6: style: Unused variable: status [unusedVariable] x11vnc-0.9.17/src/appshare.c:562:10: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:564:20: style: Variable 'last_check' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:566:18: style: Variable 'ms' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:562:6: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:564:9: style: Variable 'last_check' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:764:6: style: Unused variable: ok [unusedVariable] x11vnc-0.9.17/src/appshare.c:765:9: style: Unused variable: r [unusedVariable] x11vnc-0.9.17/src/appshare.c:765:28: style: Variable 'list' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:766:15: style: Unused variable: nchild [unusedVariable] x11vnc-0.9.17/src/appshare.c:784:9: style: Unused variable: cr [unusedVariable] x11vnc-0.9.17/src/appshare.c:904:9: style: Variable 'ok' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:902:9: style: Unused variable: w [unusedVariable] x11vnc-0.9.17/src/appshare.c:902:12: style: Unused variable: r [unusedVariable] x11vnc-0.9.17/src/appshare.c:902:15: style: Unused variable: parent [unusedVariable] x11vnc-0.9.17/src/appshare.c:902:24: style: Variable 'list' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:903:15: style: Unused variable: nchild [unusedVariable] x11vnc-0.9.17/src/appshare.c:904:6: style: Variable 'ok' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:944:22: style: Variable 'free' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:944:6: style: Unused variable: i [unusedVariable] x11vnc-0.9.17/src/appshare.c:944:17: style: Variable 'free' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:945:23: style: Unused variable: old_handler [unusedVariable] x11vnc-0.9.17/src/appshare.c:1893:20: style: Variable 'xselectinput' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:1890:6: style: Unused variable: i [unusedVariable] x11vnc-0.9.17/src/appshare.c:1891:8: style: Variable 'app_str' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:1892:8: style: Variable 'dpy_str' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/appshare.c:1893:7: style: Variable 'xselectinput' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/connections.c:133:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_NORMAL [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:273:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbClientPtr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:501:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_PROTOCOL_VERSION [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:814:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clientMutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:1098:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:1651:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:2058:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:2155:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:2276:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:2361:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:2739:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:3233:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:3839:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:3854:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:3875:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:3894:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_CLIENT_ACCEPT [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:3927:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clientMutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:4242:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:4325:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/connections.c:4389:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cursor.c:817:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cursor.c:1019:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cursor.c:1398:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable richSource [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cursor.c:1550:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cursor.c:1652:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cursor.c:1694:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cursor.c:1745:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cursor.c:1867:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cursor.c:2078:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/cursor.c:2133:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/gui.c:280:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/gui.c:643:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/gui.c:261:9: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] x11vnc-0.9.17/src/gui.c:417:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/gui.c:439:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/gui.c:487:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/gui.c:502:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/gui.c:589:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/gui.c:646:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/gui.c:760:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/gui.c:782:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/gui.c:621:26: style: Condition 'strstr(p,"setp")&&0' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/gui.c:705:27: style: Condition 'tray_manager_running(test_dpy,NULL)' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/gui.c:705:27: note: Calling function 'tray_manager_running' returns 0 x11vnc-0.9.17/src/gui.c:705:27: note: Condition 'tray_manager_running(test_dpy,NULL)' is always false x11vnc-0.9.17/src/gui.c:412:37: warning: If memory allocation fails, then there is a possible null pointer dereference: orig_path [nullPointerOutOfMemory] x11vnc-0.9.17/src/gui.c:410:21: note: Assuming allocation function fails x11vnc-0.9.17/src/gui.c:410:21: note: Assignment 'orig_path=strdup("/bin:/usr/bin:/usr/bin/X11")', assigned value is 0 x11vnc-0.9.17/src/gui.c:412:37: note: Null pointer dereference x11vnc-0.9.17/src/gui.c:413:9: warning: If memory allocation fails, then there is a possible null pointer dereference: full_path [nullPointerOutOfMemory] x11vnc-0.9.17/src/gui.c:412:29: note: Assuming allocation function fails x11vnc-0.9.17/src/gui.c:412:14: note: Assignment 'full_path=(char*)malloc(strlen(orig_path)+strlen(extra_path)+1)', assigned value is 0 x11vnc-0.9.17/src/gui.c:413:9: note: Null pointer dereference x11vnc-0.9.17/src/gui.c:413:20: warning: If memory allocation fails, then there is a possible null pointer dereference: orig_path [nullPointerOutOfMemory] x11vnc-0.9.17/src/gui.c:410:21: note: Assuming allocation function fails x11vnc-0.9.17/src/gui.c:410:21: note: Assignment 'orig_path=strdup("/bin:/usr/bin:/usr/bin/X11")', assigned value is 0 x11vnc-0.9.17/src/gui.c:413:20: note: Null pointer dereference x11vnc-0.9.17/src/gui.c:414:9: warning: If memory allocation fails, then there is a possible null pointer dereference: full_path [nullPointerOutOfMemory] x11vnc-0.9.17/src/gui.c:412:29: note: Assuming allocation function fails x11vnc-0.9.17/src/gui.c:412:14: note: Assignment 'full_path=(char*)malloc(strlen(orig_path)+strlen(extra_path)+1)', assigned value is 0 x11vnc-0.9.17/src/gui.c:414:9: note: Null pointer dereference x11vnc-0.9.17/src/gui.c:416:17: warning: If memory allocation fails, then there is a possible null pointer dereference: full_path [nullPointerOutOfMemory] x11vnc-0.9.17/src/gui.c:412:29: note: Assuming allocation function fails x11vnc-0.9.17/src/gui.c:412:14: note: Assignment 'full_path=(char*)malloc(strlen(orig_path)+strlen(extra_path)+1)', assigned value is 0 x11vnc-0.9.17/src/gui.c:416:17: note: Null pointer dereference x11vnc-0.9.17/src/gui.c:536:11: warning: If resource allocation fails, then there is a possible null pointer dereference: pipe [nullPointerOutOfResources] x11vnc-0.9.17/src/gui.c:531:15: note: Assuming allocation function fails x11vnc-0.9.17/src/gui.c:531:15: note: Assignment 'pipe=popen(cmd,"w")', assigned value is 0 x11vnc-0.9.17/src/gui.c:536:11: note: Null pointer dereference x11vnc-0.9.17/src/gui.c:537:10: warning: If resource allocation fails, then there is a possible null pointer dereference: pipe [nullPointerOutOfResources] x11vnc-0.9.17/src/gui.c:531:15: note: Assuming allocation function fails x11vnc-0.9.17/src/gui.c:531:15: note: Assignment 'pipe=popen(cmd,"w")', assigned value is 0 x11vnc-0.9.17/src/gui.c:537:10: note: Null pointer dereference x11vnc-0.9.17/src/gui.c:630:16: warning: If memory allocation fails, then there is a possible null pointer dereference: icon_mode_params [nullPointerOutOfMemory] x11vnc-0.9.17/src/gui.c:629:30: note: Assuming allocation function fails x11vnc-0.9.17/src/gui.c:629:30: note: Assignment 'icon_mode_params=strdup(q+1)', assigned value is 0 x11vnc-0.9.17/src/gui.c:630:16: note: Null pointer dereference x11vnc-0.9.17/src/gui.c:759:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: p1 [nullPointerOutOfMemory] x11vnc-0.9.17/src/gui.c:757:23: note: Assuming allocation function fails x11vnc-0.9.17/src/gui.c:757:8: note: Assignment 'p1=(char*)malloc(10+strlen(p0)+strlen(extra_path))', assigned value is 0 x11vnc-0.9.17/src/gui.c:759:15: note: Null pointer dereference x11vnc-0.9.17/src/gui.c:486:10: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/gui.c:274:54: note: Shadowed declaration x11vnc-0.9.17/src/gui.c:486:10: note: Shadow variable x11vnc-0.9.17/src/gui.c:717:15: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/gui.c:563:12: note: Shadowed declaration x11vnc-0.9.17/src/gui.c:717:15: note: Shadow variable x11vnc-0.9.17/src/gui.c:216:42: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/gui.c:216:53: style: Parameter 'manager' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/gui.c:446:9: style: Variable 'w' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/gui.c:616:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/gui.c:626:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/gui.c:638:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/gui.c:717:15: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/gui.c:717:29: style: Variable 'p0' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/gui.c:721:9: style: Variable 'dstr' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/gui.c:721:21: style: Variable 'wish' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/gui.c:526:12: error: Uninitialized variable: cmd [uninitvar] x11vnc-0.9.17/src/gui.c:261:13: style: Variable 'sig' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/help.c:5825:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/help.c:5901:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/help.c:6068:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/help.c:6445:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/help.c:5827:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/help.c:5840:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/help.c:5823:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/help.c:5900:39: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/help.c:5988:7: style: Variable 'str1' can be declared as const array [constVariable] x11vnc-0.9.17/src/help.c:6003:7: style: Variable 'str2' can be declared as const array [constVariable] x11vnc-0.9.17/src/help.c:6045:7: style: Variable 'str3' can be declared as const array [constVariable] x11vnc-0.9.17/src/help.c:6053:7: style: Variable 'str4' can be declared as const array [constVariable] x11vnc-0.9.17/src/help.c:6061:7: style: Variable 'str5' can be declared as const array [constVariable] x11vnc-0.9.17/src/help.c:6089:7: style: Variable 'license' can be declared as const array [constVariable] x11vnc-0.9.17/src/help.c:6436:7: style: Variable 'top' can be declared as const array [constVariable] x11vnc-0.9.17/src/inet.c:82:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/inet.c:422:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_ANY [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/inet.c:488:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/inet.c:661:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sock [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/inet.c:77:7: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] x11vnc-0.9.17/src/inet.c:470:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/inet.c:473:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/inet.c:478:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/inet.c:483:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/inet.c:252:6: style: Condition '!saddr_ip_str' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/inet.c:237:23: note: Assignment 'saddr_ip_str=NULL', assigned value is 0 x11vnc-0.9.17/src/inet.c:252:6: note: Condition '!saddr_ip_str' is always true x11vnc-0.9.17/src/inet.c:325:7: style: Condition 'block' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/inet.c:276:15: note: Assignment 'block=0', assigned value is 0 x11vnc-0.9.17/src/inet.c:325:7: note: Condition 'block' is always false x11vnc-0.9.17/src/inet.c:325:16: style: Condition 'refused' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/inet.c:277:17: note: Assignment 'refused=0', assigned value is 0 x11vnc-0.9.17/src/inet.c:325:16: note: Condition 'refused' is always false x11vnc-0.9.17/src/inet.c:441:12: style: Condition 'sock>=0' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/inet.c:440:21: note: Calling function 'listen6' returns -1 x11vnc-0.9.17/src/inet.c:440:21: note: Assignment 'sock=listen6(port)', assigned value is -1 x11vnc-0.9.17/src/inet.c:441:12: note: Condition 'sock>=0' is always false x11vnc-0.9.17/src/inet.c:398:14: warning: Either the condition '!user' is redundant or there is possible null pointer dereference: user. [nullPointerRedundantCheck] x11vnc-0.9.17/src/inet.c:274:6: note: Assuming that condition '!user' is not redundant x11vnc-0.9.17/src/inet.c:398:14: note: Null pointer dereference x11vnc-0.9.17/src/inet.c:876:15: warning: If memory allocation fails, then there is a possible null pointer dereference: host2 [nullPointerOutOfMemory] x11vnc-0.9.17/src/inet.c:872:18: note: Assuming allocation function fails x11vnc-0.9.17/src/inet.c:872:18: note: Assignment 'host2=strdup(host+1)', assigned value is 0 x11vnc-0.9.17/src/inet.c:876:15: note: Null pointer dereference x11vnc-0.9.17/src/inet.c:325:13: style: Same expression on both sides of '||' because 'block' and 'refused' represent the same value. [knownConditionTrueFalse] x11vnc-0.9.17/src/inet.c:276:15: note: 'block' is assigned value '0' here. x11vnc-0.9.17/src/inet.c:277:17: note: 'refused' is assigned value '0' here. x11vnc-0.9.17/src/inet.c:325:13: note: Same expression on both sides of '||' because 'block' and 'refused' represent the same value. x11vnc-0.9.17/src/inet.c:138:19: style:inconclusive: Function 'ipv6_ip' argument 1 names different: declaration 'host' definition 'host_in'. [funcArgNamesDifferent] x11vnc-0.9.17/src/inet.c:47:19: note: Function 'ipv6_ip' argument 1 names different: declaration 'host' definition 'host_in'. x11vnc-0.9.17/src/inet.c:138:19: note: Function 'ipv6_ip' argument 1 names different: declaration 'host' definition 'host_in'. x11vnc-0.9.17/src/inet.c:68:21: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/inet.c:88:22: style: Parameter 'raw' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/inet.c:108:20: style: Parameter 'raw' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/inet.c:112:21: style: Parameter 'ip' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/inet.c:139:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/inet.c:177:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/inet.c:237:8: style: Variable 'saddr_ip_str' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/inet.c:268:24: style: Variable 'user' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/inet.c:451:8: style: Variable 'rhost' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/inet.c:451:16: style: Variable 'rport' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/inet.c:451:24: style: Variable 'lhost' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/inet.c:451:32: style: Variable 'lport' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/inet.c:512:41: style: Parameter 'paddr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/inet.c:525:39: style: Parameter 'paddr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/inet.c:659:23: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/inet.c:239:12: style: Variable 'saddr_len' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/inet.c:339:6: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/inet.c:382:7: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/cursor.c:1638:6: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/cursor.c:1514:11: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.17/src/cursor.c:1638:6: note: Condition 'db' is always false x11vnc-0.9.17/src/cursor.c:650:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ci [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:649:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:649:8: note: Assignment 'ci=(struct cursor_info_t*)malloc(sizeof(struct cursor_info_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:650:3: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:651:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ci [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:649:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:649:8: note: Assignment 'ci=(struct cursor_info_t*)malloc(sizeof(struct cursor_info_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:651:3: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:652:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ci [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:649:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:649:8: note: Assignment 'ci=(struct cursor_info_t*)malloc(sizeof(struct cursor_info_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:652:3: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:653:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ci [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:649:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:649:8: note: Assignment 'ci=(struct cursor_info_t*)malloc(sizeof(struct cursor_info_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:653:3: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:654:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ci [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:649:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:649:8: note: Assignment 'ci=(struct cursor_info_t*)malloc(sizeof(struct cursor_info_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:654:3: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:655:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ci [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:649:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:649:8: note: Assignment 'ci=(struct cursor_info_t*)malloc(sizeof(struct cursor_info_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:655:3: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:656:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ci [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:649:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:649:8: note: Assignment 'ci=(struct cursor_info_t*)malloc(sizeof(struct cursor_info_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:656:3: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:657:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ci [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:649:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:649:8: note: Assignment 'ci=(struct cursor_info_t*)malloc(sizeof(struct cursor_info_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:657:3: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:770:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:757:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:757:13: note: Assignment 'pixels=(uint32_t*)malloc((unsigned long)w*h*sizeof(uint32_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:767:8: note: p is assigned 'pixels+k' here. x11vnc-0.9.17/src/cursor.c:770:7: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:1058:2: warning: If memory allocation fails, then there is a possible null pointer dereference: bitmap [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:1057:26: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:1057:11: note: Assignment 'bitmap=(char*)malloc(len+1)', assigned value is 0 x11vnc-0.9.17/src/cursor.c:1058:2: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:1425:16: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:1422:24: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:1422:9: note: Assignment 'dst=(char*)malloc((unsigned long)w*h*cbpp/8)', assigned value is 0 x11vnc-0.9.17/src/cursor.c:1425:16: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:1479:14: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:1476:33: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:1476:33: note: Assignment 'multiple_cursors_mode=strdup("default")', assigned value is 0 x11vnc-0.9.17/src/cursor.c:1477:7: note: Assignment 's=multiple_cursors_mode', assigned value is 0 x11vnc-0.9.17/src/cursor.c:1479:14: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:1492:8: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] x11vnc-0.9.17/src/cursor.c:1489:34: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:1489:34: note: Assignment 'multiple_cursors_mode=strdup("X")', assigned value is 0 x11vnc-0.9.17/src/cursor.c:1490:8: note: Assignment 's=multiple_cursors_mode', assigned value is 0 x11vnc-0.9.17/src/cursor.c:1492:8: note: Null pointer dereference x11vnc-0.9.17/src/cursor.c:767:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/cursor.c:757:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:757:13: note: Assignment 'pixels=(uint32_t*)malloc((unsigned long)w*h*sizeof(uint32_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:767:17: note: Null pointer addition x11vnc-0.9.17/src/cursor.c:1248:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] x11vnc-0.9.17/src/cursor.c:1250:4: note: Found duplicate branches for 'if' and 'else'. x11vnc-0.9.17/src/cursor.c:1248:9: note: Found duplicate branches for 'if' and 'else'. x11vnc-0.9.17/src/cursor.c:1607:14: style: The comparison 'which == which0' is always true because 'which' and 'which0' represent the same value. [knownConditionTrueFalse] x11vnc-0.9.17/src/cursor.c:1580:17: note: 'which0' is assigned value 'which' here. x11vnc-0.9.17/src/cursor.c:1607:14: note: The comparison 'which == which0' is always true because 'which' and 'which0' represent the same value. x11vnc-0.9.17/src/cursor.c:2075:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] x11vnc-0.9.17/src/cursor.c:1517:7: style: Local variable 'depth' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/x11vnc.h:495:17: note: Shadowed declaration x11vnc-0.9.17/src/cursor.c:1517:7: note: Shadow variable x11vnc-0.9.17/src/cursor.c:2130:21: style: Local variable 'bpp' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/x11vnc.h:495:12: note: Shadowed declaration x11vnc-0.9.17/src/cursor.c:2130:21: note: Shadow variable x11vnc-0.9.17/src/cursor.c:2188:29: style: Local variable 'bpp' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/x11vnc.h:495:12: note: Shadowed declaration x11vnc-0.9.17/src/cursor.c:2188:29: note: Shadow variable x11vnc-0.9.17/src/cursor.c:2334:21: style: Local variable 'bpp' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/x11vnc.h:495:12: note: Shadowed declaration x11vnc-0.9.17/src/cursor.c:2334:21: note: Shadow variable x11vnc-0.9.17/src/cursor.c:887:38: style: Parameter 'depth' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/cursor.c:887:53: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/cursor.c:887:72: style: Parameter 'winfo' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/cursor.c:1452:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/cursor.c:1686:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/cursor.c:2186:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/cursor.c:2247:23: style: Variable 'aptr' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/cursor.c:2268:19: style: Variable 'dst' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/cursor.c:2332:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/cursor.c:1604:10: error: Uninitialized variable: r [uninitvar] x11vnc-0.9.17/src/cursor.c:1604:16: error: Uninitialized variable: d [uninitvar] x11vnc-0.9.17/src/cursor.c:1604:22: error: Uninitialized variable: bw [uninitvar] x11vnc-0.9.17/src/cursor.c:1604:29: error: Uninitialized variable: h [uninitvar] x11vnc-0.9.17/src/cursor.c:1604:35: error: Uninitialized variable: w [uninitvar] x11vnc-0.9.17/src/cursor.c:1604:41: error: Uninitialized variable: y [uninitvar] x11vnc-0.9.17/src/cursor.c:1604:47: error: Uninitialized variable: x [uninitvar] x11vnc-0.9.17/src/cursor.c:2075:7: error: Uninitialized variable: mask [uninitvar] x11vnc-0.9.17/src/cursor.c:2075:16: error: Uninitialized variable: win_y [uninitvar] x11vnc-0.9.17/src/cursor.c:2075:26: error: Uninitialized variable: win_x [uninitvar] x11vnc-0.9.17/src/cursor.c:2075:36: error: Uninitialized variable: child_w [uninitvar] x11vnc-0.9.17/src/cursor.c:2075:48: error: Uninitialized variable: root_w [uninitvar] x11vnc-0.9.17/src/cursor.c:2084:7: error: Uninitialized variable: root_x [uninitvar] x11vnc-0.9.17/src/cursor.c:2084:27: error: Uninitialized variable: root_y [uninitvar] x11vnc-0.9.17/src/cursor.c:1521:17: style: Variable 'old_handler' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1584:21: style: Variable 'x' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1584:24: style: Variable 'y' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1585:18: style: Variable 'w' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1585:21: style: Variable 'h' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1585:24: style: Variable 'bw' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1585:28: style: Variable 'd' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1586:12: style: Variable 'r' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1989:14: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/cursor.c:1988:9: style: Variable 'root_w' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1988:17: style: Variable 'child_w' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1990:22: style: Variable 'win_x' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1990:29: style: Variable 'win_y' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/cursor.c:1992:15: style: Variable 'mask' is not assigned a value. [unassignedVariable] x11vnc-0.9.17/src/keyboard.c:229:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/keyboard.c:464:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/keyboard.c:2490:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/keyboard.c:2642:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/keyboard.c:2780:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/keyboard.c:2831:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/keyboard.c:2858:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/keyboard.c:2953:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/keyboard.c:3090:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/linuxfb.c:176:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/linuxfb.c:298:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/linuxfb.c:175:3: error: Memory leak: file [memleak] x11vnc-0.9.17/src/linuxfb.c:198:3: error: Memory leak: atparms [memleak] x11vnc-0.9.17/src/linuxfb.c:281:3: error: Memory leak: in [memleak] x11vnc-0.9.17/src/linuxfb.c:291:2: error: Memory leak: in [memleak] x11vnc-0.9.17/src/linuxfb.c:92:13: warning: If memory allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfMemory] x11vnc-0.9.17/src/linuxfb.c:83:23: note: Assuming allocation function fails x11vnc-0.9.17/src/linuxfb.c:83:23: note: Assignment 'in=strdup(str)', assigned value is 0 x11vnc-0.9.17/src/linuxfb.c:92:13: note: Null pointer dereference x11vnc-0.9.17/src/linuxfb.c:106:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfMemory] x11vnc-0.9.17/src/linuxfb.c:94:23: note: Assuming allocation function fails x11vnc-0.9.17/src/linuxfb.c:94:8: note: Assignment 'in=(char*)malloc(strlen("console:")+strlen(str)+1)', assigned value is 0 x11vnc-0.9.17/src/linuxfb.c:106:13: note: Null pointer dereference x11vnc-0.9.17/src/linuxfb.c:125:13: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] x11vnc-0.9.17/src/linuxfb.c:123:16: note: Assuming allocation function fails x11vnc-0.9.17/src/linuxfb.c:123:16: note: Assignment 'file=strdup("/dev/fb")', assigned value is 0 x11vnc-0.9.17/src/linuxfb.c:125:13: note: Null pointer dereference x11vnc-0.9.17/src/linuxfb.c:131:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] x11vnc-0.9.17/src/linuxfb.c:126:22: note: Assuming allocation function fails x11vnc-0.9.17/src/linuxfb.c:126:7: note: Assignment 'q=(char*)malloc(strlen("/dev/")+strlen(file)+1)', assigned value is 0 x11vnc-0.9.17/src/linuxfb.c:129:10: note: Assignment 'file=q', assigned value is 0 x11vnc-0.9.17/src/linuxfb.c:131:14: note: Null pointer dereference x11vnc-0.9.17/src/linuxfb.c:176:13: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] x11vnc-0.9.17/src/linuxfb.c:175:16: note: Assuming allocation function fails x11vnc-0.9.17/src/linuxfb.c:175:16: note: Assignment 'file=strdup(tmp)', assigned value is 0 x11vnc-0.9.17/src/linuxfb.c:176:13: note: Null pointer dereference x11vnc-0.9.17/src/linuxfb.c:173:7: style: Local variable 'fd' shadows outer argument [shadowArgument] x11vnc-0.9.17/src/linuxfb.c:82:37: note: Shadowed declaration x11vnc-0.9.17/src/linuxfb.c:173:7: note: Shadow variable x11vnc-0.9.17/src/linuxfb.c:59:27: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/linuxfb.c:355:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/linuxfb.c:357:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/linuxfb.c:359:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/linuxfb.c:361:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/linuxfb.c:363:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/linuxfb.c:365:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/linuxfb.c:367:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/linuxfb.c:369:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/linuxfb.c:371:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/linuxfb.c:373:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/linuxfb.c:375:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/linuxfb.c:378:11: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/keyboard.c:779:15: style: Condition 'ksym2=0' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/keyboard.c:3242:32: style: Condition 'down' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/keyboard.c:3237:6: note: Assuming that condition '!down' is not redundant x11vnc-0.9.17/src/keyboard.c:3242:32: note: Condition 'down' is always false x11vnc-0.9.17/src/keyboard.c:3263:32: style: Condition 'down' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/keyboard.c:3271:32: style: Condition 'down' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/keyboard.c:3414:7: style: Condition 'new_kc' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/keyboard.c:3413:26: note: Calling function 'add_keysym' returns 0 x11vnc-0.9.17/src/keyboard.c:3413:26: note: Assignment 'new_kc=add_keysym(keysym)', assigned value is 0 x11vnc-0.9.17/src/keyboard.c:3414:7: note: Condition 'new_kc' is always false x11vnc-0.9.17/src/keyboard.c:657:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.17/src/keyboard.c:685:2: warning: If memory allocation fails, then there is a possible null pointer dereference: remap [nullPointerOutOfMemory] x11vnc-0.9.17/src/keyboard.c:684:31: note: Assuming allocation function fails x11vnc-0.9.17/src/keyboard.c:684:10: note: Assignment 'remap=(struct keyremap_t*)malloc((unsigned long)sizeof(struct keyremap_t))', assigned value is 0 x11vnc-0.9.17/src/keyboard.c:685:2: note: Null pointer dereference x11vnc-0.9.17/src/keyboard.c:686:2: warning: If memory allocation fails, then there is a possible null pointer dereference: remap [nullPointerOutOfMemory] x11vnc-0.9.17/src/keyboard.c:684:31: note: Assuming allocation function fails x11vnc-0.9.17/src/keyboard.c:684:10: note: Assignment 'remap=(struct keyremap_t*)malloc((unsigned long)sizeof(struct keyremap_t))', assigned value is 0 x11vnc-0.9.17/src/keyboard.c:686:2: note: Null pointer dereference x11vnc-0.9.17/src/keyboard.c:687:2: warning: If memory allocation fails, then there is a possible null pointer dereference: remap [nullPointerOutOfMemory] x11vnc-0.9.17/src/keyboard.c:684:31: note: Assuming allocation function fails x11vnc-0.9.17/src/keyboard.c:684:10: note: Assignment 'remap=(struct keyremap_t*)malloc((unsigned long)sizeof(struct keyremap_t))', assigned value is 0 x11vnc-0.9.17/src/keyboard.c:687:2: note: Null pointer dereference x11vnc-0.9.17/src/keyboard.c:688:2: warning: If memory allocation fails, then there is a possible null pointer dereference: remap [nullPointerOutOfMemory] x11vnc-0.9.17/src/keyboard.c:684:31: note: Assuming allocation function fails x11vnc-0.9.17/src/keyboard.c:684:10: note: Assignment 'remap=(struct keyremap_t*)malloc((unsigned long)sizeof(struct keyremap_t))', assigned value is 0 x11vnc-0.9.17/src/keyboard.c:688:2: note: Null pointer dereference x11vnc-0.9.17/src/keyboard.c:744:15: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] x11vnc-0.9.17/src/keyboard.c:743:14: note: Assuming allocation function fails x11vnc-0.9.17/src/keyboard.c:743:14: note: Assignment 'p=strdup(list[i]+2)', assigned value is 0 x11vnc-0.9.17/src/keyboard.c:744:15: note: Null pointer dereference x11vnc-0.9.17/src/keyboard.c:2408:10: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] x11vnc-0.9.17/src/keyboard.c:2443:32: note: Assuming allocation function fails x11vnc-0.9.17/src/keyboard.c:2443:32: note: Assignment 'allowed_input_normal=strdup("KMBCF")', assigned value is 0 x11vnc-0.9.17/src/keyboard.c:2460:20: note: Calling function 'short_kmbcf', 1st argument 'allowed_input_normal' value is 0 x11vnc-0.9.17/src/keyboard.c:2406:6: note: Assignment 'p=str', assigned value is 0 x11vnc-0.9.17/src/keyboard.c:2408:10: note: Null pointer dereference x11vnc-0.9.17/src/keyboard.c:2447:14: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/keyboard.c:2446:25: note: Assuming allocation function fails x11vnc-0.9.17/src/keyboard.c:2446:25: note: Assignment 'str=strdup(allowed_input_str)', assigned value is 0 x11vnc-0.9.17/src/keyboard.c:2447:14: note: Null pointer dereference x11vnc-0.9.17/src/keyboard.c:452:24: style: Local variable 'quiet' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/options.h:384:12: note: Shadowed declaration x11vnc-0.9.17/src/keyboard.c:452:24: note: Shadow variable x11vnc-0.9.17/src/keyboard.c:2446:13: style: Local variable 'str' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/keyboard.c:2431:8: note: Shadowed declaration x11vnc-0.9.17/src/keyboard.c:2446:13: note: Shadow variable x11vnc-0.9.17/src/keyboard.c:3182:10: style: Local variable 'k' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/keyboard.c:3066:10: note: Shadowed declaration x11vnc-0.9.17/src/keyboard.c:3182:10: note: Shadow variable x11vnc-0.9.17/src/keyboard.c:94:24: style: Parameter 'keystate' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/keyboard.c:912:68: style: Parameter 'new_kc' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/keyboard.c:2400:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/keyboard.c:2793:8: style: Variable 'str' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/keyboard.c:2881:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/keyboard.c:2882:14: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/keyboard.c:2889:9: style: Variable 'b' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/keyboard.c:3023:32: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/keyboard.c:3358:9: style: Variable 'b' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/keyboard.c:886:10: style: struct member 'keychar::code' is never used. [unusedStructMember] x11vnc-0.9.17/src/keyboard.c:887:6: style: struct member 'keychar::group' is never used. [unusedStructMember] x11vnc-0.9.17/src/keyboard.c:888:6: style: struct member 'keychar::level' is never used. [unusedStructMember] x11vnc-0.9.17/src/keyboard.c:779:15: style: Variable 'ksym2' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/macosx.c:90:34: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/macosx.c:90:44: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/macosx.c:108:32: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/macosx.c:108:40: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/macosx.c:112:29: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/macosx.c:116:28: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/macosx.c:120:54: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/macosx.c:124:44: style: Parameter 'root_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/macosx.c:124:65: style: Parameter 'parent_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/macosx.c:125:45: style: Parameter 'nchildren_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/macosx.c:146:31: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/pm.c:150:26: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:450:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:456:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:1077:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:1081:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:1090:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:1131:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:1488:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:1525:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:2875:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:2878:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:3791:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:3794:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:4227:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:4238:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/connections.c:644:10: warning: Either the condition 'tmp_fd<0' is redundant or write() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] x11vnc-0.9.17/src/connections.c:640:15: note: Assuming that condition 'tmp_fd<0' is not redundant x11vnc-0.9.17/src/connections.c:644:10: note: Invalid argument x11vnc-0.9.17/src/connections.c:645:10: warning: Either the condition 'tmp_fd<0' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] x11vnc-0.9.17/src/connections.c:640:15: note: Assuming that condition 'tmp_fd<0' is not redundant x11vnc-0.9.17/src/connections.c:645:10: note: Invalid argument x11vnc-0.9.17/src/connections.c:2256:11: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.17/src/connections.c:2251:11: note: First condition x11vnc-0.9.17/src/connections.c:2256:11: note: Second condition x11vnc-0.9.17/src/connections.c:771:7: style: Condition 'cd' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/connections.c:1646:12: style: Condition 'ret=ugly_window(addr,userhost,x,y,timeout,mode,1)' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/connections.c:1646:25: note: Calling function 'ugly_window' returns 0 x11vnc-0.9.17/src/connections.c:1646:12: note: Condition 'ret=ugly_window(addr,userhost,x,y,timeout,mode,1)' is always false x11vnc-0.9.17/src/connections.c:1873:19: style: Condition 'unix_sock_fd>=0' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/connections.c:1868:33: note: Assuming that condition 'unix_sock_fd<0' is not redundant x11vnc-0.9.17/src/connections.c:1873:19: note: Condition 'unix_sock_fd>=0' is always true x11vnc-0.9.17/src/connections.c:1887:19: style: Condition 'unix_sock_fd>=0' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/connections.c:1868:33: note: Assuming that condition 'unix_sock_fd<0' is not redundant x11vnc-0.9.17/src/connections.c:1883:11: note: Assuming condition is false x11vnc-0.9.17/src/connections.c:1887:19: note: Condition 'unix_sock_fd>=0' is always true x11vnc-0.9.17/src/connections.c:1976:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.17/src/connections.c:598:3: error: Memory leak: old_display [memleak] x11vnc-0.9.17/src/connections.c:170:2: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:168:24: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:168:9: note: Assignment 'list=(char*)malloc((count+1)*1000)', assigned value is 0 x11vnc-0.9.17/src/connections.c:170:2: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:186:11: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:185:24: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:185:16: note: Assignment 'p=tmp_host=strdup(cl->host)', assigned value is 0 x11vnc-0.9.17/src/connections.c:186:11: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:212:11: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:211:24: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:211:16: note: Assignment 'p=tmp_host=strdup(cd->hostname)', assigned value is 0 x11vnc-0.9.17/src/connections.c:212:11: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:300:22: warning: If memory allocation fails, then there is a possible null pointer dereference: rstr [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:299:23: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:299:23: note: Assignment 'rstr=strdup(str)', assigned value is 0 x11vnc-0.9.17/src/connections.c:300:22: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:353:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cl_list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:273:35: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:273:12: note: Assignment 'cl_list=(rfbClientPtr*)malloc(n*sizeof(rfbClientPtr))', assigned value is 0 x11vnc-0.9.17/src/connections.c:347:9: note: Assuming condition is false x11vnc-0.9.17/src/connections.c:353:2: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:650:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cmd2 [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:647:26: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:647:11: note: Assignment 'cmd2=(char*)malloc(100+strlen(tmp)+strlen(cmd))', assigned value is 0 x11vnc-0.9.17/src/connections.c:650:15: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:660:36: warning: If resource allocation fails, then there is a possible null pointer dereference: ph [nullPointerOutOfResources] x11vnc-0.9.17/src/connections.c:650:14: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:650:14: note: Assignment 'ph=popen(cmd2,"r")', assigned value is 0 x11vnc-0.9.17/src/connections.c:660:36: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:691:16: warning: If resource allocation fails, then there is a possible null pointer dereference: ph [nullPointerOutOfResources] x11vnc-0.9.17/src/connections.c:685:19: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:685:19: note: Assignment 'ph=popen(cmd,"w")', assigned value is 0 x11vnc-0.9.17/src/connections.c:691:16: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:692:15: warning: If resource allocation fails, then there is a possible null pointer dereference: ph [nullPointerOutOfResources] x11vnc-0.9.17/src/connections.c:685:19: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:685:19: note: Assignment 'ph=popen(cmd,"w")', assigned value is 0 x11vnc-0.9.17/src/connections.c:692:15: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:991:7: warning: If memory allocation fails, then there is a possible null pointer dereference: allow_list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:989:22: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:989:22: note: Assignment 'allow_list=strdup("")', assigned value is 0 x11vnc-0.9.17/src/connections.c:991:7: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:1020:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:1019:25: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:1019:10: note: Assignment 'list=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/connections.c:1020:3: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:1029:28: warning: If resource allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfResources] x11vnc-0.9.17/src/connections.c:1022:13: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:1022:13: note: Assignment 'in=fopen(allow_list,"r")', assigned value is 0 x11vnc-0.9.17/src/connections.c:1029:28: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:1033:15: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:1019:25: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:1019:10: note: Assignment 'list=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/connections.c:1033:15: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:1060:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:1059:25: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:1059:10: note: Assignment 'list=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/connections.c:1060:3: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:1061:10: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:1059:25: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:1059:10: note: Assignment 'list=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/connections.c:1061:10: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:1067:11: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:1059:25: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:1059:10: note: Assignment 'list=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/connections.c:1067:11: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:1068:11: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:1059:25: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:1059:10: note: Assignment 'list=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/connections.c:1068:11: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:1979:16: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:1978:23: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:1978:23: note: Assignment 'str=strdup(host)', assigned value is 0 x11vnc-0.9.17/src/connections.c:1979:16: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:2400:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: hp [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:2397:31: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:2397:16: note: Assignment 'hp2=(char*)malloc(strlen(hp)+5)', assigned value is 0 x11vnc-0.9.17/src/connections.c:2399:7: note: hp is assigned 'hp2' here. x11vnc-0.9.17/src/connections.c:2400:15: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:2553:24: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:2675:24: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:2675:9: note: Assignment 'str=(char*)malloc(strlen(str_in)+1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:2678:35: note: Calling function 'get_repeater_string', 1st argument 'str' value is 0 x11vnc-0.9.17/src/connections.c:2553:24: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:2554:25: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:2675:24: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:2675:9: note: Assignment 'str=(char*)malloc(strlen(str_in)+1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:2678:35: note: Calling function 'get_repeater_string', 1st argument 'str' value is 0 x11vnc-0.9.17/src/connections.c:2554:25: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:2562:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:2675:24: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:2675:9: note: Assignment 'str=(char*)malloc(strlen(str_in)+1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:2678:35: note: Calling function 'get_repeater_string', 1st argument 'str' value is 0 x11vnc-0.9.17/src/connections.c:2557:12: note: Assuming condition is false x11vnc-0.9.17/src/connections.c:2562:13: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:2566:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ptmp [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:2565:25: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:2565:10: note: Assignment 'ptmp=(char*)calloc(prestring_len+1,1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:2566:12: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:2571:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ptmp [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:2570:25: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:2570:10: note: Assignment 'ptmp=(char*)calloc(prestring_len+1,1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:2571:12: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:2577:13: warning: If memory allocation fails, then there is a possible null pointer dereference: ptmp [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:2576:26: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:2576:11: note: Assignment 'ptmp=(char*)calloc(prestring_len+1,1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:2577:13: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:2679:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:2675:24: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:2675:9: note: Assignment 'str=(char*)malloc(strlen(str_in)+1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:2679:17: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:2872:35: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:2870:14: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:2870:14: note: Assignment 'tmp=strdup(str)', assigned value is 0 x11vnc-0.9.17/src/connections.c:2872:35: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:2877:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:2872:25: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:2872:9: note: Assignment 'list=(char**)calloc((strlen(tmp)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:2877:3: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:3793:4: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3788:26: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3788:10: note: Assignment 'list=(char**)calloc((strlen(buf)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3793:4: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:3798:10: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3788:26: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3788:10: note: Assignment 'list=(char**)calloc((strlen(buf)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3798:10: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:3799:8: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3788:26: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3788:10: note: Assignment 'list=(char**)calloc((strlen(buf)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3799:8: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:3806:36: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3804:18: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3804:18: note: Assignment 'str=strdup("")', assigned value is 0 x11vnc-0.9.17/src/connections.c:3806:36: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:3818:10: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3788:26: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3788:10: note: Assignment 'list=(char**)calloc((strlen(buf)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3818:10: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:3819:8: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3788:26: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3788:10: note: Assignment 'list=(char**)calloc((strlen(buf)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3819:8: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:3997:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cd [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3993:38: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3993:23: note: Assignment 'client->clientData=(void*)calloc(sizeof(struct ClientData),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3994:5: note: cd is assigned '(struct ClientData*)client->clientData' here. x11vnc-0.9.17/src/connections.c:3997:2: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:3998:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cd [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3993:38: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3993:23: note: Assignment 'client->clientData=(void*)calloc(sizeof(struct ClientData),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3994:5: note: cd is assigned '(struct ClientData*)client->clientData' here. x11vnc-0.9.17/src/connections.c:3998:2: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:3999:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cd [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3993:38: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3993:23: note: Assignment 'client->clientData=(void*)calloc(sizeof(struct ClientData),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3994:5: note: cd is assigned '(struct ClientData*)client->clientData' here. x11vnc-0.9.17/src/connections.c:3999:2: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:4000:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cd [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3993:38: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3993:23: note: Assignment 'client->clientData=(void*)calloc(sizeof(struct ClientData),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3994:5: note: cd is assigned '(struct ClientData*)client->clientData' here. x11vnc-0.9.17/src/connections.c:4000:2: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:4000:23: warning: If memory allocation fails, then there is a possible null pointer dereference: cd [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3993:38: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3993:23: note: Assignment 'client->clientData=(void*)calloc(sizeof(struct ClientData),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3994:5: note: cd is assigned '(struct ClientData*)client->clientData' here. x11vnc-0.9.17/src/connections.c:4000:23: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:4002:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cd [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3993:38: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3993:23: note: Assignment 'client->clientData=(void*)calloc(sizeof(struct ClientData),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3994:5: note: cd is assigned '(struct ClientData*)client->clientData' here. x11vnc-0.9.17/src/connections.c:4002:2: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:4003:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cd [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3993:38: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3993:23: note: Assignment 'client->clientData=(void*)calloc(sizeof(struct ClientData),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3994:5: note: cd is assigned '(struct ClientData*)client->clientData' here. x11vnc-0.9.17/src/connections.c:4003:2: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:4004:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cd [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3993:38: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3993:23: note: Assignment 'client->clientData=(void*)calloc(sizeof(struct ClientData),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3994:5: note: cd is assigned '(struct ClientData*)client->clientData' here. x11vnc-0.9.17/src/connections.c:4004:2: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:4005:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cd [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3993:38: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3993:23: note: Assignment 'client->clientData=(void*)calloc(sizeof(struct ClientData),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3994:5: note: cd is assigned '(struct ClientData*)client->clientData' here. x11vnc-0.9.17/src/connections.c:4005:2: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:4298:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pstr [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:4296:24: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:4296:10: note: Assignment 'pstr=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/connections.c:4298:9: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:4299:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pstr [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:4296:24: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:4296:10: note: Assignment 'pstr=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/connections.c:4299:9: note: Null pointer dereference x11vnc-0.9.17/src/connections.c:2979:7: style: Variable 'tot' is reassigned a value before the old one has been used. [redundantAssignment] x11vnc-0.9.17/src/connections.c:2977:8: note: tot is assigned x11vnc-0.9.17/src/connections.c:2979:7: note: tot is overwritten x11vnc-0.9.17/src/connections.c:1865:6: style: Local variable 'nmax' shadows outer function [shadowFunction] x11vnc-0.9.17/src/util.h:40:12: note: Shadowed declaration x11vnc-0.9.17/src/connections.c:1865:6: note: Shadow variable x11vnc-0.9.17/src/connections.c:2054:7: style: Local variable 'n' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/connections.c:2014:11: note: Shadowed declaration x11vnc-0.9.17/src/connections.c:2054:7: note: Shadow variable x11vnc-0.9.17/src/connections.c:2084:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/connections.c:2014:14: note: Shadowed declaration x11vnc-0.9.17/src/connections.c:2084:7: note: Shadow variable x11vnc-0.9.17/src/connections.c:2171:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/connections.c:2105:24: note: Shadowed declaration x11vnc-0.9.17/src/connections.c:2171:7: note: Shadow variable x11vnc-0.9.17/src/connections.c:4308:7: style: Local variable 'len' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/connections.c:4284:13: note: Shadowed declaration x11vnc-0.9.17/src/connections.c:4308:7: note: Shadow variable x11vnc-0.9.17/src/connections.c:278:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/connections.c:436:18: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:437:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/connections.c:466:72: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:1147:30: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:1147:42: style: Parameter 'userhost' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:1148:24: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:1556:29: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:2206:87: style: Parameter 'gethost' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:2252:9: style: Variable 't' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/connections.c:2288:11: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/connections.c:2457:15: style: Variable 'ssh' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/connections.c:2553:8: style: Variable 'equals' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/connections.c:2853:28: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:3032:33: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:3043:35: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:3246:8: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/connections.c:3246:23: style: Variable 'flip' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/connections.c:3246:39: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/connections.c:3524:21: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:3524:45: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:3551:23: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:4207:38: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/connections.c:4281:29: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/connections.c:4445:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/connections.c:854:8: style: Unused variable: status [unusedVariable] x11vnc-0.9.17/src/connections.c:1863:18: style: Variable 'csock' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/connections.c:2076:5: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/connections.c:3179:6: style: Unused variable: rcp [unusedVariable] x11vnc-0.9.17/src/connections.c:3179:11: style: Unused variable: rck [unusedVariable] x11vnc-0.9.17/src/connections.c:3180:9: style: Unused variable: t0 [unusedVariable] x11vnc-0.9.17/src/connections.c:3180:13: style: Unused variable: t1 [unusedVariable] x11vnc-0.9.17/src/connections.c:3181:9: style: Unused variable: ta [unusedVariable] x11vnc-0.9.17/src/connections.c:3181:13: style: Unused variable: tb [unusedVariable] x11vnc-0.9.17/src/connections.c:3181:17: style: Unused variable: tc [unusedVariable] x11vnc-0.9.17/src/pointer.c:137:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/pointer.c:764:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inputMutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/pointer.c:1063:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/rates.c:91:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_NORMAL [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/rates.c:153:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_NORMAL [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/rates.c:427:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/pointer.c:124:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/pointer.c:197:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/pointer.c:1039:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/pointer.c:1051:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/pointer.c:299:19: warning: If memory allocation fails, then there is a possible null pointer dereference: remap [nullPointerOutOfMemory] x11vnc-0.9.17/src/pointer.c:296:31: note: Assuming allocation function fails x11vnc-0.9.17/src/pointer.c:296:31: note: Assignment 'remap=strdup(pointer_remap)', assigned value is 0 x11vnc-0.9.17/src/pointer.c:299:19: note: Null pointer dereference x11vnc-0.9.17/src/pointer.c:311:19: warning: If memory allocation fails, then there is a possible null pointer dereference: remap [nullPointerOutOfMemory] x11vnc-0.9.17/src/pointer.c:296:31: note: Assuming allocation function fails x11vnc-0.9.17/src/pointer.c:296:31: note: Assignment 'remap=strdup(pointer_remap)', assigned value is 0 x11vnc-0.9.17/src/pointer.c:311:19: note: Null pointer dereference x11vnc-0.9.17/src/pointer.c:128:8: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/pointer.c:93:10: note: Shadowed declaration x11vnc-0.9.17/src/pointer.c:128:8: note: Shadow variable x11vnc-0.9.17/src/pointer.c:915:8: style: Local variable 'sent' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/pointer.c:702:6: note: Shadowed declaration x11vnc-0.9.17/src/pointer.c:915:8: note: Shadow variable x11vnc-0.9.17/src/pointer.c:253:35: style: Parameter 'pointer_remap' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/pointer.c:625:14: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/pointer.c:1033:21: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/pointer.c:682:17: error: Uninitialized variable: s [legacyUninitvar] x11vnc-0.9.17/src/pointer.c:324:6: style: Variable 'i' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/pointer.c:254:16: style: Unused variable: map [unusedVariable] x11vnc-0.9.17/src/remote.c:97:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/remote.c:223:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/remote.c:481:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_LOOPBACK [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/remote.c:516:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/remote.c:591:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/remote.c:1209:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/remote.c:167:5: warning:inconclusive: The buffer 'line' may not be null-terminated after the call to strncpy(). [terminateStrncpy] x11vnc-0.9.17/src/rates.c:220:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/rates.c:235:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:274:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:278:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:283:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:290:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:314:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:317:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:324:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:376:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:388:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:918:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:930:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:963:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:970:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/remote.c:2079:23: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] x11vnc-0.9.17/src/rates.c:210:14: warning: If memory allocation fails, then there is a possible null pointer dereference: s_in [nullPointerOutOfMemory] x11vnc-0.9.17/src/rates.c:205:16: note: Assuming allocation function fails x11vnc-0.9.17/src/rates.c:205:16: note: Assignment 's_in=strdup("")', assigned value is 0 x11vnc-0.9.17/src/rates.c:210:14: note: Null pointer dereference x11vnc-0.9.17/src/rates.c:86:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/rates.c:148:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/rates.c:198:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/rates.c:384:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/scan.c:263:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:396:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:1598:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:1809:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:2455:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:2567:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:2754:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:2833:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:2928:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:2974:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:3020:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:3057:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbMaxClientWait [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:3190:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:3222:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/remote.c:862:7: style: Condition '!remote_control_access_ok()' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/remote.c:862:33: note: Calling function 'remote_control_access_ok' returns 0 x11vnc-0.9.17/src/remote.c:862:7: note: Condition '!remote_control_access_ok()' is always true x11vnc-0.9.17/src/remote.c:2396:10: style: Condition '0&&!strcmp(blackout_str,"")' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/remote.c:235:4: error: Memory leak: rcmd [memleak] x11vnc-0.9.17/src/remote.c:240:3: error: Memory leak: rcmd [memleak] x11vnc-0.9.17/src/remote.c:211:10: warning: If memory allocation fails, then there is a possible null pointer dereference: rcmd [nullPointerOutOfMemory] x11vnc-0.9.17/src/remote.c:210:25: note: Assuming allocation function fails x11vnc-0.9.17/src/remote.c:210:10: note: Assignment 'rcmd=(char*)malloc(strlen(remote_cmd)+5)', assigned value is 0 x11vnc-0.9.17/src/remote.c:211:10: note: Null pointer dereference x11vnc-0.9.17/src/remote.c:212:10: warning: If memory allocation fails, then there is a possible null pointer dereference: rcmd [nullPointerOutOfMemory] x11vnc-0.9.17/src/remote.c:210:25: note: Assuming allocation function fails x11vnc-0.9.17/src/remote.c:210:10: note: Assignment 'rcmd=(char*)malloc(strlen(remote_cmd)+5)', assigned value is 0 x11vnc-0.9.17/src/remote.c:212:10: note: Null pointer dereference x11vnc-0.9.17/src/remote.c:216:10: warning: If memory allocation fails, then there is a possible null pointer dereference: qcmd [nullPointerOutOfMemory] x11vnc-0.9.17/src/remote.c:215:25: note: Assuming allocation function fails x11vnc-0.9.17/src/remote.c:215:10: note: Assignment 'qcmd=(char*)malloc(strlen(query_cmd)+5)', assigned value is 0 x11vnc-0.9.17/src/remote.c:216:10: note: Null pointer dereference x11vnc-0.9.17/src/remote.c:217:10: warning: If memory allocation fails, then there is a possible null pointer dereference: qcmd [nullPointerOutOfMemory] x11vnc-0.9.17/src/remote.c:215:25: note: Assuming allocation function fails x11vnc-0.9.17/src/remote.c:215:10: note: Assignment 'qcmd=(char*)malloc(strlen(query_cmd)+5)', assigned value is 0 x11vnc-0.9.17/src/remote.c:217:10: note: Null pointer dereference x11vnc-0.9.17/src/remote.c:271:2: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/remote.c:270:23: note: Assuming allocation function fails x11vnc-0.9.17/src/remote.c:270:8: note: Assignment 'str=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/remote.c:271:2: note: Null pointer dereference x11vnc-0.9.17/src/remote.c:311:2: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/remote.c:310:23: note: Assuming allocation function fails x11vnc-0.9.17/src/remote.c:310:8: note: Assignment 'str=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/remote.c:311:2: note: Null pointer dereference x11vnc-0.9.17/src/remote.c:365:13: warning: If memory allocation fails, then there is a possible null pointer dereference: prog [nullPointerOutOfMemory] x11vnc-0.9.17/src/remote.c:364:26: note: Assuming allocation function fails x11vnc-0.9.17/src/remote.c:364:11: note: Assignment 'prog=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/remote.c:365:13: note: Null pointer dereference x11vnc-0.9.17/src/remote.c:384:15: warning: If memory allocation fails, then there is a possible null pointer dereference: prog [nullPointerOutOfMemory] x11vnc-0.9.17/src/remote.c:383:28: note: Assuming allocation function fails x11vnc-0.9.17/src/remote.c:383:13: note: Assignment 'prog=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/remote.c:384:15: note: Null pointer dereference x11vnc-0.9.17/src/remote.c:401:20: warning: If memory allocation fails, then there is a possible null pointer dereference: prog [nullPointerOutOfMemory] x11vnc-0.9.17/src/remote.c:359:17: note: Assuming allocation function fails x11vnc-0.9.17/src/remote.c:359:17: note: Assignment 'prog=strdup(program_name)', assigned value is 0 x11vnc-0.9.17/src/remote.c:401:20: note: Null pointer dereference x11vnc-0.9.17/src/remote.c:1095:3: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.17/src/remote.c:6200:4: style:inconclusive: Statements following 'goto' will never be executed. [unreachableCode] x11vnc-0.9.17/src/remote.c:220:9: style: Variable 'res' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:233:9: style: Variable 'res' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:261:42: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/remote.c:262:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:301:45: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/remote.c:302:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:368:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:368:15: style: Variable 'base' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:958:14: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:1952:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:1994:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:3847:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:3866:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:3903:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:3922:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:4387:9: style: Variable 'c' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:4567:15: style: Variable 't' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:4615:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:5833:11: style: Variable 'd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:6037:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/remote.c:6170:8: style: Unused variable: wx [unusedVariable] x11vnc-0.9.17/src/remote.c:6170:12: style: Unused variable: wy [unusedVariable] x11vnc-0.9.17/src/remote.c:6172:14: style: Unused variable: c [unusedVariable] x11vnc-0.9.17/src/selection.c:90:32: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/selection.c:90:42: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/selection.c:259:55: style: Parameter 'sel' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/selection.c:374:29: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/selection.c:510:29: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/screen.c:136:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:161:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:197:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:403:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:663:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable root [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:815:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:863:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbClientPtr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:1000:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:1026:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inputMutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:1282:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:1354:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:1377:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:1434:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:1492:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:1667:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:3202:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inputMutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:3415:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:3951:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:4012:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:4114:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:4310:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:4409:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/screen.c:4521:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/solid.c:106:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/solid.c:137:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/solid.c:75:35: warning: If memory allocation fails, then there is a possible null pointer dereference: oldpath [nullPointerOutOfMemory] x11vnc-0.9.17/src/solid.c:71:19: note: Assuming allocation function fails x11vnc-0.9.17/src/solid.c:71:19: note: Assignment 'oldpath=strdup(getenv("PATH"))', assigned value is 0 x11vnc-0.9.17/src/solid.c:75:35: note: Null pointer dereference x11vnc-0.9.17/src/solid.c:76:2: warning: If memory allocation fails, then there is a possible null pointer dereference: newpath [nullPointerOutOfMemory] x11vnc-0.9.17/src/solid.c:75:27: note: Assuming allocation function fails x11vnc-0.9.17/src/solid.c:75:12: note: Assignment 'newpath=(char*)malloc(strlen(oldpath)+strlen(addpath)+1)', assigned value is 0 x11vnc-0.9.17/src/solid.c:76:2: note: Null pointer dereference x11vnc-0.9.17/src/solid.c:77:9: warning: If memory allocation fails, then there is a possible null pointer dereference: newpath [nullPointerOutOfMemory] x11vnc-0.9.17/src/solid.c:75:27: note: Assuming allocation function fails x11vnc-0.9.17/src/solid.c:75:12: note: Assignment 'newpath=(char*)malloc(strlen(oldpath)+strlen(addpath)+1)', assigned value is 0 x11vnc-0.9.17/src/solid.c:77:9: note: Null pointer dereference x11vnc-0.9.17/src/solid.c:78:9: warning: If memory allocation fails, then there is a possible null pointer dereference: newpath [nullPointerOutOfMemory] x11vnc-0.9.17/src/solid.c:75:27: note: Assuming allocation function fails x11vnc-0.9.17/src/solid.c:75:12: note: Assignment 'newpath=(char*)malloc(strlen(oldpath)+strlen(addpath)+1)', assigned value is 0 x11vnc-0.9.17/src/solid.c:78:9: note: Null pointer dereference x11vnc-0.9.17/src/solid.c:78:18: warning: If memory allocation fails, then there is a possible null pointer dereference: oldpath [nullPointerOutOfMemory] x11vnc-0.9.17/src/solid.c:71:19: note: Assuming allocation function fails x11vnc-0.9.17/src/solid.c:71:19: note: Assignment 'oldpath=strdup(getenv("PATH"))', assigned value is 0 x11vnc-0.9.17/src/solid.c:78:18: note: Null pointer dereference x11vnc-0.9.17/src/solid.c:146:27: warning: If resource allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfResources] x11vnc-0.9.17/src/solid.c:141:11: note: Assuming allocation function fails x11vnc-0.9.17/src/solid.c:141:11: note: Assignment 'p=popen(cmd,"r")', assigned value is 0 x11vnc-0.9.17/src/solid.c:146:27: note: Null pointer dereference x11vnc-0.9.17/src/solid.c:284:2: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.17/src/solid.c:59:7: style: Variable 'addpath' can be declared as const array [constVariable] x11vnc-0.9.17/src/solid.c:157:31: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/solid.c:177:26: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/solid.c:287:29: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/solid.c:556:8: style: Variable 'dbus_env' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/solid.c:651:31: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/solid.c:768:30: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/solid.c:992:29: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/solid.c:1294:27: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/solid.c:557:7: style: Unused variable: tmp [unusedVariable] x11vnc-0.9.17/src/solid.c:1170:13: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/solid.c:1171:20: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/solid.c:1171:8: style: Unused variable: pid [unusedVariable] x11vnc-0.9.17/src/solid.c:1171:13: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/sslcmds.c:577:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslcmds.c:586:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslcmds.c:679:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslcmds.c:448:19: style: Condition 'start_stunnel(rport,xport,hport,xhport)' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/sslcmds.c:448:19: note: Calling function 'start_stunnel' returns 0 x11vnc-0.9.17/src/sslcmds.c:448:19: note: Condition 'start_stunnel(rport,xport,hport,xhport)' is always false x11vnc-0.9.17/src/sslcmds.c:566:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: scr [nullPointerOutOfMemory] x11vnc-0.9.17/src/sslcmds.c:563:23: note: Assuming allocation function fails x11vnc-0.9.17/src/sslcmds.c:563:8: note: Assignment 'scr=(char*)malloc(strlen(tmp)+1+strlen(name)+30)', assigned value is 0 x11vnc-0.9.17/src/sslcmds.c:566:14: note: Null pointer dereference x11vnc-0.9.17/src/sslcmds.c:772:4: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tca [nullPointerOutOfMemory] x11vnc-0.9.17/src/sslcmds.c:770:24: note: Assuming allocation function fails x11vnc-0.9.17/src/sslcmds.c:770:9: note: Assignment 'tca=(char*)malloc(strlen(cdir)+strlen(path)+100)', assigned value is 0 x11vnc-0.9.17/src/sslcmds.c:772:4: note: Null pointer dereference x11vnc-0.9.17/src/sslcmds.c:830:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cert [nullPointerOutOfMemory] x11vnc-0.9.17/src/sslcmds.c:822:25: note: Assuming allocation function fails x11vnc-0.9.17/src/sslcmds.c:822:10: note: Assignment 'cert=(char*)malloc(2*(sbuf.st_size+1024))', assigned value is 0 x11vnc-0.9.17/src/sslcmds.c:824:12: note: Assuming condition is false x11vnc-0.9.17/src/sslcmds.c:830:3: note: Null pointer dereference x11vnc-0.9.17/src/sslcmds.c:647:32: style:inconclusive: Function 'sslEncKey' argument 2 names different: declaration 'info_only' definition 'mode'. [funcArgNamesDifferent] x11vnc-0.9.17/src/sslcmds.c:59:32: note: Function 'sslEncKey' argument 2 names different: declaration 'info_only' definition 'mode'. x11vnc-0.9.17/src/sslcmds.c:647:32: note: Function 'sslEncKey' argument 2 names different: declaration 'info_only' definition 'mode'. x11vnc-0.9.17/src/sslcmds.c:547:14: style: Local variable 'scr' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/x11vnc.h:490:12: note: Shadowed declaration x11vnc-0.9.17/src/sslcmds.c:547:14: note: Shadow variable x11vnc-0.9.17/src/sslcmds.c:595:14: style: Local variable 'scr' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/x11vnc.h:490:12: note: Shadowed declaration x11vnc-0.9.17/src/sslcmds.c:595:14: note: Shadow variable x11vnc-0.9.17/src/sslcmds.c:612:14: style: Local variable 'scr' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/x11vnc.h:490:12: note: Shadowed declaration x11vnc-0.9.17/src/sslcmds.c:612:14: note: Shadow variable x11vnc-0.9.17/src/sslcmds.c:649:8: style: Local variable 'scr' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/x11vnc.h:490:12: note: Shadowed declaration x11vnc-0.9.17/src/sslcmds.c:649:8: note: Shadow variable x11vnc-0.9.17/src/sslcmds.c:654:13: style: Local variable 'depth' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/x11vnc.h:495:17: note: Shadowed declaration x11vnc-0.9.17/src/sslcmds.c:654:13: note: Shadow variable x11vnc-0.9.17/src/sslcmds.c:483:15: style: Variable 'home' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/sslcmds.c:486:8: style: Variable 'cases1' can be declared as const array [constVariable] x11vnc-0.9.17/src/sslcmds.c:487:8: style: Variable 'cases2' can be declared as const array [constVariable] x11vnc-0.9.17/src/sslcmds.c:545:45: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/sslcmds.c:545:57: style: Parameter 'script' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/sslcmds.c:75:7: style: Unused variable: status [unusedVariable] x11vnc-0.9.17/src/sslcmds.c:379:6: style: Unused variable: status [unusedVariable] x11vnc-0.9.17/src/screen.c:777:7: style: Condition 'use_real_ximage' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/screen.c:776:25: note: Assignment 'use_real_ximage=0', assigned value is 0 x11vnc-0.9.17/src/screen.c:777:7: note: Condition 'use_real_ximage' is always false x11vnc-0.9.17/src/screen.c:3830:13: style: Condition 'got_rfbport' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/screen.c:4409:7: style: Condition '0&&dt>0.0' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/screen.c:4459:19: style: Condition 'dx1||dy1' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/screen.c:4450:27: note: Assuming that condition 'dx1||dy1' is not redundant x11vnc-0.9.17/src/screen.c:4459:19: note: Condition 'dx1||dy1' is always true x11vnc-0.9.17/src/screen.c:4459:33: style: Condition 'dm>40' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/screen.c:4452:46: note: Assuming that condition 'dm>20' is not redundant x11vnc-0.9.17/src/screen.c:4459:33: note: Condition 'dm>40' is always false x11vnc-0.9.17/src/screen.c:4489:24: style: Condition 'set_defer<=-1' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/screen.c:4485:6: note: Assuming that condition 'set_defer' is not redundant x11vnc-0.9.17/src/screen.c:4489:24: note: Condition 'set_defer<=-1' is always true x11vnc-0.9.17/src/screen.c:1742:3: error: Memory leak: rstr [memleak] x11vnc-0.9.17/src/screen.c:1744:3: error: Memory leak: rstr [memleak] x11vnc-0.9.17/src/screen.c:1747:3: error: Memory leak: rstr [memleak] x11vnc-0.9.17/src/screen.c:1749:3: error: Memory leak: rstr [memleak] x11vnc-0.9.17/src/screen.c:1751:3: error: Memory leak: rstr [memleak] x11vnc-0.9.17/src/screen.c:394:3: warning: If memory allocation fails, then there is a possible null pointer dereference: histo [nullPointerOutOfMemory] x11vnc-0.9.17/src/screen.c:391:24: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:391:10: note: Assignment 'histo=(int*)calloc(ncolor*sizeof(int),1)', assigned value is 0 x11vnc-0.9.17/src/screen.c:394:3: note: Null pointer dereference x11vnc-0.9.17/src/screen.c:401:3: warning: If memory allocation fails, then there is a possible null pointer dereference: histo [nullPointerOutOfMemory] x11vnc-0.9.17/src/screen.c:391:24: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:391:10: note: Assignment 'histo=(int*)calloc(ncolor*sizeof(int),1)', assigned value is 0 x11vnc-0.9.17/src/screen.c:401:3: note: Null pointer dereference x11vnc-0.9.17/src/screen.c:409:53: warning: If memory allocation fails, then there is a possible null pointer dereference: histo [nullPointerOutOfMemory] x11vnc-0.9.17/src/screen.c:391:24: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:391:10: note: Assignment 'histo=(int*)calloc(ncolor*sizeof(int),1)', assigned value is 0 x11vnc-0.9.17/src/screen.c:409:53: note: Null pointer dereference x11vnc-0.9.17/src/screen.c:2971:19: warning: If memory allocation fails, then there is a possible null pointer dereference: tstr [nullPointerOutOfMemory] x11vnc-0.9.17/src/screen.c:2969:15: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:2969:15: note: Assignment 'tstr=strdup(str)', assigned value is 0 x11vnc-0.9.17/src/screen.c:2971:19: note: Null pointer dereference x11vnc-0.9.17/src/screen.c:2998:13: warning: If memory allocation fails, then there is a possible null pointer dereference: tstr [nullPointerOutOfMemory] x11vnc-0.9.17/src/screen.c:2969:15: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:2969:15: note: Assignment 'tstr=strdup(str)', assigned value is 0 x11vnc-0.9.17/src/screen.c:2998:13: note: Null pointer dereference x11vnc-0.9.17/src/screen.c:3472:14: warning: If memory allocation fails, then there is a possible null pointer dereference: fmt [nullPointerOutOfMemory] x11vnc-0.9.17/src/screen.c:3470:21: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:3470:21: note: Assignment 'fmt=strdup(raw_fb_pixfmt)', assigned value is 0 x11vnc-0.9.17/src/screen.c:3472:14: note: Null pointer dereference x11vnc-0.9.17/src/screen.c:3712:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cmap8to24_fb [nullPointerOutOfMemory] x11vnc-0.9.17/src/screen.c:3711:34: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:3711:19: note: Assignment 'cmap8to24_fb=(char*)malloc(n)', assigned value is 0 x11vnc-0.9.17/src/screen.c:3712:11: note: Null pointer dereference x11vnc-0.9.17/src/screen.c:3718:11: warning: If memory allocation fails, then there is a possible null pointer dereference: rot_fb [nullPointerOutOfMemory] x11vnc-0.9.17/src/screen.c:3717:28: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:3717:13: note: Assignment 'rot_fb=(char*)malloc(n)', assigned value is 0 x11vnc-0.9.17/src/screen.c:3718:11: note: Null pointer dereference x11vnc-0.9.17/src/screen.c:3729:11: warning: If memory allocation fails, then there is a possible null pointer dereference: rfb_fb [nullPointerOutOfMemory] x11vnc-0.9.17/src/screen.c:3728:28: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:3728:13: note: Assignment 'rfb_fb=(char*)malloc(n)', assigned value is 0 x11vnc-0.9.17/src/screen.c:3729:11: note: Null pointer dereference x11vnc-0.9.17/src/screen.c:4155:16: warning: If memory allocation fails, then there is a possible null pointer dereference: rm_flagfile [nullPointerOutOfMemory] x11vnc-0.9.17/src/screen.c:4152:26: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:4152:26: note: Assignment 'rm_flagfile=strdup(rm_flagfile+strlen("create:"))', assigned value is 0 x11vnc-0.9.17/src/screen.c:4155:16: note: Null pointer dereference x11vnc-0.9.17/src/screen.c:1264:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/screen.c:1234:29: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:1234:11: note: Assignment 'pixels=(uint32_t*)malloc((unsigned long)4*width*height)', assigned value is 0 x11vnc-0.9.17/src/screen.c:1264:13: note: Null pointer addition x11vnc-0.9.17/src/screen.c:4480:7: style: Redundant initialization for 'msec'. The initialized value is overwritten before it is read. [redundantInitialization] x11vnc-0.9.17/src/screen.c:4321:38: note: msec is initialized x11vnc-0.9.17/src/screen.c:4480:7: note: msec is overwritten x11vnc-0.9.17/src/screen.c:1756:8: style: Local variable 'str' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/screen.c:1642:8: note: Shadowed declaration x11vnc-0.9.17/src/screen.c:1756:8: note: Shadow variable x11vnc-0.9.17/src/screen.c:1758:17: style: Local variable 'w' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/screen.c:1643:6: note: Shadowed declaration x11vnc-0.9.17/src/screen.c:1758:17: note: Shadow variable x11vnc-0.9.17/src/screen.c:1758:27: style: Local variable 'h' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/screen.c:1643:9: note: Shadowed declaration x11vnc-0.9.17/src/screen.c:1758:27: note: Shadow variable x11vnc-0.9.17/src/screen.c:1784:8: style: Local variable 'str' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/screen.c:1642:8: note: Shadowed declaration x11vnc-0.9.17/src/screen.c:1784:8: note: Shadow variable x11vnc-0.9.17/src/screen.c:1787:17: style: Local variable 'w' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/screen.c:1643:6: note: Shadowed declaration x11vnc-0.9.17/src/screen.c:1787:17: note: Shadow variable x11vnc-0.9.17/src/screen.c:1787:27: style: Local variable 'h' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/screen.c:1643:9: note: Shadowed declaration x11vnc-0.9.17/src/screen.c:1787:27: note: Shadow variable x11vnc-0.9.17/src/screen.c:369:36: style: Parameter 'fb' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/screen.c:427:30: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/screen.c:1163:34: style: Parameter 'cl' can be declared as pointer to const. However it seems that 'vnc_reflect_bell' is a callback function, if 'cl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.17/src/screen.c:1498:17: note: You might need to cast the function pointer here x11vnc-0.9.17/src/screen.c:1163:34: note: Parameter 'cl' can be declared as pointer to const x11vnc-0.9.17/src/screen.c:1180:42: style: Parameter 'cl' can be declared as pointer to const. However it seems that 'vnc_reflect_recv_cuttext' is a callback function, if 'cl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.17/src/screen.c:1506:24: note: You might need to cast the function pointer here x11vnc-0.9.17/src/screen.c:1180:42: note: Parameter 'cl' can be declared as pointer to const x11vnc-0.9.17/src/screen.c:1195:40: style: Parameter 'cl' can be declared as pointer to const. However it seems that 'vnc_reflect_got_update' is a callback function, if 'cl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.17/src/screen.c:1496:33: note: You might need to cast the function pointer here x11vnc-0.9.17/src/screen.c:1195:40: note: Parameter 'cl' can be declared as pointer to const x11vnc-0.9.17/src/screen.c:1207:45: style: Parameter 'cl' can be declared as pointer to const. However it seems that 'vnc_reflect_got_cursorshape' is a callback function, if 'cl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.17/src/screen.c:1507:27: note: You might need to cast the function pointer here x11vnc-0.9.17/src/screen.c:1207:45: note: Parameter 'cl' can be declared as pointer to const x11vnc-0.9.17/src/screen.c:1273:43: style: Parameter 'cl' can be declared as pointer to const. However it seems that 'vnc_reflect_cursor_pos' is a callback function, if 'cl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.17/src/screen.c:1495:28: note: You might need to cast the function pointer here x11vnc-0.9.17/src/screen.c:1273:43: note: Parameter 'cl' can be declared as pointer to const x11vnc-0.9.17/src/screen.c:1329:12: style: Variable '_buffer' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/screen.c:1330:12: style: Variable '_buffer' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/screen.c:1331:12: style: Variable '_buffer' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/screen.c:1423:50: style: Parameter 'client' can be declared as pointer to const. However it seems that 'vnc_reflect_get_password' is a callback function, if 'client' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.17/src/screen.c:1511:25: note: You might need to cast the function pointer here x11vnc-0.9.17/src/screen.c:1423:50: note: Parameter 'client' can be declared as pointer to const x11vnc-0.9.17/src/screen.c:1472:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/screen.c:1523:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/screen.c:1650:8: style: Variable 'unlink_me' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/screen.c:2950:31: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/screen.c:3919:8: style: Variable 'tvdt' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/screen.c:3984:66: style: Parameter 'extra' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/screen.c:3987:8: style: Variable 'phost' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/screen.c:3988:8: style: Variable 'jvu' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/screen.c:1137:11: warning: Uninitialized variable: w [uninitvar] x11vnc-0.9.17/src/screen.c:1132:13: note: Assuming condition is true x11vnc-0.9.17/src/screen.c:1137:11: note: Uninitialized variable: w x11vnc-0.9.17/src/screen.c:1138:11: warning: Uninitialized variable: h [uninitvar] x11vnc-0.9.17/src/screen.c:1132:13: note: Assuming condition is true x11vnc-0.9.17/src/screen.c:1138:11: note: Uninitialized variable: h x11vnc-0.9.17/src/screen.c:1764:7: warning: Uninitialized variable: val [uninitvar] x11vnc-0.9.17/src/screen.c:1759:13: note: Assuming condition is false x11vnc-0.9.17/src/screen.c:1764:7: note: Uninitialized variable: val x11vnc-0.9.17/src/screen.c:2168:36: style: Variable 'vsize' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/sslhelper.c:148:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslhelper.c:177:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslhelper.c:203:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslhelper.c:321:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslhelper.c:2797:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_ANY [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslhelper.c:2906:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_ANY [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslhelper.c:3067:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslhelper.c:3159:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslhelper.c:3217:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslhelper.c:3391:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/enc.h:327:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/enc.h:625:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/enc.h:2101:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/enc.h:2130:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/uinput.c:186:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/uinput.c:681:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/uinput.c:954:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/uinput.c:1068:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/sslhelper.c:213:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/sslhelper.c:223:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/sslhelper.c:592:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/sslhelper.c:616:18: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] x11vnc-0.9.17/src/sslhelper.c:654:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/sslhelper.c:3170:6: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.17/src/sslhelper.c:3168:6: note: First condition x11vnc-0.9.17/src/sslhelper.c:3170:6: note: Second condition x11vnc-0.9.17/src/sslhelper.c:3718:8: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.17/src/sslhelper.c:3716:8: note: First condition x11vnc-0.9.17/src/sslhelper.c:3718:8: note: Second condition x11vnc-0.9.17/src/sslhelper.c:4243:7: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.17/src/sslhelper.c:4242:7: note: First condition x11vnc-0.9.17/src/sslhelper.c:4243:7: note: Second condition x11vnc-0.9.17/src/sslhelper.c:4244:7: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.17/src/sslhelper.c:4243:7: note: First condition x11vnc-0.9.17/src/sslhelper.c:4244:7: note: Second condition x11vnc-0.9.17/src/sslhelper.c:4004:9: style: Condition '0&&certret_str' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/sslhelper.c:4084:8: style: Condition 'rcookie' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/sslhelper.c:4132:12: style: Condition '0&&saw_httpsock' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/sslhelper.c:4182:12: style: Condition '0&&saw_httpsock' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/sslhelper.c:288:3: error: Memory leak: C [memleak] x11vnc-0.9.17/src/sslhelper.c:288:3: error: Memory leak: L [memleak] x11vnc-0.9.17/src/sslhelper.c:288:3: error: Memory leak: OU [memleak] x11vnc-0.9.17/src/sslhelper.c:288:3: error: Memory leak: O [memleak] x11vnc-0.9.17/src/sslhelper.c:288:3: error: Memory leak: CN [memleak] x11vnc-0.9.17/src/sslhelper.c:288:3: error: Memory leak: EM [memleak] x11vnc-0.9.17/src/sslhelper.c:456:4: error: Memory leak: pathcrt [memleak] x11vnc-0.9.17/src/sslhelper.c:467:4: error: Memory leak: pathcrt [memleak] x11vnc-0.9.17/src/sslhelper.c:4401:10: error: Memory leak: cipher [memleak] x11vnc-0.9.17/src/sslhelper.c:98:13: warning: Either the condition '!save' is redundant or there is possible null pointer dereference: save. [nullPointerRedundantCheck] x11vnc-0.9.17/src/sslhelper.c:93:6: note: Assuming that condition '!save' is not redundant x11vnc-0.9.17/src/sslhelper.c:98:13: note: Null pointer dereference x11vnc-0.9.17/src/sslhelper.c:122:15: warning: Either the condition '!cdir' is redundant or there is possible null pointer dereference: cdir. [nullPointerRedundantCheck] x11vnc-0.9.17/src/sslhelper.c:117:6: note: Assuming that condition '!cdir' is not redundant x11vnc-0.9.17/src/sslhelper.c:122:15: note: Null pointer dereference x11vnc-0.9.17/src/sslhelper.c:125:35: warning: Either the condition '!cdir' is redundant or there is possible null pointer dereference: cdir. [nullPointerRedundantCheck] x11vnc-0.9.17/src/sslhelper.c:117:6: note: Assuming that condition '!cdir' is not redundant x11vnc-0.9.17/src/sslhelper.c:125:35: note: Null pointer dereference x11vnc-0.9.17/src/sslhelper.c:208:9: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] x11vnc-0.9.17/src/sslhelper.c:207:24: note: Assuming allocation function fails x11vnc-0.9.17/src/sslhelper.c:207:9: note: Assignment 'path=(char*)malloc(strlen(gp)+strlen(extra)+1)', assigned value is 0 x11vnc-0.9.17/src/sslhelper.c:208:9: note: Null pointer dereference x11vnc-0.9.17/src/sslhelper.c:209:9: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] x11vnc-0.9.17/src/sslhelper.c:207:24: note: Assuming allocation function fails x11vnc-0.9.17/src/sslhelper.c:207:9: note: Assignment 'path=(char*)malloc(strlen(gp)+strlen(extra)+1)', assigned value is 0 x11vnc-0.9.17/src/sslhelper.c:209:9: note: Null pointer dereference x11vnc-0.9.17/src/sslhelper.c:212:31: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] x11vnc-0.9.17/src/sslhelper.c:207:24: note: Assuming allocation function fails x11vnc-0.9.17/src/sslhelper.c:207:9: note: Assignment 'path=(char*)malloc(strlen(gp)+strlen(extra)+1)', assigned value is 0 x11vnc-0.9.17/src/sslhelper.c:212:31: note: Null pointer dereference x11vnc-0.9.17/src/sslhelper.c:434:15: warning: If memory allocation fails, then there is a possible null pointer dereference: pathcrt [nullPointerOutOfMemory] x11vnc-0.9.17/src/sslhelper.c:430:29: note: Assuming allocation function fails x11vnc-0.9.17/src/sslhelper.c:430:29: note: Assignment 'pathcrt=strdup(pathin)', assigned value is 0 x11vnc-0.9.17/src/sslhelper.c:434:15: note: Null pointer dereference x11vnc-0.9.17/src/sslhelper.c:497:28: warning: If memory allocation fails, then there is a possible null pointer dereference: exe [nullPointerOutOfMemory] x11vnc-0.9.17/src/sslhelper.c:495:16: note: Assuming allocation function fails x11vnc-0.9.17/src/sslhelper.c:495:16: note: Assignment 'exe=strdup("openssl")', assigned value is 0 x11vnc-0.9.17/src/sslhelper.c:497:28: note: Null pointer dereference x11vnc-0.9.17/src/sslhelper.c:575:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tfile [nullPointerOutOfMemory] x11vnc-0.9.17/src/sslhelper.c:570:26: note: Assuming allocation function fails x11vnc-0.9.17/src/sslhelper.c:570:11: note: Assignment 'tfile=(char*)malloc(strlen(tmp)+1024)', assigned value is 0 x11vnc-0.9.17/src/sslhelper.c:575:15: note: Null pointer dereference x11vnc-0.9.17/src/sslhelper.c:583:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tfile [nullPointerOutOfMemory] x11vnc-0.9.17/src/sslhelper.c:570:26: note: Assuming allocation function fails x11vnc-0.9.17/src/sslhelper.c:570:11: note: Assignment 'tfile=(char*)malloc(strlen(tmp)+1024)', assigned value is 0 x11vnc-0.9.17/src/sslhelper.c:576:9: note: Assuming condition is false x11vnc-0.9.17/src/sslhelper.c:583:15: note: Null pointer dereference x11vnc-0.9.17/src/sslhelper.c:584:8: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tfile [nullPointerOutOfMemory] x11vnc-0.9.17/src/sslhelper.c:570:26: note: Assuming allocation function fails x11vnc-0.9.17/src/sslhelper.c:570:11: note: Assignment 'tfile=(char*)malloc(strlen(tmp)+1024)', assigned value is 0 x11vnc-0.9.17/src/sslhelper.c:576:9: note: Assuming condition is false x11vnc-0.9.17/src/sslhelper.c:584:8: note: Null pointer dereference x11vnc-0.9.17/src/enc.h:2087:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] x11vnc-0.9.17/src/enc.h:2086:23: note: Assuming allocation function fails x11vnc-0.9.17/src/enc.h:2086:9: note: Assignment 'cmd=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/enc.h:2087:3: note: Null pointer dereference x11vnc-0.9.17/src/enc.h:2089:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] x11vnc-0.9.17/src/enc.h:2086:23: note: Assuming allocation function fails x11vnc-0.9.17/src/enc.h:2086:9: note: Assignment 'cmd=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/enc.h:2089:11: note: Null pointer dereference x11vnc-0.9.17/src/enc.h:2101:51: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] x11vnc-0.9.17/src/enc.h:2086:23: note: Assuming allocation function fails x11vnc-0.9.17/src/enc.h:2086:9: note: Assignment 'cmd=(char*)malloc(len)', assigned value is 0 x11vnc-0.9.17/src/enc.h:2101:51: note: Null pointer dereference x11vnc-0.9.17/src/sslhelper.c:4101:9: style:inconclusive: Same expression used in consecutive assignments of 'origport' and 'useport'. [duplicateAssignExpression] x11vnc-0.9.17/src/sslhelper.c:4102:9: note: Same expression used in consecutive assignments of 'origport' and 'useport'. x11vnc-0.9.17/src/sslhelper.c:4101:9: note: Same expression used in consecutive assignments of 'origport' and 'useport'. x11vnc-0.9.17/src/sslhelper.c:88:27: style:inconclusive: Function 'get_saved_pem' argument 1 names different: declaration 'string' definition 'save'. [funcArgNamesDifferent] x11vnc-0.9.17/src/sslhelper.c:81:27: note: Function 'get_saved_pem' argument 1 names different: declaration 'string' definition 'save'. x11vnc-0.9.17/src/sslhelper.c:88:27: note: Function 'get_saved_pem' argument 1 names different: declaration 'string' definition 'save'. x11vnc-0.9.17/src/sslhelper.c:238:28: style:inconclusive: Function 'create_tmp_pem' argument 1 names different: declaration 'path' definition 'pathin'. [funcArgNamesDifferent] x11vnc-0.9.17/src/sslhelper.c:84:28: note: Function 'create_tmp_pem' argument 1 names different: declaration 'path' definition 'pathin'. x11vnc-0.9.17/src/sslhelper.c:238:28: note: Function 'create_tmp_pem' argument 1 names different: declaration 'path' definition 'pathin'. x11vnc-0.9.17/src/sslhelper.c:2693:12: style: Local variable 'nmax' shadows outer function [shadowFunction] x11vnc-0.9.17/src/util.h:40:12: note: Shadowed declaration x11vnc-0.9.17/src/sslhelper.c:2693:12: note: Shadow variable x11vnc-0.9.17/src/sslhelper.c:2750:12: style: Local variable 'nmax' shadows outer function [shadowFunction] x11vnc-0.9.17/src/util.h:40:12: note: Shadowed declaration x11vnc-0.9.17/src/sslhelper.c:2750:12: note: Shadow variable x11vnc-0.9.17/src/sslhelper.c:3567:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/sslhelper.c:3306:17: note: Shadowed declaration x11vnc-0.9.17/src/sslhelper.c:3567:7: note: Shadow variable x11vnc-0.9.17/src/sslhelper.c:3665:8: style: Local variable 'n' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/sslhelper.c:3306:14: note: Shadowed declaration x11vnc-0.9.17/src/sslhelper.c:3665:8: note: Shadow variable x11vnc-0.9.17/src/sslhelper.c:3735:10: style: Local variable 'n' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/sslhelper.c:3665:8: note: Shadowed declaration x11vnc-0.9.17/src/sslhelper.c:3735:10: note: Shadow variable x11vnc-0.9.17/src/sslhelper.c:4068:8: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/sslhelper.c:3306:17: note: Shadowed declaration x11vnc-0.9.17/src/sslhelper.c:4068:8: note: Shadow variable x11vnc-0.9.17/src/sslhelper.c:4394:8: style: Local variable 'cipher' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/enc.h:265:14: note: Shadowed declaration x11vnc-0.9.17/src/sslhelper.c:4394:8: note: Shadow variable x11vnc-0.9.17/src/sslhelper.c:89:26: style: Variable 'cdir' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/sslhelper.c:170:30: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/sslhelper.c:195:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/sslhelper.c:195:25: style: Variable 'gp' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/sslhelper.c:198:7: style: Variable 'extra' can be declared as const array [constVariable] x11vnc-0.9.17/src/sslhelper.c:245:8: style: Variable 'days' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/sslhelper.c:247:7: style: Variable 'tmpl' can be declared as const array [constVariable] x11vnc-0.9.17/src/sslhelper.c:548:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/sslhelper.c:548:18: style: Variable 'cdir' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/sslhelper.c:618:11: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/sslhelper.c:3315:7: style: Variable 'uniq' can be declared as const array [constVariable] x11vnc-0.9.17/src/sslhelper.c:3323:17: style: Variable 'rb' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/sslhelper.c:3721:10: style: Variable 'reply' can be declared as const array [constVariable] x11vnc-0.9.17/src/sslhelper.c:3765:10: style: Variable 'reply' can be declared as const array [constVariable] x11vnc-0.9.17/src/sslhelper.c:3894:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/sslhelper.c:4041:9: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/sslhelper.c:4106:12: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/enc.h:2078:37: style: Parameter 'argv' can be declared as const array [constParameter] x11vnc-0.9.17/src/sslhelper.c:350:8: style: Variable 'days' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/sslhelper.c:352:8: style: Variable 'days' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/sslhelper.c:239:8: style: Unused variable: pid [unusedVariable] x11vnc-0.9.17/src/sslhelper.c:239:13: style: Unused variable: pidw [unusedVariable] x11vnc-0.9.17/src/sslhelper.c:244:22: style: Unused variable: status [unusedVariable] x11vnc-0.9.17/src/sslhelper.c:3004:21: style: Unused variable: status [unusedVariable] x11vnc-0.9.17/src/sslhelper.c:3028:11: style: Unused variable: wret [unusedVariable] x11vnc-0.9.17/src/sslhelper.c:3429:8: style: Variable 'sock' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/sslhelper.c:3743:8: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/sslhelper.c:4289:9: style: Variable 'sz' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/sslhelper.c:4289:34: style: Variable 'db' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/sslhelper.c:4288:7: style: Unused variable: buf0 [unusedVariable] x11vnc-0.9.17/src/sslhelper.c:4289:6: style: Variable 'sz' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/sslhelper.c:4289:17: style: Unused variable: n [unusedVariable] x11vnc-0.9.17/src/sslhelper.c:4289:20: style: Unused variable: m [unusedVariable] x11vnc-0.9.17/src/sslhelper.c:4289:23: style: Unused variable: status [unusedVariable] x11vnc-0.9.17/src/sslhelper.c:4289:31: style: Variable 'db' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/sslhelper.c:4290:8: style: Unused variable: buf [unusedVariable] x11vnc-0.9.17/src/enc.h:618:16: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/uinput.c:343:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/uinput.c:348:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/uinput.c:623:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/uinput.c:716:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/uinput.c:186:36: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/uinput.c:186:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.17/src/uinput.c:186:17: note: Assignment 'i=lookup_code(XK_Shift_L)', assigned value is -1 x11vnc-0.9.17/src/uinput.c:186:36: note: Condition '0<=i' is always false x11vnc-0.9.17/src/uinput.c:187:36: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/uinput.c:187:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.17/src/uinput.c:187:17: note: Assignment 'i=lookup_code(XK_Shift_R)', assigned value is -1 x11vnc-0.9.17/src/uinput.c:187:36: note: Condition '0<=i' is always false x11vnc-0.9.17/src/uinput.c:188:38: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/uinput.c:188:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.17/src/uinput.c:188:17: note: Assignment 'i=lookup_code(XK_Control_L)', assigned value is -1 x11vnc-0.9.17/src/uinput.c:188:38: note: Condition '0<=i' is always false x11vnc-0.9.17/src/uinput.c:189:38: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/uinput.c:189:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.17/src/uinput.c:189:17: note: Assignment 'i=lookup_code(XK_Control_R)', assigned value is -1 x11vnc-0.9.17/src/uinput.c:189:38: note: Condition '0<=i' is always false x11vnc-0.9.17/src/uinput.c:190:34: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/uinput.c:190:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.17/src/uinput.c:190:17: note: Assignment 'i=lookup_code(XK_Alt_L)', assigned value is -1 x11vnc-0.9.17/src/uinput.c:190:34: note: Condition '0<=i' is always false x11vnc-0.9.17/src/uinput.c:191:34: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/uinput.c:191:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.17/src/uinput.c:191:17: note: Assignment 'i=lookup_code(XK_Alt_R)', assigned value is -1 x11vnc-0.9.17/src/uinput.c:191:34: note: Condition '0<=i' is always false x11vnc-0.9.17/src/uinput.c:192:35: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/uinput.c:192:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.17/src/uinput.c:192:17: note: Assignment 'i=lookup_code(XK_Meta_L)', assigned value is -1 x11vnc-0.9.17/src/uinput.c:192:35: note: Condition '0<=i' is always false x11vnc-0.9.17/src/uinput.c:193:35: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/uinput.c:193:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.17/src/uinput.c:193:17: note: Assignment 'i=lookup_code(XK_Meta_R)', assigned value is -1 x11vnc-0.9.17/src/uinput.c:193:35: note: Condition '0<=i' is always false x11vnc-0.9.17/src/uinput.c:908:10: style: Condition '1||inside_thresh(dx,dy,thresh_mid)' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/uinput.c:1118:8: style: Condition 'bigjump' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/uinput.c:1105:26: note: Assignment 'bigjump=1', assigned value is 1 x11vnc-0.9.17/src/uinput.c:1118:8: note: Condition 'bigjump' is always true x11vnc-0.9.17/src/uinput.c:337:32: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] x11vnc-0.9.17/src/uinput.c:331:11: note: Assuming allocation function fails x11vnc-0.9.17/src/uinput.c:331:11: note: Assignment 'f=fopen(tslib_cal,"r")', assigned value is 0 x11vnc-0.9.17/src/uinput.c:337:32: note: Null pointer dereference x11vnc-0.9.17/src/uinput.c:968:9: style: Variable 'dxf' is reassigned a value before the old one has been used. [redundantAssignment] x11vnc-0.9.17/src/uinput.c:967:9: note: dxf is assigned x11vnc-0.9.17/src/uinput.c:968:9: note: dxf is overwritten x11vnc-0.9.17/src/uinput.c:971:9: style: Variable 'dxf' is reassigned a value before the old one has been used. [redundantAssignment] x11vnc-0.9.17/src/uinput.c:970:9: note: dxf is assigned x11vnc-0.9.17/src/uinput.c:971:9: note: dxf is overwritten x11vnc-0.9.17/src/uinput.c:976:9: style: Variable 'dyf' is reassigned a value before the old one has been used. [redundantAssignment] x11vnc-0.9.17/src/uinput.c:975:9: note: dyf is assigned x11vnc-0.9.17/src/uinput.c:976:9: note: dyf is overwritten x11vnc-0.9.17/src/uinput.c:979:9: style: Variable 'dyf' is reassigned a value before the old one has been used. [redundantAssignment] x11vnc-0.9.17/src/uinput.c:978:9: note: dyf is assigned x11vnc-0.9.17/src/uinput.c:979:9: note: dyf is overwritten x11vnc-0.9.17/src/uinput.c:606:29: style:inconclusive: Function 'parse_uinput_str' argument 1 names different: declaration 'str' definition 'in'. [funcArgNamesDifferent] x11vnc-0.9.17/src/uinput.c:84:29: note: Function 'parse_uinput_str' argument 1 names different: declaration 'str' definition 'in'. x11vnc-0.9.17/src/uinput.c:606:29: note: Function 'parse_uinput_str' argument 1 names different: declaration 'str' definition 'in'. x11vnc-0.9.17/src/uinput.c:1101:14: style: Local variable 'first' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/uinput.c:1056:13: note: Shadowed declaration x11vnc-0.9.17/src/uinput.c:1101:14: note: Shadow variable x11vnc-0.9.17/src/uinput.c:243:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/uinput.c:312:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/uinput.c:606:29: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/uinput.c:1057:14: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/unixpw.c:366:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/unixpw.c:387:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/unixpw.c:600:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/unixpw.c:683:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/unixpw.c:884:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/unixpw.c:1457:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/unixpw.c:1577:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/unixpw.c:1733:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/unixpw.c:2120:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/unixpw.c:2156:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/scan.c:417:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] x11vnc-0.9.17/src/scan.c:1087:18: style: Expression is always true because 'else if' condition is opposite to previous condition at line 1085. [multiCondition] x11vnc-0.9.17/src/scan.c:1085:18: note: first condition x11vnc-0.9.17/src/scan.c:1087:18: note: else if condition is opposite to first condition x11vnc-0.9.17/src/scan.c:1129:19: style: Expression is always true because 'else if' condition is opposite to previous condition at line 1127. [multiCondition] x11vnc-0.9.17/src/scan.c:1127:19: note: first condition x11vnc-0.9.17/src/scan.c:1129:19: note: else if condition is opposite to first condition x11vnc-0.9.17/src/scan.c:396:6: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/scan.c:394:11: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.17/src/scan.c:396:6: note: Condition 'db' is always false x11vnc-0.9.17/src/scan.c:1695:8: style: Condition 'debug' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/scan.c:1687:15: note: Assignment 'debug=0', assigned value is 0 x11vnc-0.9.17/src/scan.c:1695:8: note: Condition 'debug' is always false x11vnc-0.9.17/src/scan.c:3244:21: style: Condition 'xd_do_check&&0' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/scan.c:1687:7: style: Local variable 'debug' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/options.h:41:12: note: Shadowed declaration x11vnc-0.9.17/src/scan.c:1687:7: note: Shadow variable x11vnc-0.9.17/src/scan.c:1767:7: style: Local variable 'n' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/scan.c:1747:16: note: Shadowed declaration x11vnc-0.9.17/src/scan.c:1767:7: note: Shadow variable x11vnc-0.9.17/src/scan.c:375:34: style: Parameter 'shm' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/scan.c:1497:8: style: Variable 'src' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/scan.c:1578:8: style: Variable 'src' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/scan.c:3125:61: style: Parameter 'dst' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/scan.c:3125:72: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/scan.c:3439:31: style: Modulo of one is always equal to zero [moduloofone] x11vnc-0.9.17/src/unixpw.c:671:9: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] x11vnc-0.9.17/src/unixpw.c:726:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/unixpw.c:728:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/unixpw.c:746:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/unixpw.c:2089:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/unixpw.c:2092:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/unixpw.c:2098:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/unixpw.c:2108:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/unixpw.c:2117:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/unixpw.c:2139:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/unixpw.c:2176:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/unixpw.c:2182:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/unixpw.c:1467:19: style: Condition 'crypt_verify(user,pass)' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/unixpw.c:1467:19: note: Calling function 'crypt_verify' returns 0 x11vnc-0.9.17/src/unixpw.c:1467:19: note: Condition 'crypt_verify(user,pass)' is always false x11vnc-0.9.17/src/unixpw.c:1480:16: style: Condition 'su_verify(user,pass,NULL,NULL,NULL,1)' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/unixpw.c:1480:16: note: Calling function 'su_verify' returns 0 x11vnc-0.9.17/src/unixpw.c:1480:16: note: Condition 'su_verify(user,pass,NULL,NULL,NULL,1)' is always false x11vnc-0.9.17/src/unixpw.c:723:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/unixpw.c:719:29: note: Assuming allocation function fails x11vnc-0.9.17/src/unixpw.c:719:29: note: Assignment 'str=strdup(unixpw_list)', assigned value is 0 x11vnc-0.9.17/src/unixpw.c:723:7: note: Null pointer dereference x11vnc-0.9.17/src/unixpw.c:881:9: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] x11vnc-0.9.17/src/unixpw.c:862:15: note: Assuming allocation function fails x11vnc-0.9.17/src/unixpw.c:862:15: note: Assignment 'out=tmpfile()', assigned value is 0 x11vnc-0.9.17/src/unixpw.c:881:9: note: Null pointer dereference x11vnc-0.9.17/src/unixpw.c:2088:6: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/unixpw.c:2085:14: note: Assuming allocation function fails x11vnc-0.9.17/src/unixpw.c:2085:14: note: Assignment 'str=strdup(unixpw_list)', assigned value is 0 x11vnc-0.9.17/src/unixpw.c:2088:6: note: Null pointer dereference x11vnc-0.9.17/src/unixpw.c:2171:4: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] x11vnc-0.9.17/src/unixpw.c:2169:28: note: Assuming allocation function fails x11vnc-0.9.17/src/unixpw.c:2169:14: note: Assignment 'u=(char*)malloc(strlen(user)+1)', assigned value is 0 x11vnc-0.9.17/src/unixpw.c:2171:4: note: Null pointer dereference x11vnc-0.9.17/src/unixpw.c:2176:20: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/unixpw.c:2175:27: note: Assuming allocation function fails x11vnc-0.9.17/src/unixpw.c:2175:27: note: Assignment 'str=strdup(users_list)', assigned value is 0 x11vnc-0.9.17/src/unixpw.c:2176:20: note: Null pointer addition x11vnc-0.9.17/src/unixpw.c:395:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] x11vnc-0.9.17/src/unixpw.c:397:4: note: Found duplicate branches for 'if' and 'else'. x11vnc-0.9.17/src/unixpw.c:395:9: note: Found duplicate branches for 'if' and 'else'. x11vnc-0.9.17/src/scan.c:1515:6: style: Variable 'dst' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/unixpw.c:1667:19: style: Local variable 'nmax' shadows outer function [shadowFunction] x11vnc-0.9.17/src/util.h:40:12: note: Shadowed declaration x11vnc-0.9.17/src/unixpw.c:1667:19: note: Shadow variable x11vnc-0.9.17/src/unixpw.c:1913:8: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/unixpw.c:1667:12: note: Shadowed declaration x11vnc-0.9.17/src/unixpw.c:1913:8: note: Shadow variable x11vnc-0.9.17/src/unixpw.c:1918:10: style: Local variable 'str' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/unixpw.c:1672:8: note: Shadowed declaration x11vnc-0.9.17/src/unixpw.c:1918:10: note: Shadow variable x11vnc-0.9.17/src/unixpw.c:686:25: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/unixpw.c:719:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/unixpw.c:759:24: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/unixpw.c:759:36: style: Parameter 'pass' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/unixpw.c:956:21: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/unixpw.c:956:33: style: Parameter 'pass' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/unixpw.c:956:45: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/unixpw.c:956:56: style: Parameter 'rbuf' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/unixpw.c:956:67: style: Parameter 'rbuf_size' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/unixpw.c:1522:8: style: Variable 'prefs' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/unixpw.c:1672:8: style: Variable 'str' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/unixpw.c:1808:10: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/unixpw.c:2057:31: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/unixpw.c:2175:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:956:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:1138:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:1180:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:1385:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbMaxClientWait [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:1464:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:1607:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:1665:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:1870:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:1896:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:2456:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:2520:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:2901:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_PROTOCOL_VERSION [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:2950:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/unixpw.c:513:9: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/unixpw.c:513:24: style: Variable 'ndevs' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/unixpw.c:512:8: style: Unused variable: slave [unusedVariable] x11vnc-0.9.17/src/unixpw.c:513:6: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/unixpw.c:513:15: style: Unused variable: i [unusedVariable] x11vnc-0.9.17/src/unixpw.c:513:18: style: Variable 'ndevs' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/unixpw.c:513:29: style: Unused variable: tmp [unusedVariable] x11vnc-0.9.17/src/unixpw.c:671:13: style: Variable 'sig' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/unixpw.c:1522:14: style: Variable 'prefs' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/unixpw.c:1522:8: style: Variable 'prefs' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/util.c:470:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/util.c:496:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/util.c:537:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/util.c:575:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/util.c:647:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/util.c:755:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/util.c:394:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/util.c:398:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/util.c:500:9: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.17/src/util.c:499:9: note: First condition x11vnc-0.9.17/src/util.c:500:9: note: Second condition x11vnc-0.9.17/src/util.c:501:9: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.17/src/util.c:500:9: note: First condition x11vnc-0.9.17/src/util.c:501:9: note: Second condition x11vnc-0.9.17/src/util.c:749:10: style: Condition 'th!=NULL' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/util.c:748:23: note: Calling function 'this_host' returns 0 x11vnc-0.9.17/src/util.c:748:23: note: Assignment 'th=this_host()', assigned value is 0 x11vnc-0.9.17/src/util.c:749:10: note: Condition 'th!=NULL' is always false x11vnc-0.9.17/src/util.c:384:10: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] x11vnc-0.9.17/src/util.c:381:14: note: Assuming allocation function fails x11vnc-0.9.17/src/util.c:381:14: note: Assignment 'str=strdup(cslist)', assigned value is 0 x11vnc-0.9.17/src/util.c:383:6: note: Assignment 'p=str', assigned value is 0 x11vnc-0.9.17/src/util.c:384:10: note: Null pointer dereference x11vnc-0.9.17/src/util.c:397:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/util.c:392:25: note: Assuming allocation function fails x11vnc-0.9.17/src/util.c:392:9: note: Assignment 'list=(char**)calloc((n+1)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/util.c:397:3: note: Null pointer dereference x11vnc-0.9.17/src/util.c:182:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/util.c:201:23: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/util.c:210:22: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/util.c:239:20: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/util.c:239:32: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/util.c:272:8: style: Variable 'user' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/util.c:296:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/util.c:317:8: style: Variable 'shell' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/util.c:372:30: style: Parameter 'cslist' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/util.c:713:26: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/util.c:240:8: style: Unused variable: str [unusedVariable] x11vnc-0.9.17/src/util.c:341:7: style: Unused variable: host [unusedVariable] x11vnc-0.9.17/src/util.c:527:8: style: Variable 'usec0' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/v4l.c:645:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_b [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/v4l.c:1079:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/v4l.c:1228:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/v4l.c:1433:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/v4l.c:1475:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/v4l.c:1564:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/v4l.c:1594:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/v4l.c:1599:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/v4l.c:1640:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/userinput.c:918:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:1088:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:1210:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:1480:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:1878:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:2062:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:2188:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:2374:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:2560:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:2751:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:3081:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:3190:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:3692:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x1 [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:3835:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:3897:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:4137:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:4279:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:4389:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:5177:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:5350:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:5406:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbFramebufferUpdate [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:5508:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:5662:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/v4l.c:1410:21: warning: Identical condition 'sta>=500', second condition is always false [identicalConditionAfterEarlyExit] x11vnc-0.9.17/src/v4l.c:1407:10: note: If condition 'sta>=500' is true, the function will return/exit x11vnc-0.9.17/src/v4l.c:1410:21: note: Testing identical condition 'sta>=500' x11vnc-0.9.17/src/v4l.c:619:17: style: Condition 'v4l1_setfmt(raw_fb_fd,fmt)' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/v4l.c:619:17: note: Calling function 'v4l1_setfmt' returns 1 x11vnc-0.9.17/src/v4l.c:619:17: note: Condition 'v4l1_setfmt(raw_fb_fd,fmt)' is always true x11vnc-0.9.17/src/v4l.c:745:25: style: Condition 'v4l2_lu_palette_str(fmt,&tb,&tr)' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/v4l.c:745:25: note: Calling function 'v4l2_lu_palette_str' returns 0 x11vnc-0.9.17/src/v4l.c:745:25: note: Condition 'v4l2_lu_palette_str(fmt,&tb,&tr)' is always false x11vnc-0.9.17/src/v4l.c:750:25: style: Condition 'v4l1_lu_palette_str(fmt,&tb,&tr)' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/v4l.c:750:25: note: Calling function 'v4l1_lu_palette_str' returns 0 x11vnc-0.9.17/src/v4l.c:750:25: note: Condition 'v4l1_lu_palette_str(fmt,&tb,&tr)' is always false x11vnc-0.9.17/src/v4l.c:1386:14: style: Condition 'atparms==NULL' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/v4l.c:1377:6: note: Assuming that condition 'atparms' is not redundant x11vnc-0.9.17/src/v4l.c:1386:14: note: Condition 'atparms==NULL' is always true x11vnc-0.9.17/src/v4l.c:1482:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.17/src/v4l.c:1526:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.17/src/v4l.c:1208:3: error: Memory leak: cmd [memleak] x11vnc-0.9.17/src/v4l.c:1214:3: error: Memory leak: cmd [memleak] x11vnc-0.9.17/src/v4l.c:721:3: warning: Either the condition 'p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] x11vnc-0.9.17/src/v4l.c:717:6: note: Assuming that condition 'p' is not redundant x11vnc-0.9.17/src/v4l.c:721:3: note: Null pointer dereference x11vnc-0.9.17/src/v4l.c:1462:14: warning: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] x11vnc-0.9.17/src/v4l.c:1461:14: note: Assuming allocation function fails x11vnc-0.9.17/src/v4l.c:1461:14: note: Assignment 'dir=strdup(file)', assigned value is 0 x11vnc-0.9.17/src/v4l.c:1462:14: note: Null pointer dereference x11vnc-0.9.17/src/v4l.c:1469:33: warning: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] x11vnc-0.9.17/src/v4l.c:1467:15: note: Assuming allocation function fails x11vnc-0.9.17/src/v4l.c:1467:15: note: Assignment 'dir=strdup("./")', assigned value is 0 x11vnc-0.9.17/src/v4l.c:1469:33: note: Null pointer dereference x11vnc-0.9.17/src/v4l.c:1476:34: warning: If resource allocation fails, then there is a possible null pointer dereference: in1 [nullPointerOutOfResources] x11vnc-0.9.17/src/v4l.c:1470:13: note: Assuming allocation function fails x11vnc-0.9.17/src/v4l.c:1470:13: note: Assignment 'in1=fopen(file,"r")', assigned value is 0 x11vnc-0.9.17/src/v4l.c:1476:34: note: Null pointer dereference x11vnc-0.9.17/src/v4l.c:1498:38: warning: If resource allocation fails, then there is a possible null pointer dereference: in2 [nullPointerOutOfResources] x11vnc-0.9.17/src/v4l.c:1492:15: note: Assuming allocation function fails x11vnc-0.9.17/src/v4l.c:1492:15: note: Assignment 'in2=fopen(file2,"r")', assigned value is 0 x11vnc-0.9.17/src/v4l.c:1498:38: note: Null pointer dereference x11vnc-0.9.17/src/v4l.c:1510:2: warning: If memory allocation fails, then there is a possible null pointer dereference: text [nullPointerOutOfMemory] x11vnc-0.9.17/src/v4l.c:1508:24: note: Assuming allocation function fails x11vnc-0.9.17/src/v4l.c:1508:9: note: Assignment 'text=(char*)malloc(size)', assigned value is 0 x11vnc-0.9.17/src/v4l.c:1510:2: note: Null pointer dereference x11vnc-0.9.17/src/v4l.c:1517:34: warning: If resource allocation fails, then there is a possible null pointer dereference: in1 [nullPointerOutOfResources] x11vnc-0.9.17/src/v4l.c:1512:13: note: Assuming allocation function fails x11vnc-0.9.17/src/v4l.c:1512:13: note: Assignment 'in1=fopen(file,"r")', assigned value is 0 x11vnc-0.9.17/src/v4l.c:1517:34: note: Null pointer dereference x11vnc-0.9.17/src/v4l.c:1542:38: warning: If resource allocation fails, then there is a possible null pointer dereference: in2 [nullPointerOutOfResources] x11vnc-0.9.17/src/v4l.c:1537:15: note: Assuming allocation function fails x11vnc-0.9.17/src/v4l.c:1537:15: note: Assignment 'in2=fopen(file2,"r")', assigned value is 0 x11vnc-0.9.17/src/v4l.c:1542:38: note: Null pointer dereference x11vnc-0.9.17/src/v4l.c:1555:20: warning: If memory allocation fails, then there is a possible null pointer dereference: text [nullPointerOutOfMemory] x11vnc-0.9.17/src/v4l.c:1508:24: note: Assuming allocation function fails x11vnc-0.9.17/src/v4l.c:1508:9: note: Assignment 'text=(char*)malloc(size)', assigned value is 0 x11vnc-0.9.17/src/v4l.c:1555:20: note: Null pointer dereference x11vnc-0.9.17/src/v4l.c:742:30: style:inconclusive: Function 'lookup_rgb' argument 1 names different: declaration 'g_fmt' definition 'fmt'. [funcArgNamesDifferent] x11vnc-0.9.17/src/v4l.c:90:30: note: Function 'lookup_rgb' argument 1 names different: declaration 'g_fmt' definition 'fmt'. x11vnc-0.9.17/src/v4l.c:742:30: note: Function 'lookup_rgb' argument 1 names different: declaration 'g_fmt' definition 'fmt'. x11vnc-0.9.17/src/v4l.c:742:40: style:inconclusive: Function 'lookup_rgb' argument 2 names different: declaration 'g_b' definition 'bits'. [funcArgNamesDifferent] x11vnc-0.9.17/src/v4l.c:90:42: note: Function 'lookup_rgb' argument 2 names different: declaration 'g_b' definition 'bits'. x11vnc-0.9.17/src/v4l.c:742:40: note: Function 'lookup_rgb' argument 2 names different: declaration 'g_b' definition 'bits'. x11vnc-0.9.17/src/v4l.c:742:51: style:inconclusive: Function 'lookup_rgb' argument 3 names different: declaration 'mask_rev' definition 'rev'. [funcArgNamesDifferent] x11vnc-0.9.17/src/v4l.c:90:52: note: Function 'lookup_rgb' argument 3 names different: declaration 'mask_rev' definition 'rev'. x11vnc-0.9.17/src/v4l.c:742:51: note: Function 'lookup_rgb' argument 3 names different: declaration 'mask_rev' definition 'rev'. x11vnc-0.9.17/src/v4l.c:809:43: style:inconclusive: Function 'v4l2_lu_palette' argument 1 names different: declaration 'palette' definition 'fmt'. [funcArgNamesDifferent] x11vnc-0.9.17/src/v4l.c:93:43: note: Function 'v4l2_lu_palette' argument 1 names different: declaration 'palette' definition 'fmt'. x11vnc-0.9.17/src/v4l.c:809:43: note: Function 'v4l2_lu_palette' argument 1 names different: declaration 'palette' definition 'fmt'. x11vnc-0.9.17/src/v4l.c:893:35: style:inconclusive: Function 'v4l1_query' argument 2 names different: declaration 'verbose' definition 'v'. [funcArgNamesDifferent] x11vnc-0.9.17/src/v4l.c:95:35: note: Function 'v4l1_query' argument 2 names different: declaration 'verbose' definition 'v'. x11vnc-0.9.17/src/v4l.c:893:35: note: Function 'v4l1_query' argument 2 names different: declaration 'verbose' definition 'v'. x11vnc-0.9.17/src/v4l.c:992:35: style:inconclusive: Function 'v4l2_query' argument 2 names different: declaration 'verbose' definition 'v'. [funcArgNamesDifferent] x11vnc-0.9.17/src/v4l.c:96:35: note: Function 'v4l2_query' argument 2 names different: declaration 'verbose' definition 'v'. x11vnc-0.9.17/src/v4l.c:992:35: note: Function 'v4l2_query' argument 2 names different: declaration 'verbose' definition 'v'. x11vnc-0.9.17/src/v4l.c:1483:10: style: Local variable 'q' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/v4l.c:1449:12: note: Shadowed declaration x11vnc-0.9.17/src/v4l.c:1483:10: note: Shadow variable x11vnc-0.9.17/src/v4l.c:1528:10: style: Local variable 'q' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/v4l.c:1449:12: note: Shadowed declaration x11vnc-0.9.17/src/v4l.c:1528:10: note: Shadow variable x11vnc-0.9.17/src/v4l.c:259:38: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:286:34: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:286:45: style: Parameter 'settings' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:286:60: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:695:26: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:709:30: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:725:30: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:781:49: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:781:60: style: Parameter 'bits' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:781:71: style: Parameter 'rev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:844:47: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:844:58: style: Parameter 'bits' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:844:69: style: Parameter 'rev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:1093:34: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:1093:44: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/v4l.c:1171:49: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/win_utils.c:325:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/win_utils.c:430:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/win_utils.c:604:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/win_utils.c:119:6: warning: Identical condition 'win==0L', second condition is always false [identicalConditionAfterEarlyExit] x11vnc-0.9.17/src/win_utils.c:105:10: note: If condition 'win==0L' is true, the function will return/exit x11vnc-0.9.17/src/win_utils.c:119:6: note: Testing identical condition 'win==0L' x11vnc-0.9.17/src/win_utils.c:178:18: style: Condition 'valid_window(win,&attr,1)' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/win_utils.c:178:18: note: Calling function 'valid_window' returns 0 x11vnc-0.9.17/src/win_utils.c:178:18: note: Condition 'valid_window(win,&attr,1)' is always false x11vnc-0.9.17/src/win_utils.c:330:14: style: Condition '!valid_window(win,&attr,1)' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/win_utils.c:330:27: note: Calling function 'valid_window' returns 0 x11vnc-0.9.17/src/win_utils.c:330:14: note: Condition '!valid_window(win,&attr,1)' is always true x11vnc-0.9.17/src/win_utils.c:93:27: style: Variable 'pattr' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/win_utils.c:142:68: style: Parameter 'dst_x' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/win_utils.c:143:10: style: Parameter 'dst_y' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/win_utils.c:143:25: style: Parameter 'child' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/win_utils.c:198:10: style: Variable 'list' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/win_utils.c:480:55: style: Parameter 'name_info' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/win_utils.c:763:36: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/win_utils.c:788:35: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/win_utils.c:811:49: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/win_utils.c:860:30: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/win_utils.c:100:9: style: Variable 'pattr' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:102:9: style: Variable 'pattr' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:93:20: style: Unused variable: attr [unusedVariable] x11vnc-0.9.17/src/win_utils.c:230:6: style: Variable 'num' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:230:11: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:230:15: style: Variable 'i' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:230:19: style: Variable 'j' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:231:5: style: Variable 'ui' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:232:4: style: Variable 'r' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:232:8: style: Variable 'w' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:372:19: style: Variable 'rx' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:372:24: style: Variable 'ry' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:601:13: style: Variable 'dx' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:601:21: style: Variable 'dy' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:601:29: style: Variable 'dw' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:601:37: style: Variable 'dh' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:603:26: style: Variable 'do_move' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:603:41: style: Variable 'do_resize' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:604:13: style: Variable 'disp_x' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:605:13: style: Variable 'disp_y' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:601:6: style: Unused variable: rc [unusedVariable] x11vnc-0.9.17/src/win_utils.c:601:10: style: Variable 'dx' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:601:18: style: Variable 'dy' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:601:26: style: Variable 'dw' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:601:34: style: Variable 'dh' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:602:6: style: Unused variable: x0 [unusedVariable] x11vnc-0.9.17/src/win_utils.c:602:10: style: Unused variable: y0 [unusedVariable] x11vnc-0.9.17/src/win_utils.c:602:14: style: Unused variable: w0 [unusedVariable] x11vnc-0.9.17/src/win_utils.c:602:18: style: Unused variable: h0 [unusedVariable] x11vnc-0.9.17/src/win_utils.c:603:6: style: Unused variable: x [unusedVariable] x11vnc-0.9.17/src/win_utils.c:603:9: style: Unused variable: y [unusedVariable] x11vnc-0.9.17/src/win_utils.c:603:12: style: Unused variable: w [unusedVariable] x11vnc-0.9.17/src/win_utils.c:603:15: style: Unused variable: h [unusedVariable] x11vnc-0.9.17/src/win_utils.c:603:18: style: Variable 'do_move' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:603:31: style: Variable 'do_resize' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:604:6: style: Variable 'disp_x' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:605:6: style: Variable 'disp_y' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/win_utils.c:607:20: style: Unused variable: attr [unusedVariable] x11vnc-0.9.17/src/win_utils.c:609:9: style: Unused variable: twin [unusedVariable] x11vnc-0.9.17/src/x11vnc.c:924:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/x11vnc.c:1010:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/x11vnc.c:1031:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/x11vnc.c:1296:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/x11vnc.c:1336:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/x11vnc.c:1447:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/x11vnc.c:1723:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/x11vnc.c:1754:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/x11vnc.c:1917:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/x11vnc.c:1950:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/x11vnc.c:2152:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/user.c:1833:7: error: Using pointer to local variable 'num' that is out of scope. [invalidLifetime] x11vnc-0.9.17/src/user.c:1831:7: note: Array decayed to pointer here. x11vnc-0.9.17/src/user.c:1829:8: note: Variable created here. x11vnc-0.9.17/src/user.c:1833:7: note: Using pointer to local variable 'num' that is out of scope. x11vnc-0.9.17/src/user.c:1837:13: error: Using pointer to local variable 'num' that is out of scope. [invalidLifetime] x11vnc-0.9.17/src/user.c:1831:7: note: Array decayed to pointer here. x11vnc-0.9.17/src/user.c:1829:8: note: Variable created here. x11vnc-0.9.17/src/user.c:1837:13: note: Using pointer to local variable 'num' that is out of scope. x11vnc-0.9.17/src/user.c:1837:14: error: Using pointer to local variable 'num' that is out of scope. [invalidLifetime] x11vnc-0.9.17/src/user.c:1831:7: note: Array decayed to pointer here. x11vnc-0.9.17/src/user.c:1829:8: note: Variable created here. x11vnc-0.9.17/src/user.c:1837:14: note: Using pointer to local variable 'num' that is out of scope. x11vnc-0.9.17/src/user.c:1838:67: error: Using pointer to local variable 'num' that is out of scope. [invalidLifetime] x11vnc-0.9.17/src/user.c:1831:7: note: Array decayed to pointer here. x11vnc-0.9.17/src/user.c:1829:8: note: Variable created here. x11vnc-0.9.17/src/user.c:1838:67: note: Using pointer to local variable 'num' that is out of scope. x11vnc-0.9.17/src/user.c:1842:67: error:inconclusive: Using pointer to local variable 'num' that is out of scope. [invalidLifetime] x11vnc-0.9.17/src/user.c:1831:7: note: Array decayed to pointer here. x11vnc-0.9.17/src/user.c:1829:8: note: Variable created here. x11vnc-0.9.17/src/user.c:1842:67: note: Using pointer to local variable 'num' that is out of scope. x11vnc-0.9.17/src/user.c:264:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:268:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:315:25: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] x11vnc-0.9.17/src/user.c:449:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:452:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:591:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:594:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:855:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:862:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:1277:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:1390:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:2357:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:2363:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:2402:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:2408:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:2440:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:2449:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/user.c:2682:5: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.17/src/user.c:2681:5: note: First condition x11vnc-0.9.17/src/user.c:2682:5: note: Second condition x11vnc-0.9.17/src/user.c:504:28: style: Condition 'try_user_and_display(uid,gid,dpystr)' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/user.c:504:28: note: Calling function 'try_user_and_display' returns 0 x11vnc-0.9.17/src/user.c:504:28: note: Condition 'try_user_and_display(uid,gid,dpystr)' is always false x11vnc-0.9.17/src/user.c:1300:10: style: Condition '0&&strstr(p,"display=")==p' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/user.c:1303:17: style: Condition '0&&strstr(p,"auth=")==p' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/user.c:1306:17: style: Condition '0&&!strcmp(p,"shared")' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/user.c:1469:15: style: Condition 'use_openssl' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/user.c:2268:13: style: Condition 'strcmp(upeer,"")' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/user.c:1942:14: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.17/src/user.c:2230:11: error: Memory leak: str [memleak] x11vnc-0.9.17/src/user.c:2236:11: error: Memory leak: str [memleak] x11vnc-0.9.17/src/user.c:2242:12: error: Memory leak: str [memleak] x11vnc-0.9.17/src/user.c:2246:11: error: Memory leak: str [memleak] x11vnc-0.9.17/src/user.c:2635:4: error: Resource leak: p [resourceLeak] x11vnc-0.9.17/src/user.c:257:11: warning: If memory allocation fails, then there is a possible null pointer dereference: p++ [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:582:16: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:582:16: note: Assignment 'tstr=strdup(allowed)', assigned value is 0 x11vnc-0.9.17/src/user.c:583:21: note: Calling function 'user_list', 1st argument 'tstr' value is 0 x11vnc-0.9.17/src/user.c:255:6: note: Assignment 'p=user_str', assigned value is 0 x11vnc-0.9.17/src/user.c:257:11: note: Null pointer dereference x11vnc-0.9.17/src/user.c:267:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:262:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:262:9: note: Assignment 'list=(char**)calloc((n+1)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/user.c:267:3: note: Null pointer dereference x11vnc-0.9.17/src/user.c:270:2: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:262:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:262:9: note: Assignment 'list=(char**)calloc((n+1)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/user.c:270:2: note: Null pointer dereference x11vnc-0.9.17/src/user.c:304:5: warning: If memory allocation fails, then there is a possible null pointer dereference: did [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:301:24: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:301:10: note: Assignment 'did=(int*)malloc((n+1)*sizeof(int))', assigned value is 0 x11vnc-0.9.17/src/user.c:304:5: note: Null pointer dereference x11vnc-0.9.17/src/user.c:320:13: warning: Either the condition '!gr' is redundant or there is possible null pointer dereference: gr. [nullPointerRedundantCheck] x11vnc-0.9.17/src/user.c:316:10: note: Assuming that condition '!gr' is not redundant x11vnc-0.9.17/src/user.c:320:13: note: Null pointer dereference x11vnc-0.9.17/src/user.c:412:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:411:24: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:411:9: note: Assignment 'tmp=(char*)malloc(len+1)', assigned value is 0 x11vnc-0.9.17/src/user.c:412:10: note: Null pointer dereference x11vnc-0.9.17/src/user.c:451:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:447:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:447:9: note: Assignment 'list=(char**)calloc((strlen(logins)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/user.c:451:3: note: Null pointer dereference x11vnc-0.9.17/src/user.c:457:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:447:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:447:9: note: Assignment 'list=(char**)calloc((strlen(logins)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/user.c:457:9: note: Null pointer dereference x11vnc-0.9.17/src/user.c:462:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:447:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:447:9: note: Assignment 'list=(char**)calloc((strlen(logins)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/user.c:462:7: note: Null pointer dereference x11vnc-0.9.17/src/user.c:465:14: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:464:13: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:464:13: note: Assignment 't=strdup(p)', assigned value is 0 x11vnc-0.9.17/src/user.c:465:14: note: Null pointer dereference x11vnc-0.9.17/src/user.c:593:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:589:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:589:9: note: Assignment 'list=(char**)calloc((strlen(logins)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/user.c:593:3: note: Null pointer dereference x11vnc-0.9.17/src/user.c:598:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:589:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:589:9: note: Assignment 'list=(char**)calloc((strlen(logins)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/user.c:598:9: note: Null pointer dereference x11vnc-0.9.17/src/user.c:602:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:589:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:589:9: note: Assignment 'list=(char**)calloc((strlen(logins)+2)*sizeof(char*),1)', assigned value is 0 x11vnc-0.9.17/src/user.c:602:7: note: Null pointer dereference x11vnc-0.9.17/src/user.c:605:14: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:604:13: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:604:13: note: Assignment 't=strdup(p)', assigned value is 0 x11vnc-0.9.17/src/user.c:605:14: note: Null pointer dereference x11vnc-0.9.17/src/user.c:722:7: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: user [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2382:28: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2382:13: note: Assignment 'u=(char*)malloc(strlen(usslpeer)+2)', assigned value is 0 x11vnc-0.9.17/src/user.c:2384:19: note: Calling function 'switch_user', 1st argument 'u' value is 0 x11vnc-0.9.17/src/user.c:722:7: note: Null pointer dereference x11vnc-0.9.17/src/user.c:729:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: user [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2382:28: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2382:13: note: Assignment 'u=(char*)malloc(strlen(usslpeer)+2)', assigned value is 0 x11vnc-0.9.17/src/user.c:2384:19: note: Calling function 'switch_user', 1st argument 'u' value is 0 x11vnc-0.9.17/src/user.c:722:12: note: Assuming condition is false x11vnc-0.9.17/src/user.c:729:13: note: Null pointer dereference x11vnc-0.9.17/src/user.c:847:13: warning: If memory allocation fails, then there is a possible null pointer dereference: users [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:845:16: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:845:16: note: Assignment 'users=strdup(users_list)', assigned value is 0 x11vnc-0.9.17/src/user.c:847:13: note: Null pointer dereference x11vnc-0.9.17/src/user.c:917:10: warning: If resource allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfResources] x11vnc-0.9.17/src/user.c:904:15: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:904:15: note: Assignment 'in=tmpfile()', assigned value is 0 x11vnc-0.9.17/src/user.c:917:10: note: Null pointer dereference x11vnc-0.9.17/src/user.c:931:3: warning: If memory allocation fails, then there is a possible null pointer dereference: passwd_list [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:929:32: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:929:16: note: Assignment 'passwd_list=(char**)malloc((max+1)*(sizeof(char*)))', assigned value is 0 x11vnc-0.9.17/src/user.c:931:3: note: Null pointer dereference x11vnc-0.9.17/src/user.c:1086:3: warning: If memory allocation fails, then there is a possible null pointer dereference: passwds_new [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:1084:40: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:1084:24: note: Assignment 'passwds_new=(char**)malloc(3*sizeof(char*))', assigned value is 0 x11vnc-0.9.17/src/user.c:1086:3: note: Null pointer dereference x11vnc-0.9.17/src/user.c:1087:3: warning: If memory allocation fails, then there is a possible null pointer dereference: passwds_new [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:1084:40: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:1084:24: note: Assignment 'passwds_new=(char**)malloc(3*sizeof(char*))', assigned value is 0 x11vnc-0.9.17/src/user.c:1087:3: note: Null pointer dereference x11vnc-0.9.17/src/user.c:1088:3: warning: If memory allocation fails, then there is a possible null pointer dereference: passwds_new [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:1084:40: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:1084:24: note: Assignment 'passwds_new=(char**)malloc(3*sizeof(char*))', assigned value is 0 x11vnc-0.9.17/src/user.c:1088:3: note: Null pointer dereference x11vnc-0.9.17/src/user.c:1146:2: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:1144:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:1144:10: note: Assignment 'input=(char*)malloc(2*len+16+1)', assigned value is 0 x11vnc-0.9.17/src/user.c:1146:2: note: Null pointer dereference x11vnc-0.9.17/src/user.c:1147:9: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:1144:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:1144:10: note: Assignment 'input=(char*)malloc(2*len+16+1)', assigned value is 0 x11vnc-0.9.17/src/user.c:1147:9: note: Null pointer dereference x11vnc-0.9.17/src/user.c:1152:3: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:1144:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:1144:10: note: Assignment 'input=(char*)malloc(2*len+16+1)', assigned value is 0 x11vnc-0.9.17/src/user.c:1152:3: note: Null pointer dereference x11vnc-0.9.17/src/user.c:1156:3: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:1144:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:1144:10: note: Assignment 'input=(char*)malloc(2*len+16+1)', assigned value is 0 x11vnc-0.9.17/src/user.c:1156:3: note: Null pointer dereference x11vnc-0.9.17/src/user.c:1376:13: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:1374:24: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:1374:24: note: Assignment 'speeds_str=strdup(q)', assigned value is 0 x11vnc-0.9.17/src/user.c:1375:9: note: Assignment 'q=speeds_str', assigned value is 0 x11vnc-0.9.17/src/user.c:1376:13: note: Null pointer dereference x11vnc-0.9.17/src/user.c:1994:14: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:1992:27: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:1992:27: note: Assignment 't=strdup(keep_unixpw_opts)', assigned value is 0 x11vnc-0.9.17/src/user.c:1994:14: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2229:13: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2225:28: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2225:28: note: Assignment 'str=strdup(certret_str)', assigned value is 0 x11vnc-0.9.17/src/user.c:2229:13: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2258:13: warning: If memory allocation fails, then there is a possible null pointer dereference: upeer [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2256:16: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2256:16: note: Assignment 'upeer=strdup(q)', assigned value is 0 x11vnc-0.9.17/src/user.c:2258:13: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2287:16: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2285:14: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2285:14: note: Assignment 't=strdup(q)', assigned value is 0 x11vnc-0.9.17/src/user.c:2287:16: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2309:16: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2307:14: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2307:14: note: Assignment 't=strdup(q)', assigned value is 0 x11vnc-0.9.17/src/user.c:2309:16: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2352:2: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2351:21: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2351:6: note: Assignment 'u=(char*)malloc(strlen(upeer)+2)', assigned value is 0 x11vnc-0.9.17/src/user.c:2352:2: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2397:3: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2393:27: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2393:13: note: Assignment 'u=(char*)malloc(strlen(user)+1)', assigned value is 0 x11vnc-0.9.17/src/user.c:2397:3: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2588:12: warning: If resource allocation fails, then there is a possible null pointer dereference: mt [nullPointerOutOfResources] x11vnc-0.9.17/src/user.c:2582:20: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2582:20: note: Assignment 'mt=fopen(tmp,"w")', assigned value is 0 x11vnc-0.9.17/src/user.c:2588:12: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2589:11: warning: If resource allocation fails, then there is a possible null pointer dereference: mt [nullPointerOutOfResources] x11vnc-0.9.17/src/user.c:2582:20: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2582:20: note: Assignment 'mt=fopen(tmp,"w")', assigned value is 0 x11vnc-0.9.17/src/user.c:2589:11: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2698:14: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2696:15: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2696:15: note: Assignment 'c=strdup(cmd)', assigned value is 0 x11vnc-0.9.17/src/user.c:2698:14: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2710:14: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2708:15: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2708:15: note: Assignment 'c=strdup(cmd)', assigned value is 0 x11vnc-0.9.17/src/user.c:2710:14: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2725:34: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] x11vnc-0.9.17/src/user.c:2717:7: note: Assuming that condition '!p' is not redundant x11vnc-0.9.17/src/user.c:2725:34: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2750:12: warning: If resource allocation fails, then there is a possible null pointer dereference: mt [nullPointerOutOfResources] x11vnc-0.9.17/src/user.c:2741:20: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2741:20: note: Assignment 'mt=fopen(tmp,"w")', assigned value is 0 x11vnc-0.9.17/src/user.c:2750:12: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2751:11: warning: If resource allocation fails, then there is a possible null pointer dereference: mt [nullPointerOutOfResources] x11vnc-0.9.17/src/user.c:2741:20: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2741:20: note: Assignment 'mt=fopen(tmp,"w")', assigned value is 0 x11vnc-0.9.17/src/user.c:2751:11: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2766:35: warning: If resource allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfResources] x11vnc-0.9.17/src/user.c:2757:13: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2757:13: note: Assignment 'p=popen(create_cmd,"r")', assigned value is 0 x11vnc-0.9.17/src/user.c:2766:35: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2836:10: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2834:18: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2834:18: note: Assignment 'use_dpy=strdup(line1+strlen("DISPLAY="))', assigned value is 0 x11vnc-0.9.17/src/user.c:2835:6: note: Assignment 'q=use_dpy', assigned value is 0 x11vnc-0.9.17/src/user.c:2836:10: note: Null pointer dereference x11vnc-0.9.17/src/user.c:2855:11: warning: If memory allocation fails, then there is a possible null pointer dereference: xauth_raw_data [nullPointerOutOfMemory] x11vnc-0.9.17/src/user.c:2853:35: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2853:21: note: Assignment 'xauth_raw_data=(char*)malloc(n)', assigned value is 0 x11vnc-0.9.17/src/user.c:2855:11: note: Null pointer dereference x11vnc-0.9.17/src/user.c:257:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:582:16: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:582:16: note: Assignment 'tstr=strdup(allowed)', assigned value is 0 x11vnc-0.9.17/src/user.c:583:21: note: Calling function 'user_list', 1st argument 'tstr' value is 0 x11vnc-0.9.17/src/user.c:255:6: note: Assignment 'p=user_str', assigned value is 0 x11vnc-0.9.17/src/user.c:257:11: note: Null pointer addition x11vnc-0.9.17/src/user.c:724:7: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2382:28: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2382:13: note: Assignment 'u=(char*)malloc(strlen(usslpeer)+2)', assigned value is 0 x11vnc-0.9.17/src/user.c:2384:19: note: Calling function 'switch_user', 1st argument 'u' value is 0 x11vnc-0.9.17/src/user.c:724:7: note: Null pointer addition x11vnc-0.9.17/src/user.c:1837:14: warning: Either the condition '!q' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] x11vnc-0.9.17/src/user.c:1833:6: note: Assuming that condition '!q' is not redundant x11vnc-0.9.17/src/user.c:1837:14: note: Null pointer addition x11vnc-0.9.17/src/user.c:2357:18: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2356:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2356:25: note: Assignment 'str=strdup(users_list)', assigned value is 0 x11vnc-0.9.17/src/user.c:2357:18: note: Null pointer addition x11vnc-0.9.17/src/user.c:2402:19: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2401:26: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2401:26: note: Assignment 'str=strdup(users_list)', assigned value is 0 x11vnc-0.9.17/src/user.c:2402:19: note: Null pointer addition x11vnc-0.9.17/src/user.c:2959:6: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2958:14: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2958:14: note: Assignment 'str=strdup(use_dpy)', assigned value is 0 x11vnc-0.9.17/src/user.c:2959:6: note: Null pointer addition x11vnc-0.9.17/src/user.c:1740:12: style: The comparison 'pid == 0' is always true. [knownConditionTrueFalse] x11vnc-0.9.17/src/user.c:1709:15: note: 'pid' is assigned value '0' here. x11vnc-0.9.17/src/user.c:1740:12: note: The comparison 'pid == 0' is always true. x11vnc-0.9.17/src/user.c:1767:11: style: The comparison 'pid > 0' is always false. [knownConditionTrueFalse] x11vnc-0.9.17/src/user.c:1709:15: note: 'pid' is assigned value '0' here. x11vnc-0.9.17/src/user.c:1767:11: note: The comparison 'pid > 0' is always false. x11vnc-0.9.17/src/user.c:812:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] x11vnc-0.9.17/src/user.c:421:11: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/user.c:368:8: note: Shadowed declaration x11vnc-0.9.17/src/user.c:421:11: note: Shadow variable x11vnc-0.9.17/src/user.c:2054:8: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/user.c:1992:13: note: Shadowed declaration x11vnc-0.9.17/src/user.c:2054:8: note: Shadow variable x11vnc-0.9.17/src/user.c:2061:8: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/user.c:1992:13: note: Shadowed declaration x11vnc-0.9.17/src/user.c:2061:8: note: Shadow variable x11vnc-0.9.17/src/user.c:2074:11: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/user.c:1992:13: note: Shadowed declaration x11vnc-0.9.17/src/user.c:2074:11: note: Shadow variable x11vnc-0.9.17/src/user.c:3025:10: style: Local variable 'q' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/user.c:2926:14: note: Shadowed declaration x11vnc-0.9.17/src/user.c:3025:10: note: Shadow variable x11vnc-0.9.17/src/user.c:253:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:276:8: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:315:20: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:368:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:421:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:537:9: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:557:8: style: Variable 'dstr' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:557:15: style: Variable 'd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:558:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:558:26: style: Variable 'allowed' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:652:61: style: Parameter 'dpystr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/user.c:951:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:1254:31: style: Parameter 'opts' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/user.c:1824:33: style: Parameter 'vnc_redirect_test' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/user.c:1958:37: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/user.c:1958:80: style: Parameter 'tmp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/user.c:2074:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:2172:9: style: Variable 'uu' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:2356:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:2401:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:2424:31: style: Parameter 'prog' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/user.c:2426:8: style: Variable 'create_display_extra' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:2427:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:2510:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/user.c:275:30: style: Variable 'gotgroup' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/user.c:326:15: style: Variable 'gotgroup' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/user.c:762:15: style: Variable 'reset_fb' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/user.c:763:13: style: Variable 'grp_ok' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/user.c:763:6: style: Variable 'grp_ok' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/user.c:2864:16: style: Variable 'tried_switch' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/x11vnc.c:4689:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/x11vnc.c:4709:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/x11vnc.c:210:10: warning: Either the condition 'csock<0' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] x11vnc-0.9.17/src/x11vnc.c:209:38: note: Assuming that condition 'csock<0' is not redundant x11vnc-0.9.17/src/x11vnc.c:210:10: note: Invalid argument x11vnc-0.9.17/src/x11vnc.c:241:10: style: Condition 'pid==0' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/x11vnc.c:228:10: note: Assuming that condition 'pid<0' is not redundant x11vnc-0.9.17/src/x11vnc.c:233:10: note: Assuming condition is false x11vnc-0.9.17/src/x11vnc.c:241:10: note: Condition 'pid==0' is always true x11vnc-0.9.17/src/x11vnc.c:1336:6: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/x11vnc.c:1334:11: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1336:6: note: Condition 'db' is always false x11vnc-0.9.17/src/x11vnc.c:2090:9: style: Condition '0&&!got_inetd' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/x11vnc.c:1186:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.17/src/x11vnc.c:953:11: error: Dereferencing 'cmd' after it is deallocated / released [deallocuse] x11vnc-0.9.17/src/x11vnc.c:953:144: error: Dereferencing 's' after it is deallocated / released [deallocuse] x11vnc-0.9.17/src/x11vnc.c:869:14: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:862:18: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:862:18: note: Assignment 's=strdup(instr)', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:869:14: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1086:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argv2 [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:1085:26: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1085:10: note: Assignment 'argv2=(char**)malloc(argmax*sizeof(char*))', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1086:2: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1094:20: warning: If resource allocation fails, then there is a possible null pointer dereference: rc [nullPointerOutOfResources] x11vnc-0.9.17/src/x11vnc.c:1075:14: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1075:14: note: Assignment 'rc=fopen(rcfile,"r")', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1094:20: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1105:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:1104:24: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1104:9: note: Assignment 'buf=(char*)malloc(sz)', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1105:3: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1305:4: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:1304:13: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1304:13: note: Assignment 'u=strdup(argv[i+1])', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1305:4: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1306:14: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:1304:13: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1304:13: note: Assignment 'u=strdup(argv[i+1])', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1306:14: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1309:4: warning: If memory allocation fails, then there is a possible null pointer dereference: user2group [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:1308:33: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1308:17: note: Assignment 'user2group=(char**)malloc(2*sizeof(char*))', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1309:4: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1310:4: warning: If memory allocation fails, then there is a possible null pointer dereference: user2group [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:1308:33: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1308:17: note: Assignment 'user2group=(char**)malloc(2*sizeof(char*))', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1310:4: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1404:29: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:1359:13: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1359:13: note: Assignment 'q=strdup(tmp)', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1404:29: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1405:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:1404:21: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1404:6: note: Assignment 'p=(char*)malloc(strlen(q)+10)', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1405:9: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1405:12: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:1359:13: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1359:13: note: Assignment 'q=strdup(tmp)', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1405:12: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1406:13: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:1404:21: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1404:6: note: Assignment 'p=(char*)malloc(strlen(q)+10)', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1406:13: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1981:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] x11vnc-0.9.17/src/x11vnc.c:1979:23: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1979:9: note: Assignment 'cmd=(char*)malloc(100+strlen(program_name)+strlen(disp))', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1981:13: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1987:36: warning: If resource allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfResources] x11vnc-0.9.17/src/x11vnc.c:1981:12: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1981:12: note: Assignment 'p=popen(cmd,"r")', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1987:36: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:1988:10: warning: If resource allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfResources] x11vnc-0.9.17/src/x11vnc.c:1981:12: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:1981:12: note: Assignment 'p=popen(cmd,"r")', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:1988:10: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:2011:40: warning: If resource allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfResources] x11vnc-0.9.17/src/x11vnc.c:2005:16: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:2005:16: note: Assignment 'p=popen(cmd,"r")', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:2011:40: note: Null pointer dereference x11vnc-0.9.17/src/x11vnc.c:2012:14: warning: If resource allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfResources] x11vnc-0.9.17/src/x11vnc.c:2005:16: note: Assuming allocation function fails x11vnc-0.9.17/src/x11vnc.c:2005:16: note: Assignment 'p=popen(cmd,"r")', assigned value is 0 x11vnc-0.9.17/src/x11vnc.c:2012:14: note: Null pointer dereference x11vnc-0.9.17/src/xdamage.c:145:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xdamage.c:207:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xdamage.c:270:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xdamage.c:731:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xdamage.c:755:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sraRegionPtr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xdamage.c:255:9: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] x11vnc-0.9.17/src/xdamage.c:631:9: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] x11vnc-0.9.17/src/xdamage.c:632:9: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] x11vnc-0.9.17/src/xdamage.c:149:15: style: Condition '0&&wh_min0.0' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:3263:10: style: Condition '0&&dt_bad' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:3724:8: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:3722:13: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.17/src/userinput.c:3724:8: note: Condition 'db' is always false x11vnc-0.9.17/src/userinput.c:3766:15: style: Condition '*nidx_in==-1' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:3752:14: note: Assignment '*nidx_in=-1', assigned value is -1 x11vnc-0.9.17/src/userinput.c:3758:13: note: Assuming condition is false x11vnc-0.9.17/src/userinput.c:3766:15: note: Condition '*nidx_in==-1' is always true x11vnc-0.9.17/src/userinput.c:3769:12: style: Condition 'nidx<0' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:3767:26: note: Calling function 'lookup_win_index' returns -1 x11vnc-0.9.17/src/userinput.c:3767:26: note: Assignment 'nidx=lookup_win_index(orig_frame)', assigned value is -1 x11vnc-0.9.17/src/userinput.c:3769:12: note: Condition 'nidx<0' is always true x11vnc-0.9.17/src/userinput.c:3776:11: style: Condition 'nidx>0' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:3770:27: note: Calling function 'lookup_win_index' returns -1 x11vnc-0.9.17/src/userinput.c:3770:27: note: Assignment 'nidx=lookup_win_index(frame)', assigned value is -1 x11vnc-0.9.17/src/userinput.c:3776:11: note: Condition 'nidx>0' is always false x11vnc-0.9.17/src/userinput.c:3787:8: style: Condition '!find_rect(nidx,x,y,w,h)' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:3787:18: note: Calling function 'find_rect' returns 0 x11vnc-0.9.17/src/userinput.c:3787:8: note: Condition '!find_rect(nidx,x,y,w,h)' is always true x11vnc-0.9.17/src/userinput.c:3796:12: style: Condition 'bs_x<0' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:3786:12: note: Assuming that condition 'bs_x<0' is not redundant x11vnc-0.9.17/src/userinput.c:3796:12: note: Condition 'bs_x<0' is always false x11vnc-0.9.17/src/userinput.c:3897:5: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:3882:11: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.17/src/userinput.c:3897:5: note: Condition 'db' is always false x11vnc-0.9.17/src/userinput.c:3900:8: style: Condition '!find_rect(nidx,x,y,w,h)' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:3900:18: note: Calling function 'find_rect' returns 0 x11vnc-0.9.17/src/userinput.c:3900:8: note: Condition '!find_rect(nidx,x,y,w,h)' is always true x11vnc-0.9.17/src/userinput.c:3912:12: style: Condition 'bs_x<0' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:3899:12: note: Assuming that condition 'bs_x<0' is not redundant x11vnc-0.9.17/src/userinput.c:3912:12: note: Condition 'bs_x<0' is always false x11vnc-0.9.17/src/userinput.c:4273:13: style: Condition '!clipped(idx)' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:4273:21: note: Calling function 'clipped' returns 0 x11vnc-0.9.17/src/userinput.c:4273:13: note: Condition '!clipped(idx)' is always true x11vnc-0.9.17/src/userinput.c:4421:6: style: Condition '!get_wm_frame_pos(&px,&py,&x,&y,&w,&h,&frame,NULL)' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:4421:24: note: Calling function 'get_wm_frame_pos' returns 0 x11vnc-0.9.17/src/userinput.c:4421:6: note: Condition '!get_wm_frame_pos(&px,&py,&x,&y,&w,&h,&frame,NULL)' is always true x11vnc-0.9.17/src/userinput.c:4698:8: style: Condition '!get_wm_frame_pos(&px,&py,&x,&y,&w,&h,&frame,NULL)' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:4698:26: note: Calling function 'get_wm_frame_pos' returns 0 x11vnc-0.9.17/src/userinput.c:4698:8: note: Condition '!get_wm_frame_pos(&px,&py,&x,&y,&w,&h,&frame,NULL)' is always true x11vnc-0.9.17/src/userinput.c:350:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] x11vnc-0.9.17/src/userinput.c:347:14: note: Assuming allocation function fails x11vnc-0.9.17/src/userinput.c:347:14: note: Assignment 'str=strdup(wf)', assigned value is 0 x11vnc-0.9.17/src/userinput.c:350:7: note: Null pointer dereference x11vnc-0.9.17/src/userinput.c:352:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] x11vnc-0.9.17/src/userinput.c:351:30: note: Assuming allocation function fails x11vnc-0.9.17/src/userinput.c:351:15: note: Assignment 'tmp=(char*)malloc(strlen(str)+2)', assigned value is 0 x11vnc-0.9.17/src/userinput.c:352:10: note: Null pointer dereference x11vnc-0.9.17/src/userinput.c:353:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] x11vnc-0.9.17/src/userinput.c:351:30: note: Assuming allocation function fails x11vnc-0.9.17/src/userinput.c:351:15: note: Assignment 'tmp=(char*)malloc(strlen(str)+2)', assigned value is 0 x11vnc-0.9.17/src/userinput.c:353:10: note: Null pointer dereference x11vnc-0.9.17/src/userinput.c:580:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] x11vnc-0.9.17/src/userinput.c:579:18: note: Assuming allocation function fails x11vnc-0.9.17/src/userinput.c:579:10: note: Assignment 'p=str=strdup(scroll_key_list_str)', assigned value is 0 x11vnc-0.9.17/src/userinput.c:580:9: note: Null pointer dereference x11vnc-0.9.17/src/userinput.c:592:3: warning: If memory allocation fails, then there is a possible null pointer dereference: scroll_key_list [nullPointerOutOfMemory] x11vnc-0.9.17/src/userinput.c:590:37: note: Assuming allocation function fails x11vnc-0.9.17/src/userinput.c:590:20: note: Assignment 'scroll_key_list=(unsigned long*)malloc((unsigned long)nkeys*sizeof(unsigned long))', assigned value is 0 x11vnc-0.9.17/src/userinput.c:592:3: note: Null pointer dereference x11vnc-0.9.17/src/userinput.c:679:26: warning: If memory allocation fails, then there is a possible null pointer dereference: scroll_good_key [nullPointerOutOfMemory] x11vnc-0.9.17/src/userinput.c:678:37: note: Assuming allocation function fails x11vnc-0.9.17/src/userinput.c:678:21: note: Assignment 'scroll_good_key=(char**)malloc(nkey*sizeof(char*))', assigned value is 0 x11vnc-0.9.17/src/userinput.c:679:26: note: Null pointer dereference x11vnc-0.9.17/src/userinput.c:683:28: warning: If memory allocation fails, then there is a possible null pointer dereference: scroll_good_mouse [nullPointerOutOfMemory] x11vnc-0.9.17/src/userinput.c:682:39: note: Assuming allocation function fails x11vnc-0.9.17/src/userinput.c:682:23: note: Assignment 'scroll_good_mouse=(char**)malloc(nmouse*sizeof(char*))', assigned value is 0 x11vnc-0.9.17/src/userinput.c:683:28: note: Null pointer dereference x11vnc-0.9.17/src/userinput.c:718:26: warning: If memory allocation fails, then there is a possible null pointer dereference: scroll_skip_key [nullPointerOutOfMemory] x11vnc-0.9.17/src/userinput.c:717:37: note: Assuming allocation function fails x11vnc-0.9.17/src/userinput.c:717:21: note: Assignment 'scroll_skip_key=(char**)malloc(nkey*sizeof(char*))', assigned value is 0 x11vnc-0.9.17/src/userinput.c:718:26: note: Null pointer dereference x11vnc-0.9.17/src/userinput.c:722:28: warning: If memory allocation fails, then there is a possible null pointer dereference: scroll_skip_mouse [nullPointerOutOfMemory] x11vnc-0.9.17/src/userinput.c:721:39: note: Assuming allocation function fails x11vnc-0.9.17/src/userinput.c:721:23: note: Assignment 'scroll_skip_mouse=(char**)malloc(nmouse*sizeof(char*))', assigned value is 0 x11vnc-0.9.17/src/userinput.c:722:28: note: Null pointer dereference x11vnc-0.9.17/src/userinput.c:1111:21: style: The comparison 'do_cmp == 2' is always true. [knownConditionTrueFalse] x11vnc-0.9.17/src/userinput.c:1070:15: note: 'do_cmp' is assigned value '2' here. x11vnc-0.9.17/src/userinput.c:1111:21: note: The comparison 'do_cmp == 2' is always true. x11vnc-0.9.17/src/userinput.c:1158:39: style: Same expression 'xmin<0' found multiple times in chain of '||' operators. [duplicateExpression] x11vnc-0.9.17/src/xi2_devices.c:165:13: style: Condition 'removeMD(dpy,cd->ptr_id)' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/xi2_devices.c:165:13: note: Calling function 'removeMD' returns 0 x11vnc-0.9.17/src/xi2_devices.c:165:13: note: Condition 'removeMD(dpy,cd->ptr_id)' is always false x11vnc-0.9.17/src/xi2_devices.c:54:23: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xi2_devices.c:54:34: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xi2_devices.c:114:23: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xi2_devices.c:164:14: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/xi2_devices.c:174:26: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xi2_devices.c:208:39: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xi2_devices.c:208:89: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xi2_devices.c:320:29: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xi2_devices.c:386:33: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:761:5: style: Redundant initialization for 's'. The initialized value is overwritten before it is read. [redundantInitialization] x11vnc-0.9.17/src/userinput.c:759:11: note: s is initialized x11vnc-0.9.17/src/userinput.c:761:5: note: s is overwritten x11vnc-0.9.17/src/userinput.c:5523:14: style: Redundant initialization for 'vnccpu_rate'. The initialized value is overwritten before it is read. [redundantInitialization] x11vnc-0.9.17/src/userinput.c:5434:21: note: vnccpu_rate is initialized x11vnc-0.9.17/src/userinput.c:5523:14: note: vnccpu_rate is overwritten x11vnc-0.9.17/src/userinput.c:2160:21: style:inconclusive: Function 'batch_push' argument 1 names different: declaration 'ncr' definition 'nreg'. [funcArgNamesDifferent] x11vnc-0.9.17/src/userinput.c:1427:21: note: Function 'batch_push' argument 1 names different: declaration 'ncr' definition 'nreg'. x11vnc-0.9.17/src/userinput.c:2160:21: note: Function 'batch_push' argument 1 names different: declaration 'ncr' definition 'nreg'. x11vnc-0.9.17/src/userinput.c:5713:22: style:inconclusive: Function 'check_ncache' argument 1 names different: declaration 'reset' definition 'a'. [funcArgNamesDifferent] x11vnc-0.9.17/src/userinput.c:96:22: note: Function 'check_ncache' argument 1 names different: declaration 'reset' definition 'a'. x11vnc-0.9.17/src/userinput.c:5713:22: note: Function 'check_ncache' argument 1 names different: declaration 'reset' definition 'a'. x11vnc-0.9.17/src/userinput.c:5713:29: style:inconclusive: Function 'check_ncache' argument 2 names different: declaration 'mode' definition 'b'. [funcArgNamesDifferent] x11vnc-0.9.17/src/userinput.c:96:33: note: Function 'check_ncache' argument 2 names different: declaration 'mode' definition 'b'. x11vnc-0.9.17/src/userinput.c:5713:29: note: Function 'check_ncache' argument 2 names different: declaration 'mode' definition 'b'. x11vnc-0.9.17/src/userinput.c:1775:7: style: Local variable 'x' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:1432:6: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:1775:7: note: Shadow variable x11vnc-0.9.17/src/userinput.c:1775:10: style: Local variable 'y' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:1432:9: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:1775:10: note: Shadow variable x11vnc-0.9.17/src/userinput.c:1775:13: style: Local variable 'w' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:1432:12: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:1775:13: note: Shadow variable x11vnc-0.9.17/src/userinput.c:1775:16: style: Local variable 'h' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:1432:15: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:1775:16: note: Shadow variable x11vnc-0.9.17/src/userinput.c:1797:8: style: Local variable 'link' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:1441:6: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:1797:8: note: Shadow variable x11vnc-0.9.17/src/userinput.c:2632:31: style: Local variable 'tm' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:2474:21: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:2632:31: note: Shadow variable x11vnc-0.9.17/src/userinput.c:2840:11: style: Local variable 'tm' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:2716:21: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:2840:11: note: Shadow variable x11vnc-0.9.17/src/userinput.c:3171:9: style: Local variable 'dt' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:3145:13: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:3171:9: note: Shadow variable x11vnc-0.9.17/src/userinput.c:3438:17: style: Local variable 'whole' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:3228:36: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:3438:17: note: Shadow variable x11vnc-0.9.17/src/userinput.c:4960:7: style: Local variable 'nidx' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:4350:28: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:4960:7: note: Shadow variable x11vnc-0.9.17/src/userinput.c:5242:9: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:5212:7: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:5242:9: note: Shadow variable x11vnc-0.9.17/src/userinput.c:5469:14: style: Local variable 'first' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/userinput.c:5429:13: note: Shadowed declaration x11vnc-0.9.17/src/userinput.c:5469:14: note: Shadow variable x11vnc-0.9.17/src/userinput.c:138:27: style: Parameter 'px' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:138:36: style: Parameter 'py' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:138:45: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:138:53: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:138:61: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:138:69: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:139:13: style: Parameter 'frame' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:139:28: style: Parameter 'win' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:209:45: style: Parameter 'scr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:210:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/userinput.c:283:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/userinput.c:334:39: style: Parameter 'wf' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:335:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/userinput.c:644:14: style: Variable 'imp' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/userinput.c:759:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/userinput.c:1113:17: style: Variable 'src2' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/userinput.c:3171:9: style: Variable 'dt' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/userinput.c:4259:8: style: Variable 'no' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/userinput.c:5283:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/userinput.c:5443:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/userinput.c:5733:30: style: Parameter 'nbatch' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:5733:77: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:5733:109: style: Parameter 'valid' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:5737:59: style: Parameter 'nbatch' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/userinput.c:5737:73: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xinerama.c:236:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/userinput.c:395:6: style: Variable 'r' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:395:10: style: Variable 'g' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:395:14: style: Variable 'b' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:396:9: style: Variable 'cmap' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:397:15: style: Variable 'cdef.pixel' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:1806:10: style: Variable 'trate' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:2555:13: style: Variable 'link' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:2557:11: style: Variable 'gk0' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:2569:15: style: Variable 'scroll_rep' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:2573:11: style: Variable 'scr_cnt' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:2821:11: style: Variable 'gp0' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:2822:11: style: Variable 'gk0' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:3582:12: style: Variable 'didfull' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:3781:12: style: Variable 'bs_w' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:3782:12: style: Variable 'bs_h' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:3788:10: style: Variable 'nidx' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:3793:9: style: Variable 'bs_w' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:3794:9: style: Variable 'bs_h' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:3797:9: style: Variable 'nidx' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:4355:63: style: Variable 'gpi' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:4969:12: style: Variable 'spin_ms' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:4971:12: style: Variable 'spin_ms' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:5297:6: style: Variable 'dt' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:5310:5: style: Variable 'to' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:5312:11: style: Variable 'g_in' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:5315:17: style: Variable 'got_input' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:5348:14: style: Variable 'got_input' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:5545:11: style: Variable 'rpe_last' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:5545:16: style: Variable 'to' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:5546:11: style: Variable 'g_in' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:5551:17: style: Variable 'got_input' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/userinput.c:5590:14: style: Variable 'got_input' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xinerama.c:71:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/xinerama.c:77:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/xinerama.c:84:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/xinerama.c:132:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.17/src/xinerama.c:67:40: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xevents.c:1162:7: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.17/src/xevents.c:1117:7: note: First condition x11vnc-0.9.17/src/xevents.c:1162:7: note: Second condition x11vnc-0.9.17/src/xevents.c:315:17: style: Condition 'wm_running()' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/xevents.c:315:17: note: Calling function 'wm_running' returns 0 x11vnc-0.9.17/src/xevents.c:315:17: note: Condition 'wm_running()' is always false x11vnc-0.9.17/src/xevents.c:723:11: style: Condition '1||errno==ESRCH' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/xevents.c:2089:22: style: Condition '!dochat' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/xevents.c:2084:15: note: Assignment 'dochat=1', assigned value is 1 x11vnc-0.9.17/src/xevents.c:2089:22: note: Condition '!dochat' is always false x11vnc-0.9.17/src/xevents.c:627:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.17/src/xevents.c:1715:11: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] x11vnc-0.9.17/src/xevents.c:1710:30: note: Assuming allocation function fails x11vnc-0.9.17/src/xevents.c:1710:15: note: Assignment 'tmp=(char*)calloc(len+8,1)', assigned value is 0 x11vnc-0.9.17/src/xevents.c:1715:11: note: Null pointer dereference x11vnc-0.9.17/src/xevents.c:1749:56: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] x11vnc-0.9.17/src/xevents.c:1741:19: note: Assuming allocation function fails x11vnc-0.9.17/src/xevents.c:1741:19: note: Assignment 'result=strdup("null")', assigned value is 0 x11vnc-0.9.17/src/xevents.c:1749:56: note: Null pointer dereference x11vnc-0.9.17/src/xevents.c:1751:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] x11vnc-0.9.17/src/xevents.c:1749:24: note: Assuming allocation function fails x11vnc-0.9.17/src/xevents.c:1749:9: note: Assignment 'tmp=(char*)calloc(strlen(remote_prefix)+strlen(result)+1,1)', assigned value is 0 x11vnc-0.9.17/src/xevents.c:1751:10: note: Null pointer dereference x11vnc-0.9.17/src/xevents.c:1752:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] x11vnc-0.9.17/src/xevents.c:1749:24: note: Assuming allocation function fails x11vnc-0.9.17/src/xevents.c:1749:9: note: Assignment 'tmp=(char*)calloc(strlen(remote_prefix)+strlen(result)+1,1)', assigned value is 0 x11vnc-0.9.17/src/xevents.c:1752:10: note: Null pointer dereference x11vnc-0.9.17/src/xevents.c:1752:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] x11vnc-0.9.17/src/xevents.c:1741:19: note: Assuming allocation function fails x11vnc-0.9.17/src/xevents.c:1741:19: note: Assignment 'result=strdup("null")', assigned value is 0 x11vnc-0.9.17/src/xevents.c:1752:15: note: Null pointer dereference x11vnc-0.9.17/src/xevents.c:1755:44: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] x11vnc-0.9.17/src/xevents.c:1749:24: note: Assuming allocation function fails x11vnc-0.9.17/src/xevents.c:1749:9: note: Assignment 'tmp=(char*)calloc(strlen(remote_prefix)+strlen(result)+1,1)', assigned value is 0 x11vnc-0.9.17/src/xevents.c:1755:44: note: Null pointer dereference x11vnc-0.9.17/src/xevents.c:2006:10: style: The comparison 'pid == -1' is always true. [knownConditionTrueFalse] x11vnc-0.9.17/src/xevents.c:1976:15: note: 'pid' is assigned value '-1' here. x11vnc-0.9.17/src/xevents.c:2006:10: note: The comparison 'pid == -1' is always true. x11vnc-0.9.17/src/xevents.c:305:9: style: Redundant initialization for 'wait'. The initialized value is overwritten before it is read. [redundantInitialization] x11vnc-0.9.17/src/xevents.c:287:11: note: wait is initialized x11vnc-0.9.17/src/xevents.c:305:9: note: wait is overwritten x11vnc-0.9.17/src/xevents.c:1923:44: style:inconclusive: Function 'set_server_input' argument 2 names different: declaration 's' definition 'grab'. [funcArgNamesDifferent] x11vnc-0.9.17/src/xevents.c:77:44: note: Function 'set_server_input' argument 2 names different: declaration 's' definition 'grab'. x11vnc-0.9.17/src/xevents.c:1923:44: note: Function 'set_server_input' argument 2 names different: declaration 's' definition 'grab'. x11vnc-0.9.17/src/xevents.c:2083:41: style:inconclusive: Function 'set_text_chat' argument 2 names different: declaration 'l' definition 'len'. [funcArgNamesDifferent] x11vnc-0.9.17/src/xevents.c:78:41: note: Function 'set_text_chat' argument 2 names different: declaration 'l' definition 'len'. x11vnc-0.9.17/src/xevents.c:2083:41: note: Function 'set_text_chat' argument 2 names different: declaration 'l' definition 'len'. x11vnc-0.9.17/src/xevents.c:2083:52: style:inconclusive: Function 'set_text_chat' argument 3 names different: declaration 't' definition 'txt'. [funcArgNamesDifferent] x11vnc-0.9.17/src/xevents.c:78:50: note: Function 'set_text_chat' argument 3 names different: declaration 't' definition 'txt'. x11vnc-0.9.17/src/xevents.c:2083:52: note: Function 'set_text_chat' argument 3 names different: declaration 't' definition 'txt'. x11vnc-0.9.17/src/xevents.c:2032:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/xevents.c:1973:6: note: Shadowed declaration x11vnc-0.9.17/src/xevents.c:2032:7: note: Shadow variable x11vnc-0.9.17/src/xevents.c:2108:16: style: Local variable 'ulen' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/xevents.c:2087:15: note: Shadowed declaration x11vnc-0.9.17/src/xevents.c:2108:16: note: Shadow variable x11vnc-0.9.17/src/xevents.c:158:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/xevents.c:242:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/xevents.c:288:8: style: Variable 'avoid' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/xevents.c:605:32: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xevents.c:757:49: style: Parameter 'dstr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xevents.c:92:8: style: Unused variable: prop_str [unusedVariable] x11vnc-0.9.17/src/xevents.c:105:8: style: Unused variable: prop_str [unusedVariable] x11vnc-0.9.17/src/xevents.c:242:10: style: Variable 's' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xevents.c:243:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xevents.c:242:8: style: Variable 's' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xevents.c:243:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xevents.c:1876:9: style: Variable 'ok' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xevents.c:1876:6: style: Variable 'ok' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xrandr.c:97:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xrandr.c:86:39: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xrandr.c:292:29: style: Parameter 's' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xrecord.c:123:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xrecord.c:338:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xrecord.c:380:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xrecord.c:422:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_J [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xrecord.c:436:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_N [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xrecord.c:447:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Return [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xrecord.c:522:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xrecord.c:1566:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xrecord.c:1707:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xrecord.c:413:29: style:inconclusive: Function 'xrecord_skip_button' argument 1 names different: declaration 'newb' definition 'new_button'. [funcArgNamesDifferent] x11vnc-0.9.17/src/xrecord.c:76:29: note: Function 'xrecord_skip_button' argument 1 names different: declaration 'newb' definition 'new_button'. x11vnc-0.9.17/src/xrecord.c:413:29: note: Function 'xrecord_skip_button' argument 1 names different: declaration 'newb' definition 'new_button'. x11vnc-0.9.17/src/xrecord.c:109:33: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xrecord.c:400:9: style: Variable 'win' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xrecord.c:1560:18: style: Variable 'reset_time' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xrecord.c:1560:38: style: Variable 'require_idle' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xrecord.c:1571:14: style: Variable 'reset_time' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xrecord.c:1572:16: style: Variable 'require_idle' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xwrappers.c:503:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xwrappers.c:614:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbEndianTest [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xwrappers.c:764:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xwrappers.c:1318:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xwrappers.c:1427:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xwrappers.c:1506:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/nox11_funcs.h:90:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_VoidSymbol [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/nox11_funcs.h:1451:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_VoidSymbol [valueFlowBailoutIncompleteVar] x11vnc-0.9.17/src/xwrappers.c:410:20: style: Condition '!width' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/xwrappers.c:409:67: note: Assuming that condition '!width' is not redundant x11vnc-0.9.17/src/xwrappers.c:410:20: note: Condition '!width' is always false x11vnc-0.9.17/src/xwrappers.c:942:41: style: Condition '!first' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/xwrappers.c:1506:6: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.17/src/xwrappers.c:1505:11: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:1506:6: note: Condition 'db' is always false x11vnc-0.9.17/src/xwrappers.c:503:8: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.17/src/xwrappers.c:503:8: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.17/src/xwrappers.c:764:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.17/src/xwrappers.c:764:9: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.17/src/xwrappers.c:783:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.17/src/xwrappers.c:783:9: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.17/src/xwrappers.c:384:10: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:384:10: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:385:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:385:3: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:395:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:395:3: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:396:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:396:3: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:397:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:397:3: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:398:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:398:3: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:399:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:399:3: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:400:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:400:3: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:401:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:401:3: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:402:7: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:402:7: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:402:19: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:402:19: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:403:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:403:3: note: Null pointer dereference x11vnc-0.9.17/src/xwrappers.c:410:17: style: Same expression '!width' found multiple times in chain of '||' operators. [duplicateExpression] x11vnc-0.9.17/src/xwrappers.c:549:17: style: Local variable 'ib' shadows outer variable [shadowVariable] x11vnc-0.9.17/src/xwrappers.c:537:8: note: Shadowed declaration x11vnc-0.9.17/src/xwrappers.c:549:17: note: Shadow variable x11vnc-0.9.17/src/xwrappers.c:154:24: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:187:33: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:187:59: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:213:37: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:213:51: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:214:23: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:214:46: style: Parameter 'shminfo' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:226:31: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:226:54: style: Parameter 'shminfo' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:235:31: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:235:54: style: Parameter 'shminfo' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:245:37: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:254:34: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:265:30: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:293:34: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:295:25: style: Parameter 'dest_image' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:340:31: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:370:34: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:370:48: style: Parameter 'visual' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:433:8: style: Variable 'src' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/xwrappers.c:902:37: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:933:36: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1019:40: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1046:39: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1111:40: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1137:39: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1198:54: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1212:47: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1225:38: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1225:48: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1225:57: style: Parameter 'er' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1225:66: style: Parameter 'maj' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1226:10: style: Parameter 'min' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1236:31: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1248:39: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1248:49: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1248:58: style: Parameter 'er' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1248:67: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1260:34: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1274:35: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1374:38: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1374:48: style: Parameter 'maj' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1374:58: style: Parameter 'min' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1385:37: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1385:47: style: Parameter 'maj' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1385:57: style: Parameter 'min' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1461:32: style: Parameter 'display_name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1462:11: style: Variable 'd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.17/src/xwrappers.c:1504:31: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1522:32: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1522:59: style: Parameter 'root_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1523:13: style: Parameter 'child_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1523:32: style: Parameter 'root_x_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1523:52: style: Parameter 'root_y_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1524:10: style: Parameter 'win_x_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1524:29: style: Parameter 'win_y_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1524:57: style: Parameter 'mask_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1640:31: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1640:58: style: Parameter 'root_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1641:13: style: Parameter 'parent_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1642:19: style: Parameter 'nchildren_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1664:20: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1678:30: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:1699:37: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/nox11_funcs.h:88:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/nox11_funcs.h:2809:34: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/nox11_funcs.h:2814:35: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.17/src/xwrappers.c:595:10: style: Variable 'bpl' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xwrappers.c:936:13: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xwrappers.c:936:6: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xwrappers.c:1048:13: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xwrappers.c:1048:6: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xwrappers.c:1139:13: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xwrappers.c:1139:6: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.17/src/xwrappers.c:1407:13: style: Variable 'tmp_fd' is assigned a value that is never used. [unreadVariable] diff: head x11vnc-0.9.17/src/appshare.c:1893:7: style: Variable 'xselectinput' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/appshare.c:562:6: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/appshare.c:564:9: style: Variable 'last_check' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/appshare.c:904:6: style: Variable 'ok' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/appshare.c:944:17: style: Variable 'free' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/cleanup.c:631:6: style: Variable 'ignore' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/connections.c:4000:23: warning: If memory allocation fails, then there is a possible null pointer dereference: cd [nullPointerOutOfMemory] x11vnc-0.9.17/src/connections.c:3993:38: note: Assuming allocation function fails x11vnc-0.9.17/src/connections.c:3993:23: note: Assignment 'client->clientData=(void*)calloc(sizeof(struct ClientData),1)', assigned value is 0 x11vnc-0.9.17/src/connections.c:3994:5: note: cd is assigned '(struct ClientData*)client->clientData' here. x11vnc-0.9.17/src/connections.c:4000:23: note: Null pointer dereference 2.17.0 x11vnc-0.9.17/src/cursor.c:767:17: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/cursor.c:757:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:757:13: note: Assignment 'pixels=(uint32_t*)malloc((unsigned long)w*h*sizeof(uint32_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:767:17: note: Null pointer addition head x11vnc-0.9.17/src/cursor.c:767:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/cursor.c:757:32: note: Assuming allocation function fails x11vnc-0.9.17/src/cursor.c:757:13: note: Assignment 'pixels=(uint32_t*)malloc((unsigned long)w*h*sizeof(uint32_t))', assigned value is 0 x11vnc-0.9.17/src/cursor.c:767:17: note: Null pointer addition 2.17.0 x11vnc-0.9.17/src/screen.c:1264:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/screen.c:1234:29: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:1234:11: note: Assignment 'pixels=(uint32_t*)malloc((unsigned long)4*width*height)', assigned value is 0 x11vnc-0.9.17/src/screen.c:1264:13: note: Null pointer addition head x11vnc-0.9.17/src/screen.c:1264:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/screen.c:1234:29: note: Assuming allocation function fails x11vnc-0.9.17/src/screen.c:1234:11: note: Assignment 'pixels=(uint32_t*)malloc((unsigned long)4*width*height)', assigned value is 0 x11vnc-0.9.17/src/screen.c:1264:13: note: Null pointer addition head x11vnc-0.9.17/src/screen.c:4459:19: style: Condition 'dx1||dy1' is always true [knownConditionTrueFalse] x11vnc-0.9.17/src/screen.c:4450:27: note: Assuming that condition 'dx1||dy1' is not redundant x11vnc-0.9.17/src/screen.c:4459:19: note: Condition 'dx1||dy1' is always true head x11vnc-0.9.17/src/solid.c:1171:13: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/sslhelper.c:4289:31: style: Variable 'db' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/sslhelper.c:4289:6: style: Variable 'sz' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/unixpw.c:1522:8: style: Variable 'prefs' is assigned a value that is never used. [unreadVariable] 2.17.0 x11vnc-0.9.17/src/unixpw.c:2176:20: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/unixpw.c:2175:27: note: Assuming allocation function fails x11vnc-0.9.17/src/unixpw.c:2175:27: note: Assignment 'str=strdup(users_list)', assigned value is 0 x11vnc-0.9.17/src/unixpw.c:2176:20: note: Null pointer addition head x11vnc-0.9.17/src/unixpw.c:2176:20: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/unixpw.c:2175:27: note: Assuming allocation function fails x11vnc-0.9.17/src/unixpw.c:2175:27: note: Assignment 'str=strdup(users_list)', assigned value is 0 x11vnc-0.9.17/src/unixpw.c:2176:20: note: Null pointer addition head x11vnc-0.9.17/src/unixpw.c:513:18: style: Variable 'ndevs' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/unixpw.c:513:6: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/user.c:1837:14: error: Using pointer to local variable 'num' that is out of scope. [invalidLifetime] x11vnc-0.9.17/src/user.c:1831:7: note: Array decayed to pointer here. x11vnc-0.9.17/src/user.c:1829:8: note: Variable created here. x11vnc-0.9.17/src/user.c:1837:14: note: Using pointer to local variable 'num' that is out of scope. 2.17.0 x11vnc-0.9.17/src/user.c:2357:18: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2356:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2356:25: note: Assignment 'str=strdup(users_list)', assigned value is 0 x11vnc-0.9.17/src/user.c:2357:18: note: Null pointer addition head x11vnc-0.9.17/src/user.c:2357:18: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2356:25: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2356:25: note: Assignment 'str=strdup(users_list)', assigned value is 0 x11vnc-0.9.17/src/user.c:2357:18: note: Null pointer addition 2.17.0 x11vnc-0.9.17/src/user.c:2402:19: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2401:26: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2401:26: note: Assignment 'str=strdup(users_list)', assigned value is 0 x11vnc-0.9.17/src/user.c:2402:19: note: Null pointer addition head x11vnc-0.9.17/src/user.c:2402:19: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2401:26: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2401:26: note: Assignment 'str=strdup(users_list)', assigned value is 0 x11vnc-0.9.17/src/user.c:2402:19: note: Null pointer addition 2.17.0 x11vnc-0.9.17/src/user.c:257:11: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:582:16: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:582:16: note: Assignment 'tstr=strdup(allowed)', assigned value is 0 x11vnc-0.9.17/src/user.c:583:21: note: Calling function 'user_list', 1st argument 'tstr' value is 0 x11vnc-0.9.17/src/user.c:255:6: note: Assignment 'p=user_str', assigned value is 0 x11vnc-0.9.17/src/user.c:257:11: note: Null pointer addition head x11vnc-0.9.17/src/user.c:257:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:582:16: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:582:16: note: Assignment 'tstr=strdup(allowed)', assigned value is 0 x11vnc-0.9.17/src/user.c:583:21: note: Calling function 'user_list', 1st argument 'tstr' value is 0 x11vnc-0.9.17/src/user.c:255:6: note: Assignment 'p=user_str', assigned value is 0 x11vnc-0.9.17/src/user.c:257:11: note: Null pointer addition 2.17.0 x11vnc-0.9.17/src/user.c:2959:6: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2958:14: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2958:14: note: Assignment 'str=strdup(use_dpy)', assigned value is 0 x11vnc-0.9.17/src/user.c:2959:6: note: Null pointer addition head x11vnc-0.9.17/src/user.c:2959:6: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2958:14: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2958:14: note: Assignment 'str=strdup(use_dpy)', assigned value is 0 x11vnc-0.9.17/src/user.c:2959:6: note: Null pointer addition 2.17.0 x11vnc-0.9.17/src/user.c:724:7: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2382:28: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2382:13: note: Assignment 'u=(char*)malloc(strlen(usslpeer)+2)', assigned value is 0 x11vnc-0.9.17/src/user.c:2384:19: note: Calling function 'switch_user', 1st argument 'u' value is 0 x11vnc-0.9.17/src/user.c:724:7: note: Null pointer addition head x11vnc-0.9.17/src/user.c:724:7: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] x11vnc-0.9.17/src/user.c:2382:28: note: Assuming allocation function fails x11vnc-0.9.17/src/user.c:2382:13: note: Assignment 'u=(char*)malloc(strlen(usslpeer)+2)', assigned value is 0 x11vnc-0.9.17/src/user.c:2384:19: note: Calling function 'switch_user', 1st argument 'u' value is 0 x11vnc-0.9.17/src/user.c:724:7: note: Null pointer addition head x11vnc-0.9.17/src/user.c:763:6: style: Variable 'grp_ok' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/win_utils.c:601:10: style: Variable 'dx' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/win_utils.c:601:18: style: Variable 'dy' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/win_utils.c:601:26: style: Variable 'dw' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/win_utils.c:601:34: style: Variable 'dh' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/win_utils.c:603:18: style: Variable 'do_move' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/win_utils.c:603:31: style: Variable 'do_resize' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/win_utils.c:604:6: style: Variable 'disp_x' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/win_utils.c:605:6: style: Variable 'disp_y' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/x11vnc.c:276:15: style: Variable 'db' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/xevents.c:1876:6: style: Variable 'ok' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/xevents.c:242:8: style: Variable 's' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/xevents.c:243:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/xwrappers.c:1048:6: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/xwrappers.c:1139:6: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] head x11vnc-0.9.17/src/xwrappers.c:402:19: warning: If memory allocation fails, then there is a possible null pointer dereference: xi [nullPointerOutOfMemory] x11vnc-0.9.17/src/xwrappers.c:383:25: note: Assuming allocation function fails x11vnc-0.9.17/src/xwrappers.c:383:8: note: Assignment 'xi=(struct XImage*)malloc(sizeof(struct XImage))', assigned value is 0 x11vnc-0.9.17/src/xwrappers.c:402:19: note: Null pointer dereference head x11vnc-0.9.17/src/xwrappers.c:936:6: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] DONE