Newly introduced findings
List of Findings
Error: SHELLCHECK_WARNING: [#def1]
/usr/bin/brltty-config.sh:66:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def2]
/usr/bin/brltty-config.sh:82:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/bin/brltty-prologue.sh:153:10: warning[SC2034]: programPath appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING: [#def4]
/usr/bin/brltty-prologue.sh:319:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-457): [#def5]
/usr/bin/brltty-tmux:61:7: warning[SC2154]: optSudo is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def6]
/usr/bin/brltty-tmux:69:41: warning[SC2154]: programPath is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def7]
/usr/bin/brltty-tmux:73:5: warning[SC2154]: optContinue is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def8]
/usr/bin/brltty-tmux:92:7: warning[SC2154]: brlttyPath is referenced but not assigned.
Error: CPPCHECK_WARNING (CWE-401): [#def9]
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:249: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def10]
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:250: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def11]
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:262: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def12]
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:263: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def13]
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1363: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a2Watch
Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1363:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Watch’
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1387:6: enter_function: entry to ‘a2WatchToggled’
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1390:8: branch_true: following ‘true’ branch...
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1391:7: branch_true: ...to here
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1391:7: call_function: calling ‘a2AddWatch’ from ‘a2WatchToggled’
Error: CPPCHECK_WARNING (CWE-476): [#def15]
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1430: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a2Timeout
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1430:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Timeout’
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1446:6: enter_function: entry to ‘a2TimeoutToggled’
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1449:8: branch_true: following ‘true’ branch...
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1450:7: branch_true: ...to here
brltty-6.9.1/minimal/Drivers/Screen/AtSpi2/screen.c:1450:7: call_function: calling ‘a2AddTimeout’ from ‘a2TimeoutToggled’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:393:1: warning[-Wanalyzer-malloc-leak]: leak of ‘newColors’
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:993:1: enter_function: entry to ‘tmuxMonitorCallback’
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1008:8: branch_false: following ‘false’ branch...
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1020:18: branch_false: ...to here
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1020:42: branch_true: following ‘true’ branch...
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1021:11: branch_true: ...to here
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1021:10: branch_false: following ‘false’ branch...
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1024:7: branch_false: ...to here
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1025:7: call_function: calling ‘parseTmuxOutput’ from ‘tmuxMonitorCallback’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:393:1: warning[-Wanalyzer-malloc-leak]: leak of ‘newContent’
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:993:1: enter_function: entry to ‘tmuxMonitorCallback’
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1008:8: branch_false: following ‘false’ branch...
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1020:18: branch_false: ...to here
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1020:42: branch_true: following ‘true’ branch...
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1021:11: branch_true: ...to here
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1021:10: branch_false: following ‘false’ branch...
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1024:7: branch_false: ...to here
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:1025:7: call_function: calling ‘parseTmuxOutput’ from ‘tmuxMonitorCallback’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:478:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipeStdout[0]’
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:407:1: enter_function: entry to ‘construct_TmuxScreen’
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:420:8: call_function: calling ‘startTmuxControlMode’ from ‘construct_TmuxScreen’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:478:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipeStdout[1]’
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:407:1: enter_function: entry to ‘construct_TmuxScreen’
brltty-6.9.1/minimal/Drivers/Screen/Tmux/screen.c:420:8: call_function: calling ‘startTmuxControlMode’ from ‘construct_TmuxScreen’
Error: CPPCHECK_WARNING (CWE-457): [#def21]
brltty-6.9.1/minimal/Programs/brltty-cldr.c:114: error[uninitvar]: Uninitialized variable: character
Error: CPPCHECK_WARNING (CWE-457): [#def22]
brltty-6.9.1/minimal/Programs/brltty-cmdref.c:231: warning[uninitvar]: Uninitialized variables: commands.name, commands.description, commands.code, commands.isToggle, commands.isMotion, commands.isRow, commands.isVertical, commands.isHorizontal, commands.isPanning, commands.isInput, commands.isCharacter, commands.isBraille, commands.isKeyboard, commands.isRouting, commands.isColumn, commands.isOffset, commands.isRange
Error: CPPCHECK_WARNING (CWE-476): [#def23]
brltty-6.9.1/minimal/Programs/cmdargs.c:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: arguments
Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
brltty-6.9.1/minimal/Programs/cmdargs.c:36:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘arguments’
brltty-6.9.1/minimal/Programs/cmdargs.c:35:15: acquire_memory: this call could return NULL
brltty-6.9.1/minimal/Programs/cmdargs.c:36:3: danger: ‘arguments’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def25]
brltty-6.9.1/minimal/Programs/cmdput.c:203:9: warning[-Wanalyzer-null-argument]: use of NULL ‘paragraphText’ where non-null expected
brltty-6.9.1/minimal/Programs/cmdput.c:173:10: branch_true: following ‘true’ branch...
brltty-6.9.1/minimal/Programs/cmdput.c:174:33: branch_true: ...to here
brltty-6.9.1/minimal/Programs/cmdput.c:179:10: branch_false: following ‘false’ branch (when ‘text’ is non-NULL)...
brltty-6.9.1/minimal/Programs/cmdput.c:180:14: branch_false: ...to here
brltty-6.9.1/minimal/Programs/cmdput.c:182:10: branch_true: following ‘true’ branch...
brltty-6.9.1/minimal/Programs/cmdput.c:187:12: branch_false: following ‘false’ branch (when ‘paragraphLength == 0’)...
brltty-6.9.1/minimal/Programs/cmdput.c:189:12: branch_false: ...to here
brltty-6.9.1/minimal/Programs/cmdput.c:189:12: branch_false: following ‘false’ branch (when ‘paragraphSize >= newLength’)...
brltty-6.9.1/minimal/Programs/cmdput.c:202:12: branch_false: ...to here
brltty-6.9.1/minimal/Programs/cmdput.c:202:12: branch_false: following ‘false’ branch (when ‘paragraphLength == 0’)...
brltty-6.9.1/minimal/Programs/cmdput.c:203:16: branch_false: ...to here
brltty-6.9.1/minimal/Programs/cmdput.c:203:16: release_memory: ‘paragraphText’ is NULL
brltty-6.9.1/minimal/Programs/cmdput.c:203:9: danger: argument 1 (‘paragraphText + paragraphLength’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-457): [#def26]
brltty-6.9.1/minimal/Programs/scr.c:230:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘candidates[<unknown>]’
brltty-6.9.1/minimal/Programs/scr.c:196:6: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
brltty-6.9.1/minimal/Programs/scr.c:200:7: branch_false: ...to here
brltty-6.9.1/minimal/Programs/scr.c:200:6: branch_true: following ‘true’ branch...
brltty-6.9.1/minimal/Programs/scr.c:200:6: branch_true: ...to here
brltty-6.9.1/minimal/Programs/scr.c:207:30: branch_true: following ‘true’ branch (when ‘i < count’)...
brltty-6.9.1/minimal/Programs/scr.c:208:38: branch_true: ...to here
brltty-6.9.1/minimal/Programs/scr.c:212:23: branch_false: following ‘false’ branch (when ‘discardedCount <= j’)...
brltty-6.9.1/minimal/Programs/scr.c:218:10: branch_false: ...to here
brltty-6.9.1/minimal/Programs/scr.c:218:10: branch_false: following ‘false’ branch (when ‘found == 0’)...
brltty-6.9.1/minimal/Programs/scr.c:218:10: branch_false: ...to here
brltty-6.9.1/minimal/Programs/scr.c:222:23: branch_false: following ‘false’ branch (when ‘candidateCount <= j’)...
brltty-6.9.1/minimal/Programs/scr.c:240:10: branch_false: ...to here
brltty-6.9.1/minimal/Programs/scr.c:240:10: branch_true: following ‘true’ branch (when ‘candidateCount <= 15’)...
brltty-6.9.1/minimal/Programs/scr.c:241:9: branch_true: ...to here
brltty-6.9.1/minimal/Programs/scr.c:207:30: branch_true: following ‘true’ branch (when ‘i < count’)...
brltty-6.9.1/minimal/Programs/scr.c:208:38: branch_true: ...to here
brltty-6.9.1/minimal/Programs/scr.c:212:23: branch_false: following ‘false’ branch (when ‘discardedCount <= j’)...
brltty-6.9.1/minimal/Programs/scr.c:218:10: branch_false: ...to here
brltty-6.9.1/minimal/Programs/scr.c:218:10: branch_false: following ‘false’ branch (when ‘found == 0’)...
brltty-6.9.1/minimal/Programs/scr.c:218:10: branch_false: ...to here
brltty-6.9.1/minimal/Programs/scr.c:222:23: branch_true: following ‘true’ branch (when ‘candidateCount > j’)...
brltty-6.9.1/minimal/Programs/scr.c:223:38: branch_true: ...to here
brltty-6.9.1/minimal/Programs/scr.c:223:12: branch_true: following ‘true’ branch...
brltty-6.9.1/minimal/Programs/scr.c:225:14: branch_true: ...to here
brltty-6.9.1/minimal/Programs/scr.c:225:14: branch_true: following ‘true’ branch (when ‘discardedCount <= 15’)...
brltty-6.9.1/minimal/Programs/scr.c:226:23: branch_true: ...to here
brltty-6.9.1/minimal/Programs/scr.c:229:27: branch_true: following ‘true’ branch...
brltty-6.9.1/minimal/Programs/scr.c:230:40: branch_true: ...to here
brltty-6.9.1/minimal/Programs/scr.c:230:13: danger: use of uninitialized value ‘candidates[<unknown>]’ here
Error: CPPCHECK_WARNING (CWE-401): [#def27]
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:249: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def28]
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:250: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def29]
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:262: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def30]
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:263: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def31]
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1363: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a2Watch
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1363:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Watch’
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1387:6: enter_function: entry to ‘a2WatchToggled’
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1390:8: branch_true: following ‘true’ branch...
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1391:7: branch_true: ...to here
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1391:7: call_function: calling ‘a2AddWatch’ from ‘a2WatchToggled’
Error: CPPCHECK_WARNING (CWE-476): [#def33]
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1430: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a2Timeout
Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1430:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Timeout’
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1446:6: enter_function: entry to ‘a2TimeoutToggled’
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1449:8: branch_true: following ‘true’ branch...
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1450:7: branch_true: ...to here
brltty-6.9.1/python3/Drivers/Screen/AtSpi2/screen.c:1450:7: call_function: calling ‘a2AddTimeout’ from ‘a2TimeoutToggled’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:393:1: warning[-Wanalyzer-malloc-leak]: leak of ‘newColors’
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:993:1: enter_function: entry to ‘tmuxMonitorCallback’
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1008:8: branch_false: following ‘false’ branch...
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1020:18: branch_false: ...to here
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1020:42: branch_true: following ‘true’ branch...
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1021:11: branch_true: ...to here
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1021:10: branch_false: following ‘false’ branch...
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1024:7: branch_false: ...to here
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1025:7: call_function: calling ‘parseTmuxOutput’ from ‘tmuxMonitorCallback’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:393:1: warning[-Wanalyzer-malloc-leak]: leak of ‘newContent’
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:993:1: enter_function: entry to ‘tmuxMonitorCallback’
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1008:8: branch_false: following ‘false’ branch...
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1020:18: branch_false: ...to here
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1020:42: branch_true: following ‘true’ branch...
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1021:11: branch_true: ...to here
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1021:10: branch_false: following ‘false’ branch...
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1024:7: branch_false: ...to here
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:1025:7: call_function: calling ‘parseTmuxOutput’ from ‘tmuxMonitorCallback’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:478:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipeStdout[0]’
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:407:1: enter_function: entry to ‘construct_TmuxScreen’
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:420:8: call_function: calling ‘startTmuxControlMode’ from ‘construct_TmuxScreen’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:478:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipeStdout[1]’
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:407:1: enter_function: entry to ‘construct_TmuxScreen’
brltty-6.9.1/python3/Drivers/Screen/Tmux/screen.c:420:8: call_function: calling ‘startTmuxControlMode’ from ‘construct_TmuxScreen’
Error: CPPCHECK_WARNING (CWE-457): [#def39]
brltty-6.9.1/python3/Programs/brltty-cldr.c:114: error[uninitvar]: Uninitialized variable: character
Error: CPPCHECK_WARNING (CWE-457): [#def40]
brltty-6.9.1/python3/Programs/brltty-cmdref.c:231: warning[uninitvar]: Uninitialized variables: commands.name, commands.description, commands.code, commands.isToggle, commands.isMotion, commands.isRow, commands.isVertical, commands.isHorizontal, commands.isPanning, commands.isInput, commands.isCharacter, commands.isBraille, commands.isKeyboard, commands.isRouting, commands.isColumn, commands.isOffset, commands.isRange
Error: CPPCHECK_WARNING (CWE-476): [#def41]
brltty-6.9.1/python3/Programs/cmdargs.c:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: arguments
Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
brltty-6.9.1/python3/Programs/cmdargs.c:36:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘arguments’
brltty-6.9.1/python3/Programs/cmdargs.c:35:15: acquire_memory: this call could return NULL
brltty-6.9.1/python3/Programs/cmdargs.c:36:3: danger: ‘arguments’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def43]
brltty-6.9.1/python3/Programs/cmdput.c:203:9: warning[-Wanalyzer-null-argument]: use of NULL ‘paragraphText’ where non-null expected
brltty-6.9.1/python3/Programs/cmdput.c:173:10: branch_true: following ‘true’ branch...
brltty-6.9.1/python3/Programs/cmdput.c:174:33: branch_true: ...to here
brltty-6.9.1/python3/Programs/cmdput.c:179:10: branch_false: following ‘false’ branch (when ‘text’ is non-NULL)...
brltty-6.9.1/python3/Programs/cmdput.c:180:14: branch_false: ...to here
brltty-6.9.1/python3/Programs/cmdput.c:182:10: branch_true: following ‘true’ branch...
brltty-6.9.1/python3/Programs/cmdput.c:187:12: branch_false: following ‘false’ branch (when ‘paragraphLength == 0’)...
brltty-6.9.1/python3/Programs/cmdput.c:189:12: branch_false: ...to here
brltty-6.9.1/python3/Programs/cmdput.c:189:12: branch_false: following ‘false’ branch (when ‘paragraphSize >= newLength’)...
brltty-6.9.1/python3/Programs/cmdput.c:202:12: branch_false: ...to here
brltty-6.9.1/python3/Programs/cmdput.c:202:12: branch_false: following ‘false’ branch (when ‘paragraphLength == 0’)...
brltty-6.9.1/python3/Programs/cmdput.c:203:16: branch_false: ...to here
brltty-6.9.1/python3/Programs/cmdput.c:203:16: release_memory: ‘paragraphText’ is NULL
brltty-6.9.1/python3/Programs/cmdput.c:203:9: danger: argument 1 (‘paragraphText + paragraphLength’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-457): [#def44]
brltty-6.9.1/python3/Programs/scr.c:230:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘candidates[<unknown>]’
brltty-6.9.1/python3/Programs/scr.c:196:6: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
brltty-6.9.1/python3/Programs/scr.c:200:7: branch_false: ...to here
brltty-6.9.1/python3/Programs/scr.c:200:6: branch_true: following ‘true’ branch...
brltty-6.9.1/python3/Programs/scr.c:200:6: branch_true: ...to here
brltty-6.9.1/python3/Programs/scr.c:207:30: branch_true: following ‘true’ branch (when ‘i < count’)...
brltty-6.9.1/python3/Programs/scr.c:208:38: branch_true: ...to here
brltty-6.9.1/python3/Programs/scr.c:212:23: branch_false: following ‘false’ branch (when ‘discardedCount <= j’)...
brltty-6.9.1/python3/Programs/scr.c:218:10: branch_false: ...to here
brltty-6.9.1/python3/Programs/scr.c:218:10: branch_false: following ‘false’ branch (when ‘found == 0’)...
brltty-6.9.1/python3/Programs/scr.c:218:10: branch_false: ...to here
brltty-6.9.1/python3/Programs/scr.c:222:23: branch_false: following ‘false’ branch (when ‘candidateCount <= j’)...
brltty-6.9.1/python3/Programs/scr.c:240:10: branch_false: ...to here
brltty-6.9.1/python3/Programs/scr.c:240:10: branch_true: following ‘true’ branch (when ‘candidateCount <= 15’)...
brltty-6.9.1/python3/Programs/scr.c:241:9: branch_true: ...to here
brltty-6.9.1/python3/Programs/scr.c:207:30: branch_true: following ‘true’ branch (when ‘i < count’)...
brltty-6.9.1/python3/Programs/scr.c:208:38: branch_true: ...to here
brltty-6.9.1/python3/Programs/scr.c:212:23: branch_false: following ‘false’ branch (when ‘discardedCount <= j’)...
brltty-6.9.1/python3/Programs/scr.c:218:10: branch_false: ...to here
brltty-6.9.1/python3/Programs/scr.c:218:10: branch_false: following ‘false’ branch (when ‘found == 0’)...
brltty-6.9.1/python3/Programs/scr.c:218:10: branch_false: ...to here
brltty-6.9.1/python3/Programs/scr.c:222:23: branch_true: following ‘true’ branch (when ‘candidateCount > j’)...
brltty-6.9.1/python3/Programs/scr.c:223:38: branch_true: ...to here
brltty-6.9.1/python3/Programs/scr.c:223:12: branch_true: following ‘true’ branch...
brltty-6.9.1/python3/Programs/scr.c:225:14: branch_true: ...to here
brltty-6.9.1/python3/Programs/scr.c:225:14: branch_true: following ‘true’ branch (when ‘discardedCount <= 15’)...
brltty-6.9.1/python3/Programs/scr.c:226:23: branch_true: ...to here
brltty-6.9.1/python3/Programs/scr.c:229:27: branch_true: following ‘true’ branch...
brltty-6.9.1/python3/Programs/scr.c:230:40: branch_true: ...to here
brltty-6.9.1/python3/Programs/scr.c:230:13: danger: use of uninitialized value ‘candidates[<unknown>]’ here
Scan Properties
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-103.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | brltty-6.8-8.fc44 |
| diffbase-store-results-to | /tmp/tmp51slrzrj/brltty-6.8-8.fc44.tar.xz |
| diffbase-time-created | 2026-08-03 13:31:30 |
| diffbase-time-finished | 2026-08-03 13:43:30 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp51slrzrj/brltty-6.8-8.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp51slrzrj/brltty-6.8-8.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-103.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | brltty-6.9.1-8.fc45 |
| store-results-to | /tmp/tmp1grci1vk/brltty-6.9.1-8.fc45.tar.xz |
| time-created | 2026-08-03 13:43:50 |
| time-finished | 2026-08-03 13:54:12 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp1grci1vk/brltty-6.9.1-8.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp1grci1vk/brltty-6.9.1-8.fc45.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |