libvncserver-0.9.15-3.fc43
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:454:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:438:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:441:38: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:441:38: acquire_memory: allocated here
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:442:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:446:38: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:447:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:453:11: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:453:11: branch_true: following ‘true’ branch (when ‘credentialType != 2’)...
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:454:13: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:454:13: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:454:13: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:437:28: acquire_memory: allocated here
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:438:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:441:38: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:442:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:446:38: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:447:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:453:11: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:453:11: branch_true: following ‘true’ branch (when ‘credentialType != 2’)...
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:454:13: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:454:13: danger: ‘c’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def3]
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:455: error[memleak]: Memory leak: c
Error: CPPCHECK_WARNING (CWE-401): [#def4]
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:455: error[memleak]: Memory leak: c.userCredential
Error: COMPILER_WARNING (CWE-252): [#def5]
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c: scope_hint: In function ‘get_credential’
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:460:9: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def6]
libvncserver-LibVNCServer-0.9.15/examples/client/SDLvncviewer.c:462:9: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-563): [#def7]
libvncserver-LibVNCServer-0.9.15/examples/client/vnc2mpg.c:67:9: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-704): [#def8]
libvncserver-LibVNCServer-0.9.15/examples/client/vnc2mpg.c: scope_hint: In function ‘add_video_stream’
libvncserver-LibVNCServer-0.9.15/examples/client/vnc2mpg.c:70:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def9]
libvncserver-LibVNCServer-0.9.15/examples/client/vnc2mpg.c:70:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
libvncserver-LibVNCServer-0.9.15/examples/server/cursors.c:37:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer’
libvncserver-LibVNCServer-0.9.15/examples/server/cursors.c:329:5: enter_function: entry to ‘main’
libvncserver-LibVNCServer-0.9.15/examples/server/cursors.c:332:11: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/examples/server/cursors.c:335:9: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/examples/server/cursors.c:336:41: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/examples/server/cursors.c:339:9: call_function: calling ‘initBuffer’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def11]
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:54: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:54:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer’
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:87:13: enter_function: entry to ‘newframebuffer’
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:94:27: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:95:3: call_function: calling ‘initBuffer’ from ‘newframebuffer’
Error: CPPCHECK_WARNING (CWE-476): [#def13]
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:55: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def14]
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:56: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def15]
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:58: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:58:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer’
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:87:13: enter_function: entry to ‘newframebuffer’
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:94:27: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:95:3: call_function: calling ‘initBuffer’ from ‘newframebuffer’
Error: CPPCHECK_WARNING (CWE-476): [#def17]
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:59: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def18]
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:60: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def19]
libvncserver-LibVNCServer-0.9.15/examples/server/example.c:61: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: COMPILER_WARNING (CWE-252): [#def20]
libvncserver-LibVNCServer-0.9.15/examples/server/pnmshow.c: scope_hint: In function ‘main’
libvncserver-LibVNCServer-0.9.15/examples/server/pnmshow.c:33:3: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def21]
libvncserver-LibVNCServer-0.9.15/examples/server/pnmshow.c:50:5: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def22]
libvncserver-LibVNCServer-0.9.15/examples/server/pnmshow.c:60:9: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def23]
libvncserver-LibVNCServer-0.9.15/examples/server/pnmshow.c:93:3: warning[-Wunused-result]: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def24]
libvncserver-LibVNCServer-0.9.15/examples/server/pnmshow24.c: scope_hint: In function ‘main’
libvncserver-LibVNCServer-0.9.15/examples/server/pnmshow24.c:41:3: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def25]
libvncserver-LibVNCServer-0.9.15/examples/server/pnmshow24.c:49:5: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def26]
libvncserver-LibVNCServer-0.9.15/examples/server/pnmshow24.c:58:3: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def27]
libvncserver-LibVNCServer-0.9.15/examples/server/pnmshow24.c:88:3: warning[-Wunused-result]: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def28]
libvncserver-LibVNCServer-0.9.15/examples/server/vncev.c: scope_hint: In function ‘read_keys’
libvncserver-LibVNCServer-0.9.15/examples/server/vncev.c:46:7: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-681): [#def29]
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c: scope_hint: In function ‘main’
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:65:33: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘get_window_size’ differ in signedness
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:14:77: note: expected ‘uint16_t *’ {aka ‘short unsigned int *’} but argument is of type ‘int16_t *’ {aka ‘short int *’}
Error: COMPILER_WARNING (CWE-681): [#def30]
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:65:41: warning[-Wpointer-sign]: pointer targets in passing argument 4 of ‘get_window_size’ differ in signedness
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:14:94: note: expected ‘uint16_t *’ {aka ‘short unsigned int *’} but argument is of type ‘int16_t *’ {aka ‘short int *’}
Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:99:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘s2’ where non-null expected
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:55:5: enter_function: entry to ‘main’
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:66:25: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:80:9: call_function: calling ‘dirty_copy’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:120:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buff’
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:55:5: enter_function: entry to ‘main’
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:66:25: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/examples/server/x11.c:79:9: call_function: calling ‘get_window_image’ from ‘main’
Error: COMPILER_WARNING (CWE-686): [#def33]
libvncserver-LibVNCServer-0.9.15/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-1jVLEu/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘strstr’; expected ‘char *(const char *, const char *)’
Error: COMPILER_WARNING (CWE-686): [#def34]
libvncserver-LibVNCServer-0.9.15/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-ER2Z6X/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘memset’; expected ‘void *(void *, int, long unsigned int)’
Error: COMPILER_WARNING (CWE-686): [#def35]
libvncserver-LibVNCServer-0.9.15/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-PdEh00/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘vprintf’; expected ‘int(const char *, __va_list_tag *)’
Error: COMPILER_WARNING (CWE-686): [#def36]
libvncserver-LibVNCServer-0.9.15/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-RjNRz6/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘strchr’; expected ‘char *(const char *, int)’
Error: COMPILER_WARNING (CWE-686): [#def37]
libvncserver-LibVNCServer-0.9.15/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-U7bthb/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘fork’; expected ‘int(void)’
Error: COMPILER_WARNING (CWE-686): [#def38]
libvncserver-LibVNCServer-0.9.15/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-Wuthjk/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘memmove’; expected ‘void *(void *, const void *, long unsigned int)’
Error: COMPILER_WARNING (CWE-686): [#def39]
libvncserver-LibVNCServer-0.9.15/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-oJmXOA/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘strcspn’; expected ‘long unsigned int(const char *, const char *)’
Error: COMPILER_WARNING (CWE-686): [#def40]
libvncserver-LibVNCServer-0.9.15/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-vCH4wh/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘strdup’; expected ‘char *(const char *)’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def41]
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:153:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘palette[<unknown>]’
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:81:16: branch_true: following ‘true’ branch...
branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:82:18: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:84:11: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:89:10: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:92:7: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:257:12: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:260:17: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:263:14: branch_false: following ‘false’ branch...
branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:267:23: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:271:11: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:141:14: branch_true: following ‘true’ branch (when ‘last_type <= 16’)...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:145:37: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:144:16: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:149:26: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:149:41: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:151:27: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:151:44: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:153:30: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:153:21: danger: use of uninitialized value ‘palette[<unknown>]’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def42]
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:218:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘palette[<unknown>]’
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:81:16: branch_true: following ‘true’ branch...
branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:82:18: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:84:11: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:89:10: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:92:7: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:213:16: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:216:16: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:216:14: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:218:27: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/trle.c:218:19: danger: use of uninitialized value ‘palette[<unknown>]’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def43]
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:315:80: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘palette[<unknown>]’
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:84:1: enter_function: entry to ‘HandleZRLE24’
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:111:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:114:21: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:145:16: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:148:20: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:156:20: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:159:17: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:166:20: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:170:20: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:170:20: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:181:23: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:191:12: branch_true: following ‘true’ branch (when ‘inflateResult == 0’)...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:192:23: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:197:26: branch_true: following ‘true’ branch (when ‘j < rh’)...
branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:198:34: branch_true: following ‘true’ branch (when ‘i < rw’)...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:199:46: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:201:44: call_function: calling ‘HandleZRLETile24’ from ‘HandleZRLE24’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def44]
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:384:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘palette[<unknown>]’
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:84:1: enter_function: entry to ‘HandleZRLE24’
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:111:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:114:21: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:145:16: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:148:20: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:156:20: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:159:17: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:166:20: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:170:20: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:170:20: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:181:23: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:191:12: branch_true: following ‘true’ branch (when ‘inflateResult == 0’)...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:192:23: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:197:26: branch_true: following ‘true’ branch (when ‘j < rh’)...
branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:198:34: branch_true: following ‘true’ branch (when ‘i < rw’)...
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:199:46: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncclient/zrle.c:201:44: call_function: calling ‘HandleZRLETile24’ from ‘HandleZRLE24’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def45]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:48:46: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*src.subspan’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:838:5: enter_function: entry to ‘main’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:845:12: call_function: calling ‘sraRgnCreateRect’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def46]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:55:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*after._next’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:838:5: enter_function: entry to ‘main’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:845:12: call_function: calling ‘sraRgnCreateRect’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def47]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:66:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*before._prev’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:838:5: enter_function: entry to ‘main’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:845:12: call_function: calling ‘sraRgnCreateRect’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def48]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:119:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*s.end’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:838:5: enter_function: entry to ‘main’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:845:12: call_function: calling ‘sraRgnCreateRect’ from ‘main’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:845:12: return_function: returning to ‘main’ from ‘sraRgnCreateRect’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:846:13: call_function: calling ‘sraRgnCreateRect’ from ‘main’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:846:13: return_function: returning to ‘main’ from ‘sraRgnCreateRect’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:847:13: call_function: calling ‘sraRgnCreateRect’ from ‘main’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:847:13: return_function: returning to ‘main’ from ‘sraRgnCreateRect’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:849:3: call_function: inlined call to ‘sraRgnPrint’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def49]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:155:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*list.front._next’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:838:5: enter_function: entry to ‘main’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:845:12: call_function: calling ‘sraRgnCreateRect’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:719:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:718:5: branch_true: following ‘true’ branch (when ‘reverseY != 0’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:719:5: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:719:5: danger: dereference of NULL ‘sraRgnGetIterator(s)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:722:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:718:5: branch_false: following ‘false’ branch (when ‘reverseY == 0’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:722:3: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/../libvncserver/rfbregion.c:722:3: danger: dereference of NULL ‘sraRgnGetIterator(s)’
Error: COMPILER_WARNING (CWE-1023): [#def52]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:432:5: warning[-Wswitch]: enumeration value ‘RFB_AUTHENTICATION’ not handled in switch
Error: COMPILER_WARNING (CWE-1023): [#def53]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:432:5: warning[-Wswitch]: enumeration value ‘RFB_INITIALISATION_SHARED’ not handled in switch
Error: COMPILER_WARNING (CWE-1023): [#def54]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:432:5: warning[-Wswitch]: enumeration value ‘RFB_INITIALISATION’ not handled in switch
Error: COMPILER_WARNING (CWE-1023): [#def55]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:432:5: warning[-Wswitch]: enumeration value ‘RFB_NORMAL’ not handled in switch
Error: COMPILER_WARNING (CWE-1023): [#def56]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c: scope_hint: In function ‘rfbProcessClientSecurityType’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:432:5: warning[-Wswitch]: enumeration value ‘RFB_PROTOCOL_VERSION’ not handled in switch
Error: COMPILER_WARNING (CWE-1023): [#def57]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:432:5: warning[-Wswitch]: enumeration value ‘RFB_SHUTDOWN’ not handled in switch
Error: GCC_ANALYZER_WARNING (CWE-457): [#def58]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:442:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘handler’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:423:8: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:432:13: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:442:37: danger: use of uninitialized value ‘handler’ here
Error: COMPILER_WARNING (CWE-457): [#def59]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:442:37: warning[-Wmaybe-uninitialized]: ‘handlerListHead’ may be used uninitialized
libvncserver-LibVNCServer-0.9.15/src/libvncserver/auth.c:419:25: note: ‘handlerListHead’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-688): [#def60]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:596:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dest’ where non-null expected
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:557:6: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:562:12: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:564:6: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:565:10: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:567:28: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:577:14: branch_false: following ‘false’ branch (when ‘x2 > 0’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:582:7: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:586:14: branch_false: following ‘false’ branch (when ‘y2 > 0’)...
branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:592:12: branch_true: following ‘true’ branch (when ‘j < y2’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:593:17: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:596:8: branch_false: following ‘false’ branch (when ‘wasChanged == 0’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:596:23: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/cursor.c:596:23: danger: argument 1 (‘dest’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def61]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:356:41: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:289:8: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:294:5: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:304:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:311:29: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:313:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:329:20: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:333:12: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:340:8: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:340:7: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:342:13: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:342:11: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:356:14: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:356:12: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:356:49: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/httpd.c:356:41: danger: argument 1 (‘strchr(&buf, 47)’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:672:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*(struct _rfbScreenInfo *)data.listenSock’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:638:12: branch_true: following ‘true’ branch...
branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:641:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:641:9: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:653:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:659:13: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:659:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:670:9: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:671:12: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:672:25: danger: ‘*(struct _rfbScreenInfo *)data.listenSock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:677:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:638:12: branch_true: following ‘true’ branch...
branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:641:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:641:9: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:653:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:659:13: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:659:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:670:9: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:676:11: branch_true: following ‘true’ branch (when ‘client_fd >= 0’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:677:16: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:677:16: danger: leaks here
Error: COMPILER_WARNING (CWE-252): [#def64]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c: scope_hint: In function ‘rfbShutdownServer’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/main.c:1242:7: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def65]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:48:46: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*src.subspan’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:591:12: enter_function: entry to ‘sraRgnBBox’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:595:5: branch_false: following ‘false’ branch (when ‘src’ is non-NULL)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:598:3: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:617:5: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:620:10: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:620:10: call_function: calling ‘sraRgnCreateRect’ from ‘sraRgnBBox’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def66]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:55:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*after._next’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:591:12: enter_function: entry to ‘sraRgnBBox’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:595:5: branch_false: following ‘false’ branch (when ‘src’ is non-NULL)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:598:3: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:617:5: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:620:10: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:620:10: call_function: calling ‘sraRgnCreateRect’ from ‘sraRgnBBox’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def67]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:66:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*before._prev’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:567:1: enter_function: entry to ‘sraRgnSubtract’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:568:10: call_function: calling ‘sraSpanListSubtract’ from ‘sraRgnSubtract’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def68]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:155:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*list.front._next’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:591:12: enter_function: entry to ‘sraRgnBBox’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:595:5: branch_false: following ‘false’ branch (when ‘src’ is non-NULL)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:598:3: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:617:5: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:620:10: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:620:10: call_function: calling ‘sraRgnCreateRect’ from ‘sraRgnBBox’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:719:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:718:5: branch_true: following ‘true’ branch (when ‘reverseY != 0’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:719:5: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:719:5: danger: dereference of NULL ‘sraRgnGetIterator(s)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:722:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:718:5: branch_false: following ‘false’ branch (when ‘reverseY == 0’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:722:3: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbregion.c:722:3: danger: dereference of NULL ‘sraRgnGetIterator(s)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:212:6: warning[-Wanalyzer-malloc-leak]: leak of ‘rfbGetClientIterator(*cl.screen)’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:2219:1: enter_function: entry to ‘rfbProcessClientNormalMessage’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:2238:8: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:2245:13: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3022:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3030:13: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3030:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3035:60: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3036:12: branch_false: following ‘false’ branch (when ‘extDesktopScreens’ is non-NULL)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3042:18: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3042:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3050:60: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3068:12: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3070:24: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3070:24: call_function: calling ‘rfbGetClientIterator’ from ‘rfbProcessClientNormalMessage’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3070:24: return_function: returning to ‘rfbProcessClientNormalMessage’ from ‘rfbGetClientIterator’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3071:27: call_function: calling ‘rfbClientIteratorNext’ from ‘rfbProcessClientNormalMessage’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3071:27: return_function: returning to ‘rfbProcessClientNormalMessage’ from ‘rfbClientIteratorNext’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:212:6: danger: ‘rfbGetClientIterator(*cl.screen)’ leaks here; was allocated at [(18)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:1420:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:1653:9: enter_function: entry to ‘rfbProcessFileTransfer’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:1670:5: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:1676:5: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:1710:27: call_function: calling ‘rfbProcessFileTransferReadBuffer’ from ‘rfbProcessFileTransfer’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:1710:27: return_function: returning to ‘rfbProcessFileTransfer’ from ‘rfbProcessFileTransferReadBuffer’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:1710:16: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:1711:22: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:1711:22: call_function: calling ‘rfbSendDirContent’ from ‘rfbProcessFileTransfer’
Error: CPPCHECK_WARNING (CWE-401): [#def73]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:1762: error[memleakOnRealloc]: Common realloc mistake: 'buffer' nulled but not freed upon failure
Error: COMPILER_WARNING (CWE-563): [#def74]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c: scope_hint: In function ‘rfbSendExtendedServerCutTextData’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:2088:9: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-704): [#def75]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c: scope_hint: In function ‘rfbProcessExtendedServerCutTextData’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:2155:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def76]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:2155:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-476): [#def77]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3948: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: scme
Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3948:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wbuf’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3940:8: branch_true: following ‘true’ branch (when ‘nColours > 256’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3942:32: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3942:25: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3948:5: danger: ‘wbuf’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def79]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/rfbserver.c:3972: warning[uninitvar]: Uninitialized variable: wbuf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def80]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/scale.c:288:9: warning[-Wanalyzer-null-argument]: use of NULL ‘*cl.screen’ where non-null expected
libvncserver-LibVNCServer-0.9.15/src/libvncserver/scale.c:353:6: enter_function: entry to ‘rfbScalingSetup’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/scale.c:357:11: call_function: calling ‘rfbScalingFind’ from ‘rfbScalingSetup’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/scale.c:357:11: return_function: returning to ‘rfbScalingSetup’ from ‘rfbScalingFind’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/scale.c:358:8: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/scale.c:359:15: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/scale.c:359:15: call_function: calling ‘rfbScaledScreenAllocate’ from ‘rfbScalingSetup’
Error: COMPILER_WARNING (CWE-252): [#def81]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c: scope_hint: In function ‘rfbCloseClient’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:602:9: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-758): [#def82]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c: scope_hint: In function ‘rfbReadExactTimeout’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:757:32: warning[-Wrestrict]: passing argument 2 to ‘restrict’-qualified parameter aliases with argument 4
Error: CPPCHECK_WARNING (CWE-758): [#def83]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:798: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
Error: COMPILER_WARNING (CWE-393): [#def84]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c: scope_hint: In function ‘rfbPeekAtSocket’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:799:1: warning[-Wreturn-type]: control reaches end of non-void function
Error: GCC_ANALYZER_WARNING (CWE-457): [#def85]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:831:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:823:12: branch_true: following ‘true’ branch (when ‘len > 0’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:825:13: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:825:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:829:17: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:831:12: danger: use of uninitialized value ‘n’ here
Error: COMPILER_WARNING (CWE-758): [#def86]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c: scope_hint: In function ‘rfbPeekExactTimeout’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:863:32: warning[-Wrestrict]: passing argument 2 to ‘restrict’-qualified parameter aliases with argument 4
Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:1265:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:1264:17: acquire_resource: datagram socket created here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:1264:8: branch_false: following ‘false’ branch (when ‘sock != -1’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:1267:9: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:1267:8: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:1271:9: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:1271:9: acquire_resource: socket created here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:1271:8: branch_true: following ‘true’ branch...
branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/sockets.c:1265:16: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:60:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*table’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:41:22: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:44:17: branch_true: following ‘true’ branch (when ‘i < nEntries’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:46:16: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:60:9: danger: ‘malloc((long unsigned int)((3 << (int)*in.bitsPerPixel) + 1)) + (sizetype)(i * 3)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:100:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*table’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:85:22: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:88:17: branch_true: following ‘true’ branch (when ‘i < nEntries’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:89:25: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:100:9: danger: ‘malloc((long unsigned int)((3 << (int)*in.bitsPerPixel) + 1)) + (sizetype)(i * 3)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-682): [#def90]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:127: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:149:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘table’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:116:1: enter_function: entry to ‘rfbInitTrueColourRGBTables24’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:124:22: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:130:5: call_function: calling ‘rfbInitOneRGBTable24’ from ‘rfbInitTrueColourRGBTables24’
Error: CPPCHECK_WARNING (CWE-476): [#def92]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:154: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: table
Error: CPPCHECK_WARNING (CWE-476): [#def93]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinit24.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: table
Error: CPPCHECK_WARNING (CWE-476): [#def94]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinitcmtemplate.c:71: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinitcmtemplate.c:71:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*table’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinitcmtemplate.c:55:22: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinitcmtemplate.c:58:17: branch_true: following ‘true’ branch (when ‘i < nEntries’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinitcmtemplate.c:60:16: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinitcmtemplate.c:71:9: danger: ‘malloc((long unsigned int)nEntries) + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def96]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:81: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:81:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*table’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:69:22: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:72:17: branch_true: following ‘true’ branch (when ‘i < nEntries’)...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:73:25: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:81:9: danger: ‘malloc((long unsigned int)nEntries) + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-682): [#def98]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:110: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def99]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:130: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: table
Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:130:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘table’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:99:1: enter_function: entry to ‘rfbInitTrueColourRGBTables8’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:107:22: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:113:5: call_function: calling ‘rfbInitOneRGBTable8’ from ‘rfbInitTrueColourRGBTables8’
Error: CPPCHECK_WARNING (CWE-476): [#def101]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:132: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: table
Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:132:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘table’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:99:1: enter_function: entry to ‘rfbInitTrueColourRGBTables8’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:107:22: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:113:5: call_function: calling ‘rfbInitOneRGBTable8’ from ‘rfbInitTrueColourRGBTables8’
Error: CPPCHECK_WARNING (CWE-476): [#def103]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tableinittctemplate.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: table
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c:202:12: warning[-Wanalyzer-malloc-leak]: leak of ‘GetHomeDir(uid)’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c:80:1: enter_function: entry to ‘InitFileTransfer’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c:89:11: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c:92:9: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c:96:20: call_function: calling ‘GetHomeDir’ from ‘InitFileTransfer’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c:96:20: return_function: returning to ‘InitFileTransfer’ from ‘GetHomeDir’
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c:98:11: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c:98:34: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/src/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c:202:12: danger: ‘GetHomeDir(uid)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
libvncserver-LibVNCServer-0.9.15/test/bmp.c:267:16: warning[-Wanalyzer-malloc-leak]: leak of ‘tempbuf’
libvncserver-LibVNCServer-0.9.15/test/bmp.c:188:11: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:190:11: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:192:9: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:192:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:194:9: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:194:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:197:11: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:202:11: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:202:11: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:208:9: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:208:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:209:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:210:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:211:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:212:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:213:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:214:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:215:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:216:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:217:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:218:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:219:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:220:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:221:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:222:9: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:241:11: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:241:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:244:11: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:248:11: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:249:20: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:252:11: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:253:38: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:253:38: acquire_memory: allocated here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:253:11: branch_false: following ‘false’ branch (when ‘tempbuf’ is non-NULL)...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:254:52: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:253:12: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:256:12: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:256:11: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:257:17: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:265:11: branch_false: following ‘false’ branch (when ‘tempbuf’ is NULL)...
branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:266:11: branch_true: following ‘true’ branch...
libvncserver-LibVNCServer-0.9.15/test/bmp.c:266:20: branch_true: ...to here
libvncserver-LibVNCServer-0.9.15/test/bmp.c:267:16: danger: ‘tempbuf’ leaks here; was allocated at [(53)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/52)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
libvncserver-LibVNCServer-0.9.15/test/copyrecttest.c:14:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*server.frameBuffer + (sizetype)(((unsigned int)*server.width * j + i) * 4)’
libvncserver-LibVNCServer-0.9.15/test/copyrecttest.c:20:5: enter_function: entry to ‘main’
libvncserver-LibVNCServer-0.9.15/test/copyrecttest.c:26:5: branch_false: following ‘false’ branch...
libvncserver-LibVNCServer-0.9.15/test/copyrecttest.c:28:30: branch_false: ...to here
libvncserver-LibVNCServer-0.9.15/test/copyrecttest.c:28:30: acquire_memory: this call could return NULL
libvncserver-LibVNCServer-0.9.15/test/copyrecttest.c:29:3: call_function: calling ‘initBackground’ from ‘main’
Error: COMPILER_WARNING: [#def107]
libvncserver-LibVNCServer-0.9.15/test/encodingstest.c: scope_hint: In function ‘main’
libvncserver-LibVNCServer-0.9.15/test/encodingstest.c:202:31: warning[-Wformat-overflow=]: ‘%d’ directive writing between 1 and 11 bytes into a region of size 7
libvncserver-LibVNCServer-0.9.15/test/encodingstest.c:202:29: note: directive argument in the range [-2147483648, 2147477747]
/usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 3 and 13 bytes into a destination of size 8
Error: COMPILER_WARNING: [#def108]
libvncserver-LibVNCServer-0.9.15/test/tjbench.c: scope_hint: In function ‘decomptest’
libvncserver-LibVNCServer-0.9.15/test/tjbench.c:96:41: warning[-Wformat-truncation=]: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 4
libvncserver-LibVNCServer-0.9.15/test/tjbench.c:96:38: note: directive argument in the range [1, 2147483647]
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 4 and 13 bytes into a destination of size 6
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-240.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | libvncserver-0.9.15-3.fc43 |
store-results-to | /tmp/tmptc0zab2x/libvncserver-0.9.15-3.fc43.tar.xz |
time-created | 2025-04-25 14:18:08 |
time-finished | 2025-04-25 14:20:20 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmptc0zab2x/libvncserver-0.9.15-3.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmptc0zab2x/libvncserver-0.9.15-3.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |