screen-5.0.0-4.fc43
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
screen-5.0.0/ansi.c:1928:20: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)(*win.w_layer.l_width + 1), 4)’
screen-5.0.0/ansi.c:2189:13: enter_function: entry to ‘MBceLine’
screen-5.0.0/ansi.c:2196:9: call_function: calling ‘MFixLine’ from ‘MBceLine’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
screen-5.0.0/ansi.c:1935:20: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)(*win.w_layer.l_width + 1), 4)’
screen-5.0.0/ansi.c:2189:13: enter_function: entry to ‘MBceLine’
screen-5.0.0/ansi.c:2196:9: call_function: calling ‘MFixLine’ from ‘MBceLine’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
screen-5.0.0/attacher.c:484:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&query’
screen-5.0.0/attacher.c:439:20: branch_false: following ‘false’ branch...
screen-5.0.0/attacher.c:441:20: branch_false: ...to here
screen-5.0.0/attacher.c:441:20: branch_false: following ‘false’ branch...
screen-5.0.0/attacher.c:452:9: branch_false: ...to here
screen-5.0.0/attacher.c:476:12: branch_true: following ‘true’ branch (when ‘query != 0’)...
screen-5.0.0/attacher.c:478:41: branch_true: ...to here
screen-5.0.0/attacher.c:482:31: branch_true: following ‘true’ branch (when ‘c != 91’)...
screen-5.0.0/attacher.c:483:25: branch_true: ...to here
screen-5.0.0/attacher.c:484:25: danger: use of uninitialized value ‘&query’ here
Error: GCC_ANALYZER_WARNING (CWE-416): [#def4]
screen-5.0.0/canvas.c:86:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘cv’
screen-5.0.0/canvas.c:700:6: enter_function: entry to ‘OneCanvas’
screen-5.0.0/canvas.c:712:12: branch_false: following ‘false’ branch (when ‘ocv’ is non-NULL)...
screen-5.0.0/canvas.c:714:13: branch_false: ...to here
screen-5.0.0/canvas.c:717:16: branch_true: following ‘true’ branch...
screen-5.0.0/canvas.c:718:17: branch_true: ...to here
screen-5.0.0/canvas.c:718:17: call_function: calling ‘FreeCanvas’ from ‘OneCanvas’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
screen-5.0.0/canvas.c:215:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cvp’
screen-5.0.0/canvas.c:700:6: enter_function: entry to ‘OneCanvas’
screen-5.0.0/canvas.c:712:12: branch_false: following ‘false’ branch (when ‘ocv’ is non-NULL)...
screen-5.0.0/canvas.c:714:13: branch_false: ...to here
screen-5.0.0/canvas.c:717:16: branch_true: following ‘true’ branch...
screen-5.0.0/canvas.c:718:17: branch_true: ...to here
screen-5.0.0/canvas.c:718:17: call_function: calling ‘FreeCanvas’ from ‘OneCanvas’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
screen-5.0.0/canvas.c:282:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
screen-5.0.0/canvas.c:775:6: enter_function: entry to ‘PutWindowCv’
screen-5.0.0/canvas.c:778:16: branch_true: following ‘true’ branch (when ‘cv’ is non-NULL)...
screen-5.0.0/canvas.c:779:21: branch_true: ...to here
screen-5.0.0/canvas.c:779:20: branch_false: following ‘false’ branch...
screen-5.0.0/canvas.c:783:21: branch_false: ...to here
screen-5.0.0/canvas.c:783:21: branch_true: following ‘true’ branch...
screen-5.0.0/canvas.c:783:17: branch_true: ...to here
screen-5.0.0/canvas.c:785:17: call_function: calling ‘SetCanvasWindow’ from ‘PutWindowCv’
Error: CPPCHECK_WARNING (CWE-476): [#def7]
screen-5.0.0/canvas.c:760: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cvt->c_slperp
Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
screen-5.0.0/canvas.c:760:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*cvt.c_slperp’
screen-5.0.0/canvas.c:738:16: branch_true: following ‘true’ branch (when ‘cvf’ is non-NULL)...
screen-5.0.0/canvas.c:739:35: branch_true: ...to here
screen-5.0.0/canvas.c:743:20: branch_false: following ‘false’ branch (when ‘save == 0’)...
screen-5.0.0/canvas.c:744:25: branch_false: ...to here
screen-5.0.0/canvas.c:745:28: branch_false: following ‘false’ branch...
screen-5.0.0/canvas.c:753:40: branch_false: ...to here
screen-5.0.0/canvas.c:758:20: branch_true: following ‘true’ branch...
screen-5.0.0/canvas.c:759:41: branch_true: ...to here
screen-5.0.0/canvas.c:759:41: acquire_memory: this call could return NULL
screen-5.0.0/canvas.c:760:25: danger: ‘calloc(1, 304)’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
screen-5.0.0/canvas.c:760:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 304)’
screen-5.0.0/canvas.c:736:6: enter_function: entry to ‘DupLayoutCv’
screen-5.0.0/canvas.c:738:16: branch_true: following ‘true’ branch (when ‘cvf’ is non-NULL)...
screen-5.0.0/canvas.c:739:35: branch_true: ...to here
screen-5.0.0/canvas.c:743:20: branch_false: following ‘false’ branch (when ‘save == 0’)...
screen-5.0.0/canvas.c:744:25: branch_false: ...to here
screen-5.0.0/canvas.c:745:28: branch_false: following ‘false’ branch...
screen-5.0.0/canvas.c:753:40: branch_false: ...to here
screen-5.0.0/canvas.c:758:20: branch_true: following ‘true’ branch...
screen-5.0.0/canvas.c:759:41: branch_true: ...to here
screen-5.0.0/canvas.c:762:25: call_function: calling ‘DupLayoutCv’ from ‘DupLayoutCv’
Error: CPPCHECK_WARNING (CWE-476): [#def10]
screen-5.0.0/canvas.c:766: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cvt->c_slnext
Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
screen-5.0.0/canvas.c:766:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*cvt.c_slnext’
screen-5.0.0/canvas.c:738:16: branch_true: following ‘true’ branch (when ‘cvf’ is non-NULL)...
screen-5.0.0/canvas.c:739:35: branch_true: ...to here
screen-5.0.0/canvas.c:743:20: branch_false: following ‘false’ branch (when ‘save == 0’)...
screen-5.0.0/canvas.c:744:25: branch_false: ...to here
screen-5.0.0/canvas.c:745:28: branch_false: following ‘false’ branch...
screen-5.0.0/canvas.c:753:40: branch_false: ...to here
screen-5.0.0/canvas.c:758:20: branch_false: following ‘false’ branch...
screen-5.0.0/canvas.c:764:21: branch_false: ...to here
screen-5.0.0/canvas.c:764:20: branch_true: following ‘true’ branch...
screen-5.0.0/canvas.c:765:41: branch_true: ...to here
screen-5.0.0/canvas.c:765:41: acquire_memory: this call could return NULL
screen-5.0.0/canvas.c:766:25: danger: ‘calloc(1, 304)’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
screen-5.0.0/canvas.c:766:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 304)’
screen-5.0.0/canvas.c:736:6: enter_function: entry to ‘DupLayoutCv’
screen-5.0.0/canvas.c:738:16: branch_true: following ‘true’ branch (when ‘cvf’ is non-NULL)...
screen-5.0.0/canvas.c:739:35: branch_true: ...to here
screen-5.0.0/canvas.c:743:20: branch_false: following ‘false’ branch (when ‘save == 0’)...
screen-5.0.0/canvas.c:744:25: branch_false: ...to here
screen-5.0.0/canvas.c:745:28: branch_false: following ‘false’ branch...
screen-5.0.0/canvas.c:753:40: branch_false: ...to here
screen-5.0.0/canvas.c:758:20: branch_true: following ‘true’ branch...
screen-5.0.0/canvas.c:759:41: branch_true: ...to here
screen-5.0.0/canvas.c:762:25: call_function: calling ‘DupLayoutCv’ from ‘DupLayoutCv’
Error: COMPILER_WARNING (CWE-252): [#def13]
screen-5.0.0/display.c: scope_hint: In function ‘DisplaySleep1000’
screen-5.0.0/display.c:2335:25: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def14]
screen-5.0.0/display.c: scope_hint: In function ‘RunBlanker’
screen-5.0.0/display.c:3027:25: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def15]
screen-5.0.0/fileio.c:70:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cp’
screen-5.0.0/fileio.c:140:5: enter_function: entry to ‘StartRc’
screen-5.0.0/fileio.c:151:23: call_function: calling ‘CatExtra’ from ‘StartRc’
screen-5.0.0/fileio.c:151:23: return_function: returning to ‘StartRc’ from ‘CatExtra’
screen-5.0.0/fileio.c:154:12: branch_true: following ‘true’ branch...
screen-5.0.0/fileio.c:154:34: branch_true: ...to here
screen-5.0.0/fileio.c:156:21: call_function: calling ‘CatExtra’ from ‘StartRc’
Error: COMPILER_WARNING: [#def16]
screen-5.0.0/fileio.c: scope_hint: In function ‘WriteFile’
screen-5.0.0/fileio.c:352:25: warning[-Wstringop-truncation]: ‘__strncpy_chk’ output may be truncated copying between 0 and 4087 bytes from a string of length 4095
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
screen-5.0.0/fileio.c:564:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pi[0]’
screen-5.0.0/fileio.c:562:12: branch_false: following ‘false’ branch...
screen-5.0.0/fileio.c:566:17: branch_false: ...to here
screen-5.0.0/fileio.c:564:24: danger: ‘pi[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
screen-5.0.0/fileio.c:564:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pi[1]’
screen-5.0.0/fileio.c:562:12: branch_false: following ‘false’ branch...
screen-5.0.0/fileio.c:566:17: branch_false: ...to here
screen-5.0.0/fileio.c:564:24: danger: ‘pi[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
screen-5.0.0/fileio.c:575:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(pi[0])’
screen-5.0.0/fileio.c:562:12: branch_false: following ‘false’ branch...
screen-5.0.0/fileio.c:566:17: branch_false: ...to here
screen-5.0.0/fileio.c:575:21: acquire_resource: opened here
screen-5.0.0/fileio.c:575:20: danger: ‘dup(pi[0])’ leaks here; was opened at [(6)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
screen-5.0.0/fileio.c:600:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pi[0]’
screen-5.0.0/fileio.c:598:12: branch_false: following ‘false’ branch...
screen-5.0.0/fileio.c:602:17: branch_false: ...to here
screen-5.0.0/fileio.c:600:24: danger: ‘pi[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
screen-5.0.0/fileio.c:600:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pi[1]’
screen-5.0.0/fileio.c:598:12: branch_false: following ‘false’ branch...
screen-5.0.0/fileio.c:602:17: branch_false: ...to here
screen-5.0.0/fileio.c:600:24: danger: ‘pi[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
screen-5.0.0/fileio.c:610:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(pi[1])’
screen-5.0.0/fileio.c:598:12: branch_false: following ‘false’ branch...
screen-5.0.0/fileio.c:602:17: branch_false: ...to here
screen-5.0.0/fileio.c:610:21: acquire_resource: opened here
screen-5.0.0/fileio.c:610:20: danger: ‘dup(pi[1])’ leaks here; was opened at [(6)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-121): [#def23]
screen-5.0.0/help.c:329:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
screen-5.0.0/help.c:343:13: enter_function: entry to ‘HelpRedisplayLine’
screen-5.0.0/help.c:351:17: call_function: calling ‘helppage’ from ‘HelpRedisplayLine’
Error: CPPCHECK_WARNING (CWE-476): [#def24]
screen-5.0.0/input.c:358: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: store
Error: CPPCHECK_WARNING (CWE-476): [#def25]
screen-5.0.0/input.c:360: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: store
Error: CPPCHECK_WARNING (CWE-476): [#def26]
screen-5.0.0/input.c:361: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: store
Error: CPPCHECK_WARNING (CWE-476): [#def27]
screen-5.0.0/layout.c:82: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lay
Error: CPPCHECK_WARNING (CWE-476): [#def28]
screen-5.0.0/layout.c:83: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lay
Error: CPPCHECK_WARNING (CWE-476): [#def29]
screen-5.0.0/layout.c:84: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lay
Error: CPPCHECK_WARNING (CWE-476): [#def30]
screen-5.0.0/layout.c:86: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lay
Error: CPPCHECK_WARNING (CWE-457): [#def31]
screen-5.0.0/layout.c:229: warning[uninitvar]: Uninitialized variable: ss
Error: CPPCHECK_WARNING (CWE-476): [#def32]
screen-5.0.0/list_generic.c:372: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: r
Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
screen-5.0.0/list_generic.c:372:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘r’
screen-5.0.0/list_generic.c:371:22: acquire_memory: this call could return NULL
screen-5.0.0/list_generic.c:372:9: danger: ‘r’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def34]
screen-5.0.0/list_generic.c:375: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: r
Error: CPPCHECK_WARNING (CWE-476): [#def35]
screen-5.0.0/list_generic.c:376: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: r
Error: CPPCHECK_WARNING (CWE-476): [#def36]
screen-5.0.0/list_generic.c:378: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: r
Error: CPPCHECK_WARNING (CWE-476): [#def37]
screen-5.0.0/list_generic.c:381: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: r
Error: COMPILER_WARNING: [#def38]
screen-5.0.0/list_license.c: scope_hint: In function ‘gl_License_row’
screen-5.0.0/list_license.c:99:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
screen-5.0.0/list_license.c:99:36: note: earlier argument should specify number of elements, later size of each element
Error: CPPCHECK_WARNING (CWE-476): [#def39]
screen-5.0.0/list_window.c:500: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdata
Error: CPPCHECK_WARNING (CWE-476): [#def40]
screen-5.0.0/list_window.c:501: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdata
Error: CPPCHECK_WARNING (CWE-476): [#def41]
screen-5.0.0/list_window.c:502: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdata
Error: CPPCHECK_WARNING (CWE-476): [#def42]
screen-5.0.0/list_window.c:503: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdata
Error: CPPCHECK_WARNING (CWE-476): [#def43]
screen-5.0.0/list_window.c:506: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdata
Error: CPPCHECK_WARNING (CWE-476): [#def44]
screen-5.0.0/list_window.c:507: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdata
Error: CPPCHECK_WARNING (CWE-476): [#def45]
screen-5.0.0/list_window.c:508: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdata
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
screen-5.0.0/logfile.c:75:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘lf_move_fd(open(name, 1089, 438), wantfd)’
screen-5.0.0/logfile.c:216:5: enter_function: entry to ‘logfflush’
screen-5.0.0/logfile.c:220:12: branch_false: following ‘false’ branch (when ‘l’ is non-NULL)...
screen-5.0.0/logfile.c:228:21: branch_false: ...to here
screen-5.0.0/logfile.c:228:20: branch_true: following ‘true’ branch...
screen-5.0.0/logfile.c:228:42: branch_true: ...to here
screen-5.0.0/logfile.c:228:42: call_function: calling ‘logfile_reopen’ from ‘logfflush’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
screen-5.0.0/logfile.c:222:50: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fileno(*l.fp)’
screen-5.0.0/logfile.c:216:5: enter_function: entry to ‘logfflush’
screen-5.0.0/logfile.c:220:12: branch_true: following ‘true’ branch (when ‘l’ is NULL)...
screen-5.0.0/logfile.c:221:22: branch_true: ...to here
screen-5.0.0/logfile.c:221:35: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
screen-5.0.0/logfile.c:222:29: branch_true: ...to here
screen-5.0.0/logfile.c:222:28: branch_true: following ‘true’ branch...
screen-5.0.0/logfile.c:222:50: branch_true: ...to here
screen-5.0.0/logfile.c:222:50: call_function: calling ‘logfile_reopen’ from ‘logfflush’
Error: COMPILER_WARNING (CWE-457): [#def48]
screen-5.0.0/process.c: scope_hint: In function ‘DoCommandAt’
screen-5.0.0/process.c:1372:36: warning[-Wmaybe-uninitialized]: ‘i’ may be used uninitialized
screen-5.0.0/process.c:1340:29: note: ‘i’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
screen-5.0.0/process.c:5912:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
screen-5.0.0/process.c:618:6: enter_function: entry to ‘ProcessInput’
screen-5.0.0/process.c:632:16: branch_true: following ‘true’ branch (when ‘ilen != 0’)...
screen-5.0.0/process.c:633:23: branch_true: ...to here
screen-5.0.0/process.c:634:20: branch_false: following ‘false’ branch...
screen-5.0.0/process.c:639:28: branch_true: following ‘true’ branch...
screen-5.0.0/process.c:640:52: branch_true: ...to here
screen-5.0.0/process.c:650:36: branch_false: following ‘false’ branch...
screen-5.0.0/process.c:652:37: branch_false: ...to here
screen-5.0.0/process.c:652:36: branch_true: following ‘true’ branch (when ‘q’ is non-NULL)...
screen-5.0.0/process.c:653:41: branch_true: ...to here
screen-5.0.0/process.c:656:45: call_function: calling ‘StuffKey’ from ‘ProcessInput’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
screen-5.0.0/resize.c:307:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ml’
screen-5.0.0/resize.c:814:6: enter_function: entry to ‘LeaveAltScreen’
screen-5.0.0/resize.c:816:12: branch_false: following ‘false’ branch...
screen-5.0.0/resize.c:818:9: branch_false: ...to here
screen-5.0.0/resize.c:819:9: call_function: calling ‘ChangeWindowSize’ from ‘LeaveAltScreen’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
screen-5.0.0/resize.c:322:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ml’
screen-5.0.0/resize.c:814:6: enter_function: entry to ‘LeaveAltScreen’
screen-5.0.0/resize.c:816:12: branch_false: following ‘false’ branch...
screen-5.0.0/resize.c:818:9: branch_false: ...to here
screen-5.0.0/resize.c:819:9: call_function: calling ‘ChangeWindowSize’ from ‘LeaveAltScreen’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
screen-5.0.0/resize.c:573:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mlf’
screen-5.0.0/resize.c:814:6: enter_function: entry to ‘LeaveAltScreen’
screen-5.0.0/resize.c:816:12: branch_false: following ‘false’ branch...
screen-5.0.0/resize.c:818:9: branch_false: ...to here
screen-5.0.0/resize.c:819:9: call_function: calling ‘ChangeWindowSize’ from ‘LeaveAltScreen’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
screen-5.0.0/resize.c:593:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mlt’
screen-5.0.0/resize.c:814:6: enter_function: entry to ‘LeaveAltScreen’
screen-5.0.0/resize.c:816:12: branch_false: following ‘false’ branch...
screen-5.0.0/resize.c:818:9: branch_false: ...to here
screen-5.0.0/resize.c:819:9: call_function: calling ‘ChangeWindowSize’ from ‘LeaveAltScreen’
Error: CPPCHECK_WARNING (CWE-401): [#def54]
screen-5.0.0/sched.c:78: error[memleakOnRealloc]: Common realloc mistake: 'pfd' nulled but not freed upon failure
Error: COMPILER_WARNING: [#def55]
screen-5.0.0/screen.c: scope_hint: In function ‘main’
screen-5.0.0/screen.c:955:102: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 4096 bytes into a region of size 4095
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 2 and 4098 bytes into a destination of size 4096
Error: COMPILER_WARNING: [#def56]
screen-5.0.0/screen.c: scope_hint: In function ‘main’
screen-5.0.0/screen.c:1020:94: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 4096 bytes into a region of size 4095
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 2 and 4098 bytes into a destination of size 4096
Error: COMPILER_WARNING (CWE-252): [#def57]
screen-5.0.0/screen.c: scope_hint: In function ‘CoreDump’
screen-5.0.0/screen.c:1178:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def58]
screen-5.0.0/screen.c: scope_hint: In function ‘Msg’
screen-5.0.0/screen.c:1513:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def59]
screen-5.0.0/screen.c: scope_hint: In function ‘Panic’
screen-5.0.0/screen.c:1548:25: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def60]
screen-5.0.0/screen.c:1549:25: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def61]
screen-5.0.0/screen.c: scope_hint: In function ‘QueryMsg’
screen-5.0.0/screen.c:1574:9: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def62]
screen-5.0.0/screen.c: scope_hint: In function ‘serv_select_fn’
screen-5.0.0/screen.c:1678:25: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
screen-5.0.0/socket.c:845:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
screen-5.0.0/socket.c:713:12: branch_false: following ‘false’ branch...
screen-5.0.0/socket.c:720:9: branch_false: ...to here
screen-5.0.0/socket.c:731:20: branch_false: following ‘false’ branch...
screen-5.0.0/socket.c:736:21: branch_false: ...to here
screen-5.0.0/socket.c:772:12: branch_false: following ‘false’ branch...
screen-5.0.0/socket.c:778:12: branch_false: ...to here
screen-5.0.0/socket.c:778:12: branch_false: following ‘false’ branch (when ‘left <= 0’)...
screen-5.0.0/socket.c:783:13: branch_false: ...to here
screen-5.0.0/socket.c:783:12: branch_false: following ‘false’ branch...
screen-5.0.0/socket.c:790:13: branch_false: ...to here
screen-5.0.0/socket.c:798:12: branch_true: following ‘true’ branch...
screen-5.0.0/socket.c:799:22: branch_true: ...to here
screen-5.0.0/socket.c:799:40: branch_true: following ‘true’ branch (when ‘win’ is non-NULL)...
screen-5.0.0/socket.c:800:46: branch_true: ...to here
screen-5.0.0/socket.c:802:43: branch_false: following ‘false’ branch...
screen-5.0.0/socket.c:802:33: branch_false: ...to here
screen-5.0.0/socket.c:802:33: release_memory: ‘0’ is NULL
screen-5.0.0/socket.c:808:13: release_memory: ‘0’ is NULL
screen-5.0.0/socket.c:808:12: branch_false: following ‘false’ branch...
screen-5.0.0/socket.c:811:13: branch_false: ...to here
screen-5.0.0/socket.c:811:13: release_memory: ‘0’ is NULL
screen-5.0.0/socket.c:811:12: branch_false: following ‘false’ branch...
screen-5.0.0/socket.c:817:17: branch_false: ...to here
screen-5.0.0/socket.c:845:29: danger: dereference of NULL ‘display’
Error: COMPILER_WARNING: [#def64]
screen-5.0.0/socket.c: scope_hint: In function ‘ReceiveMsg’
screen-5.0.0/socket.c:870:25: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 4096 equals destination size
Error: CPPCHECK_WARNING (CWE-476): [#def65]
screen-5.0.0/socket.c:1169: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: reply
Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
screen-5.0.0/socket.c:1169:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘reply’
screen-5.0.0/socket.c:1167:40: acquire_memory: this call could return NULL
screen-5.0.0/socket.c:1169:9: danger: ‘reply’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def67]
screen-5.0.0/socket.c:1170: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: reply
Error: GCC_ANALYZER_WARNING (CWE-787): [#def68]
screen-5.0.0/termcap.c:682:25: warning[-Wanalyzer-out-of-bounds]: buffer overflow
screen-5.0.0/termcap.c:856:6: enter_function: entry to ‘DumpTermcap’
screen-5.0.0/termcap.c:861:24: call_function: calling ‘MakeTermcap’ from ‘DumpTermcap’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def69]
screen-5.0.0/termcap.c:687:25: warning[-Wanalyzer-out-of-bounds]: buffer overflow
screen-5.0.0/termcap.c:856:6: enter_function: entry to ‘DumpTermcap’
screen-5.0.0/termcap.c:861:24: call_function: calling ‘MakeTermcap’ from ‘DumpTermcap’
Error: COMPILER_WARNING (CWE-252): [#def70]
screen-5.0.0/window.c: scope_hint: In function ‘CloseDevice’
screen-5.0.0/window.c:808:23: warning[-Wunused-result]: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
screen-5.0.0/window.c:1075:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(slave)’
screen-5.0.0/window.c:1029:12: branch_true: following ‘true’ branch...
screen-5.0.0/window.c:1030:30: branch_true: ...to here
screen-5.0.0/window.c:1030:20: branch_false: following ‘false’ branch...
screen-5.0.0/window.c:1036:9: branch_false: ...to here
screen-5.0.0/window.c:1037:12: branch_false: following ‘false’ branch (when ‘proc’ is non-NULL)...
screen-5.0.0/window.c:1041:9: branch_false: ...to here
screen-5.0.0/window.c:1060:20: branch_false: following ‘false’ branch...
screen-5.0.0/window.c:1073:20: branch_true: following ‘true’ branch (when ‘slave != -1’)...
screen-5.0.0/window.c:1074:25: branch_true: ...to here
screen-5.0.0/window.c:1075:28: acquire_resource: opened here
screen-5.0.0/window.c:1075:27: danger: ‘dup(slave)’ leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-910): [#def72]
screen-5.0.0/window.c:1079:33: warning[-Wanalyzer-fd-use-after-close]: ‘dup’ on closed file descriptor ‘0’
screen-5.0.0/window.c:1029:12: branch_true: following ‘true’ branch...
screen-5.0.0/window.c:1030:30: branch_true: ...to here
screen-5.0.0/window.c:1030:20: branch_false: following ‘false’ branch...
screen-5.0.0/window.c:1036:9: branch_false: ...to here
screen-5.0.0/window.c:1037:12: branch_false: following ‘false’ branch (when ‘proc’ is non-NULL)...
screen-5.0.0/window.c:1041:9: branch_false: ...to here
screen-5.0.0/window.c:1060:20: branch_false: following ‘false’ branch...
screen-5.0.0/window.c:1073:20: branch_true: following ‘true’ branch (when ‘slave != -1’)...
screen-5.0.0/window.c:1074:25: branch_true: ...to here
screen-5.0.0/window.c:1074:25: release_resource: closed here
screen-5.0.0/window.c:1075:27: branch_false: following ‘false’ branch...
screen-5.0.0/window.c:1077:25: branch_false: ...to here
screen-5.0.0/window.c:1079:33: danger: ‘dup’ on closed file descriptor ‘0’; ‘close’ was at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def73]
screen-5.0.0/window.c:1083:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘0’
screen-5.0.0/window.c:1029:12: branch_true: following ‘true’ branch...
screen-5.0.0/window.c:1030:30: branch_true: ...to here
screen-5.0.0/window.c:1030:20: branch_false: following ‘false’ branch...
screen-5.0.0/window.c:1036:9: branch_false: ...to here
screen-5.0.0/window.c:1037:12: branch_false: following ‘false’ branch (when ‘proc’ is non-NULL)...
screen-5.0.0/window.c:1041:9: branch_false: ...to here
screen-5.0.0/window.c:1060:20: branch_false: following ‘false’ branch...
screen-5.0.0/window.c:1073:20: branch_true: following ‘true’ branch (when ‘slave != -1’)...
screen-5.0.0/window.c:1074:25: branch_true: ...to here
screen-5.0.0/window.c:1074:25: release_resource: first ‘close’ here
screen-5.0.0/window.c:1075:27: branch_false: following ‘false’ branch...
screen-5.0.0/window.c:1077:25: branch_false: ...to here
screen-5.0.0/window.c:1083:17: danger: second ‘close’ here; first ‘close’ was at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
screen-5.0.0/window.c:1112:35: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(*win.w_ptyfd)’
screen-5.0.0/window.c:1029:12: branch_false: following ‘false’ branch...
screen-5.0.0/window.c:1036:9: branch_false: ...to here
screen-5.0.0/window.c:1037:12: branch_false: following ‘false’ branch (when ‘proc’ is non-NULL)...
screen-5.0.0/window.c:1041:9: branch_false: ...to here
screen-5.0.0/window.c:1060:20: branch_false: following ‘false’ branch...
screen-5.0.0/window.c:1073:20: branch_false: following ‘false’ branch (when ‘slave == -1’)...
screen-5.0.0/window.c:1081:25: branch_false: ...to here
screen-5.0.0/window.c:1092:33: branch_true: following ‘true’ branch (when ‘i != 3’)...
screen-5.0.0/window.c:1093:47: branch_true: ...to here
screen-5.0.0/window.c:1093:28: branch_false: following ‘false’ branch...
screen-5.0.0/window.c:1112:36: branch_false: ...to here
screen-5.0.0/window.c:1112:36: acquire_resource: opened here
screen-5.0.0/window.c:1112:35: danger: ‘dup(*win.w_ptyfd)’ leaks here; was opened at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
Error: COMPILER_WARNING (CWE-252): [#def75]
screen-5.0.0/window.c: scope_hint: In function ‘FreePseudowin’
screen-5.0.0/window.c:1372:15: warning[-Wunused-result]: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def76]
screen-5.0.0/window.c: scope_hint: In function ‘win_writeev_fn’
screen-5.0.0/window.c:1574:41: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
screen-5.0.0/window.c:1853:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
screen-5.0.0/window.c:1836:5: enter_function: entry to ‘SwapWindows’
screen-5.0.0/window.c:1841:12: branch_false: following ‘false’ branch (when ‘dest >= 0’)...
screen-5.0.0/window.c:1846:12: branch_false: ...to here
screen-5.0.0/window.c:1846:12: branch_false: following ‘false’ branch (when ‘dest != old’)...
screen-5.0.0/window.c:1849:17: branch_false: ...to here
screen-5.0.0/window.c:1852:9: call_function: calling ‘remove_window_from_list’ from ‘SwapWindows’
screen-5.0.0/window.c:1852:9: return_function: returning to ‘SwapWindows’ from ‘remove_window_from_list’
screen-5.0.0/window.c:1853:9: danger: dereference of NULL ‘GetWindowByNumber(old & 65535)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
screen-5.0.0/window.c:2008:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘w’
screen-5.0.0/window.c:1993:12: branch_true: following ‘true’ branch...
screen-5.0.0/window.c:1994:29: branch_true: ...to here
screen-5.0.0/window.c:1993:13: branch_true: following ‘true’ branch...
screen-5.0.0/window.c:1997:22: branch_true: ...to here
screen-5.0.0/window.c:1997:20: branch_true: following ‘true’ branch...
branch_true: ...to here
screen-5.0.0/window.c:2000:32: branch_true: following ‘true’ branch...
screen-5.0.0/window.c:2008:21: danger: dereference of NULL ‘w’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
screen-5.0.0/winmsgbuf.c:77:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
screen-5.0.0/winmsgbuf.c:226:5: enter_function: entry to ‘wmbc_printf’
screen-5.0.0/winmsgbuf.c:234:15: call_function: inlined call to ‘wmbc_bytesleft’ from ‘wmbc_printf’
screen-5.0.0/winmsgbuf.c:234:15: call_function: inlined call to ‘wmbc_bytesleft’ from ‘wmbc_printf’
screen-5.0.0/winmsgbuf.c:241:12: branch_true: following ‘true’ branch...
screen-5.0.0/winmsgbuf.c:242:50: branch_true: ...to here
screen-5.0.0/winmsgbuf.c:242:22: call_function: calling ‘_wmbc_expand’ from ‘wmbc_printf’
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-181.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 | screen-5.0.0-4.fc43 |
store-results-to | /tmp/tmp1f4ou6sy/screen-5.0.0-4.fc43.tar.xz |
time-created | 2025-04-25 15:36:20 |
time-finished | 2025-04-25 15:38:37 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp1f4ou6sy/screen-5.0.0-4.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp1f4ou6sy/screen-5.0.0-4.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |