brltty-6.7-10.fc43

List of Findings

Error: SHELLCHECK_WARNING: [#def1]
/usr/bin/brltty-config.sh:26:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   24|   
#   25|   brlttyConfig_defineVariable() {
#   26|->    local name="${1}"
#   27|      local value="${2}"
#   28|   

Error: SHELLCHECK_WARNING: [#def2]
/usr/bin/brltty-config.sh:27:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   25|   brlttyConfig_defineVariable() {
#   26|      local name="${1}"
#   27|->    local value="${2}"
#   28|   
#   29|      while true

Error: SHELLCHECK_WARNING (CWE-457): [#def3]
/usr/bin/brltty-config.sh:32:10: warning[SC2154]: new is referenced but not assigned.
#   30|      do
#   31|         eval local 'new="'${value}'"'
#   32|->       [ "${new}" != "${value}" ] || break
#   33|         value="${new}"
#   34|      done

Error: SHELLCHECK_WARNING: [#def4]
/usr/bin/brltty-config.sh:40:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   38|   
#   39|   brlttyConfig_defineVariables() {
#   40|->    local prefix='/usr'
#   41|      local sysconfdir='/etc'
#   42|      local datarootdir='${prefix}/share'

Error: SHELLCHECK_WARNING: [#def5]
/usr/bin/brltty-config.sh:41:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   39|   brlttyConfig_defineVariables() {
#   40|      local prefix='/usr'
#   41|->    local sysconfdir='/etc'
#   42|      local datarootdir='${prefix}/share'
#   43|      local datadir='/usr/share'

Error: SHELLCHECK_WARNING: [#def6]
/usr/bin/brltty-config.sh:42:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   40|      local prefix='/usr'
#   41|      local sysconfdir='/etc'
#   42|->    local datarootdir='${prefix}/share'
#   43|      local datadir='/usr/share'
#   44|      local sharedstatedir='/var/lib'

Error: SHELLCHECK_WARNING: [#def7]
/usr/bin/brltty-config.sh:43:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   41|      local sysconfdir='/etc'
#   42|      local datarootdir='${prefix}/share'
#   43|->    local datadir='/usr/share'
#   44|      local sharedstatedir='/var/lib'
#   45|      local localstatedir='/var'

Error: SHELLCHECK_WARNING: [#def8]
/usr/bin/brltty-config.sh:44:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   42|      local datarootdir='${prefix}/share'
#   43|      local datadir='/usr/share'
#   44|->    local sharedstatedir='/var/lib'
#   45|      local localstatedir='/var'
#   46|      local includedir='/usr/include'

Error: SHELLCHECK_WARNING: [#def9]
/usr/bin/brltty-config.sh:45:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   43|      local datadir='/usr/share'
#   44|      local sharedstatedir='/var/lib'
#   45|->    local localstatedir='/var'
#   46|      local includedir='/usr/include'
#   47|      local oldincludedir='/usr/include'

Error: SHELLCHECK_WARNING: [#def10]
/usr/bin/brltty-config.sh:46:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   44|      local sharedstatedir='/var/lib'
#   45|      local localstatedir='/var'
#   46|->    local includedir='/usr/include'
#   47|      local oldincludedir='/usr/include'
#   48|   

Error: SHELLCHECK_WARNING: [#def11]
/usr/bin/brltty-config.sh:47:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   45|      local localstatedir='/var'
#   46|      local includedir='/usr/include'
#   47|->    local oldincludedir='/usr/include'
#   48|   
#   49|      local exec_prefix='/usr'

Error: SHELLCHECK_WARNING: [#def12]
/usr/bin/brltty-config.sh:49:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   47|      local oldincludedir='/usr/include'
#   48|   
#   49|->    local exec_prefix='/usr'
#   50|      local bindir='/usr/bin'
#   51|      local sbindir='/usr/bin'

Error: SHELLCHECK_WARNING: [#def13]
/usr/bin/brltty-config.sh:50:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   48|   
#   49|      local exec_prefix='/usr'
#   50|->    local bindir='/usr/bin'
#   51|      local sbindir='/usr/bin'
#   52|      local libdir='/usr/lib64'

Error: SHELLCHECK_WARNING: [#def14]
/usr/bin/brltty-config.sh:51:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   49|      local exec_prefix='/usr'
#   50|      local bindir='/usr/bin'
#   51|->    local sbindir='/usr/bin'
#   52|      local libdir='/usr/lib64'
#   53|      local libexecdir='/usr/libexec'

Error: SHELLCHECK_WARNING: [#def15]
/usr/bin/brltty-config.sh:52:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   50|      local bindir='/usr/bin'
#   51|      local sbindir='/usr/bin'
#   52|->    local libdir='/usr/lib64'
#   53|      local libexecdir='/usr/libexec'
#   54|   

Error: SHELLCHECK_WARNING: [#def16]
/usr/bin/brltty-config.sh:53:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   51|      local sbindir='/usr/bin'
#   52|      local libdir='/usr/lib64'
#   53|->    local libexecdir='/usr/libexec'
#   54|   
#   55|      local localedir='${datarootdir}/locale'

Error: SHELLCHECK_WARNING: [#def17]
/usr/bin/brltty-config.sh:55:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   53|      local libexecdir='/usr/libexec'
#   54|   
#   55|->    local localedir='${datarootdir}/locale'
#   56|      local mandir='/usr/share/man'
#   57|      local docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'

Error: SHELLCHECK_WARNING: [#def18]
/usr/bin/brltty-config.sh:56:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   54|   
#   55|      local localedir='${datarootdir}/locale'
#   56|->    local mandir='/usr/share/man'
#   57|      local docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
#   58|      local infodir='/usr/share/info'

Error: SHELLCHECK_WARNING: [#def19]
/usr/bin/brltty-config.sh:57:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   55|      local localedir='${datarootdir}/locale'
#   56|      local mandir='/usr/share/man'
#   57|->    local docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
#   58|      local infodir='/usr/share/info'
#   59|      local htmldir='${docdir}'

Error: SHELLCHECK_WARNING: [#def20]
/usr/bin/brltty-config.sh:58:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   56|      local mandir='/usr/share/man'
#   57|      local docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
#   58|->    local infodir='/usr/share/info'
#   59|      local htmldir='${docdir}'
#   60|      local pdfdir='${docdir}'

Error: SHELLCHECK_WARNING: [#def21]
/usr/bin/brltty-config.sh:59:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   57|      local docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
#   58|      local infodir='/usr/share/info'
#   59|->    local htmldir='${docdir}'
#   60|      local pdfdir='${docdir}'
#   61|      local psdir='${docdir}'

Error: SHELLCHECK_WARNING: [#def22]
/usr/bin/brltty-config.sh:60:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   58|      local infodir='/usr/share/info'
#   59|      local htmldir='${docdir}'
#   60|->    local pdfdir='${docdir}'
#   61|      local psdir='${docdir}'
#   62|      local dvidir='${docdir}'

Error: SHELLCHECK_WARNING: [#def23]
/usr/bin/brltty-config.sh:61:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   59|      local htmldir='${docdir}'
#   60|      local pdfdir='${docdir}'
#   61|->    local psdir='${docdir}'
#   62|      local dvidir='${docdir}'
#   63|   

Error: SHELLCHECK_WARNING: [#def24]
/usr/bin/brltty-config.sh:62:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   60|      local pdfdir='${docdir}'
#   61|      local psdir='${docdir}'
#   62|->    local dvidir='${docdir}'
#   63|   
#   64|      local PACKAGE_TARNAME='brltty'

Error: SHELLCHECK_WARNING: [#def25]
/usr/bin/brltty-config.sh:64:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   62|      local dvidir='${docdir}'
#   63|   
#   64|->    local PACKAGE_TARNAME='brltty'
#   65|      local PACKAGE_NAME='BRLTTY'
#   66|      local PACKAGE_VERSION='6.7'

Error: SHELLCHECK_WARNING: [#def26]
/usr/bin/brltty-config.sh:65:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   63|   
#   64|      local PACKAGE_TARNAME='brltty'
#   65|->    local PACKAGE_NAME='BRLTTY'
#   66|      local PACKAGE_VERSION='6.7'
#   67|      local PACKAGE_URL='https://brltty.app/'

Error: SHELLCHECK_WARNING: [#def27]
/usr/bin/brltty-config.sh:66:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   64|      local PACKAGE_TARNAME='brltty'
#   65|      local PACKAGE_NAME='BRLTTY'
#   66|->    local PACKAGE_VERSION='6.7'
#   67|      local PACKAGE_URL='https://brltty.app/'
#   68|      local PACKAGE_BUGREPORT='BRLTTY@brltty.app'

Error: SHELLCHECK_WARNING: [#def28]
/usr/bin/brltty-config.sh:67:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   65|      local PACKAGE_NAME='BRLTTY'
#   66|      local PACKAGE_VERSION='6.7'
#   67|->    local PACKAGE_URL='https://brltty.app/'
#   68|      local PACKAGE_BUGREPORT='BRLTTY@brltty.app'
#   69|   

Error: SHELLCHECK_WARNING: [#def29]
/usr/bin/brltty-config.sh:68:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   66|      local PACKAGE_VERSION='6.7'
#   67|      local PACKAGE_URL='https://brltty.app/'
#   68|->    local PACKAGE_BUGREPORT='BRLTTY@brltty.app'
#   69|   
#   70|      local execute_root=''

Error: SHELLCHECK_WARNING: [#def30]
/usr/bin/brltty-config.sh:70:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   68|      local PACKAGE_BUGREPORT='BRLTTY@brltty.app'
#   69|   
#   70|->    local execute_root=''
#   71|      local program_directory='/usr/bin'
#   72|      local drivers_directory='/usr/lib64/brltty'

Error: SHELLCHECK_WARNING: [#def31]
/usr/bin/brltty-config.sh:71:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   69|   
#   70|      local execute_root=''
#   71|->    local program_directory='/usr/bin'
#   72|      local drivers_directory='/usr/lib64/brltty'
#   73|      local tables_directory='/etc/brltty'

Error: SHELLCHECK_WARNING: [#def32]
/usr/bin/brltty-config.sh:72:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   70|      local execute_root=''
#   71|      local program_directory='/usr/bin'
#   72|->    local drivers_directory='/usr/lib64/brltty'
#   73|      local tables_directory='/etc/brltty'
#   74|      local updatable_directory='/var/lib/brltty'

Error: SHELLCHECK_WARNING: [#def33]
/usr/bin/brltty-config.sh:73:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   71|      local program_directory='/usr/bin'
#   72|      local drivers_directory='/usr/lib64/brltty'
#   73|->    local tables_directory='/etc/brltty'
#   74|      local updatable_directory='/var/lib/brltty'
#   75|      local writable_directory='/run/brltty'

Error: SHELLCHECK_WARNING: [#def34]
/usr/bin/brltty-config.sh:74:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   72|      local drivers_directory='/usr/lib64/brltty'
#   73|      local tables_directory='/etc/brltty'
#   74|->    local updatable_directory='/var/lib/brltty'
#   75|      local writable_directory='/run/brltty'
#   76|      local manpage_directory='/usr/share/man'

Error: SHELLCHECK_WARNING: [#def35]
/usr/bin/brltty-config.sh:75:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   73|      local tables_directory='/etc/brltty'
#   74|      local updatable_directory='/var/lib/brltty'
#   75|->    local writable_directory='/run/brltty'
#   76|      local manpage_directory='/usr/share/man'
#   77|      local include_directory='/usr/include/brltty'

Error: SHELLCHECK_WARNING: [#def36]
/usr/bin/brltty-config.sh:76:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   74|      local updatable_directory='/var/lib/brltty'
#   75|      local writable_directory='/run/brltty'
#   76|->    local manpage_directory='/usr/share/man'
#   77|      local include_directory='/usr/include/brltty'
#   78|   

Error: SHELLCHECK_WARNING: [#def37]
/usr/bin/brltty-config.sh:77:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   75|      local writable_directory='/run/brltty'
#   76|      local manpage_directory='/usr/share/man'
#   77|->    local include_directory='/usr/include/brltty'
#   78|   
#   79|      local privilege_parameters=''

Error: SHELLCHECK_WARNING: [#def38]
/usr/bin/brltty-config.sh:79:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   77|      local include_directory='/usr/include/brltty'
#   78|   
#   79|->    local privilege_parameters=''
#   80|   
#   81|      local api_version='0.8'

Error: SHELLCHECK_WARNING: [#def39]
/usr/bin/brltty-config.sh:81:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   79|      local privilege_parameters=''
#   80|   
#   81|->    local api_version='0.8'
#   82|      local api_release='0.8.6'
#   83|      local api_authkeyfile='brlapi.key'

Error: SHELLCHECK_WARNING: [#def40]
/usr/bin/brltty-config.sh:82:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   80|   
#   81|      local api_version='0.8'
#   82|->    local api_release='0.8.6'
#   83|      local api_authkeyfile='brlapi.key'
#   84|   

Error: SHELLCHECK_WARNING: [#def41]
/usr/bin/brltty-config.sh:83:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   81|      local api_version='0.8'
#   82|      local api_release='0.8.6'
#   83|->    local api_authkeyfile='brlapi.key'
#   84|   
#   85|      brlttyConfig_defineVariable BRLTTY_PREFIX "${prefix}"

Error: SHELLCHECK_WARNING (CWE-457): [#def42]
/usr/bin/brltty-genkey:24:4: warning[SC2154]: programDirectory is referenced but not assigned.
#   22|   
#   23|   . "`dirname "${0}"`/brltty-prologue.sh"
#   24|-> . "${programDirectory}/brltty-config.sh"
#   25|   defaultKeyFile="${BRLTTY_EXECUTE_ROOT}${BRLAPI_KEY_FILE}"
#   26|   

Error: SHELLCHECK_WARNING (CWE-477): [#def43]
/usr/bin/brltty-genkey:50:21: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   48|   for device in "/dev/urandom" "/dev/random"
#   49|   do
#   50|->    [ -c "${device}" -a -r "${device}" ] && {
#   51|         logNote "trying ${device}"
#   52|         try dd if="${device}" of="${keyFile}" bs=32 count=1

Error: SHELLCHECK_WARNING: [#def44]
/usr/bin/brltty-genkey:57:6: warning[SC3028]: In POSIX sh, RANDOM is undefined.
#   55|   
#   56|   logNote "trying \$RANDOM"
#   57|-> key="${RANDOM}"
#   58|   [ -n "${key}" ] && try echo >"${keyFile}" "${key}"
#   59|   

Error: SHELLCHECK_WARNING (CWE-398): [#def45]
/usr/bin/brltty-mkuser:41:7: error[SC1073]: Couldn't parse this parameter expansion. Fix to allow more checks.
#   39|   cat <<END_OF_PROGRAM_USAGE_NOTES
#   40|   When creating a new user, these options have the following defaults:
#   41|->   -d  ${defaultHomeDirectory:-the home directory isn't defined}
#   42|     -g  a new group with the same name as the user
#   43|     -i  ${defaultUserInformation}

Error: SHELLCHECK_WARNING (CWE-398): [#def46]
/usr/bin/brltty-mkuser:45:19: warning[SC1011]: This apostrophe terminated the single quoted string!
#   43|     -i  ${defaultUserInformation}
#   44|     -l  ${defaultLoginShell}
#   45|-> These defaults don't apply when making changes to an existing user.
#   46|   END_OF_PROGRAM_USAGE_NOTES
#   47|   }

Error: SHELLCHECK_WARNING (CWE-398): [#def47]
/usr/bin/brltty-mkuser:46:1: error[SC1072]:  Fix any mentioned problems and try again.
#   44|     -l  ${defaultLoginShell}
#   45|   These defaults don't apply when making changes to an existing user.
#   46|-> END_OF_PROGRAM_USAGE_NOTES
#   47|   }
#   48|   

Error: SHELLCHECK_WARNING (CWE-571): [#def48]
/usr/bin/brltty-prologue.bash:126:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  124|      [ -n "${toPath}" ] || toPath="."
#  125|      resolveDirectory "${toPath}" toPath
#  126|->    local fromPath="$(pwd)"
#  127|   
#  128|      [ "${fromPath%/}" = "${fromPath}" ] && fromPath+="/"

Error: SHELLCHECK_WARNING (CWE-477): [#def49]
/usr/bin/brltty-prologue.bash:316:118: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  314|      "${persistentProgramSettingsChanged}" && {
#  315|         [ -n "${settingsFile}" ] || {
#  316|->          findProgramConfigurationFile settingsFile "${persistentProgramSettingsExtension}" && [ -f "${settingsFile}" -a -w "${settingsFile}" ] || {
#  317|               settingsFile=""
#  318|               local prefix

Error: SHELLCHECK_WARNING (CWE-563): [#def50]
/usr/bin/brltty-prologue.sh:22:10: warning[SC2034]: initialDirectory appears unused. Verify use (or export if used externally).
#   20|   testMode=false
#   21|   
#   22|-> readonly initialDirectory="$(pwd)"
#   23|   readonly programName="$(basename "${0}")"
#   24|   

Error: SHELLCHECK_WARNING (CWE-571): [#def51]
/usr/bin/brltty-prologue.sh:22:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   20|   testMode=false
#   21|   
#   22|-> readonly initialDirectory="$(pwd)"
#   23|   readonly programName="$(basename "${0}")"
#   24|   

Error: SHELLCHECK_WARNING (CWE-571): [#def52]
/usr/bin/brltty-prologue.sh:23:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   21|   
#   22|   readonly initialDirectory="$(pwd)"
#   23|-> readonly programName="$(basename "${0}")"
#   24|   
#   25|   programMessage() {

Error: SHELLCHECK_WARNING: [#def53]
/usr/bin/brltty-prologue.sh:26:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   24|   
#   25|   programMessage() {
#   26|->    local message="${1}"
#   27|   
#   28|      [ -z "${message}" ] || echo >&2 "${programName}: ${message}"

Error: SHELLCHECK_WARNING: [#def54]
/usr/bin/brltty-prologue.sh:45:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   43|   
#   44|   defineEnumeration() {
#   45|->    local prefix="${1}"
#   46|      shift 1
#   47|   

Error: SHELLCHECK_WARNING: [#def55]
/usr/bin/brltty-prologue.sh:48:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   46|      shift 1
#   47|   
#   48|->    local name
#   49|      local value=1
#   50|   

Error: SHELLCHECK_WARNING: [#def56]
/usr/bin/brltty-prologue.sh:49:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   47|   
#   48|      local name
#   49|->    local value=1
#   50|   
#   51|      for name

Error: SHELLCHECK_WARNING: [#def57]
/usr/bin/brltty-prologue.sh:53:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   51|      for name
#   52|      do
#   53|->       local variable="${prefix}${name}"
#   54|         readonly "${variable}"="${value}"
#   55|         value=$((value + 1))

Error: SHELLCHECK_WARNING (CWE-457): [#def58]
/usr/bin/brltty-prologue.sh:60:20: warning[SC2154]: programLogLevel_task is referenced but not assigned.
#   58|   
#   59|   defineEnumeration programLogLevel_ error warning notice task note detail
#   60|-> programLogLevel=$((${programLogLevel_task}))
#   61|   
#   62|   logMessage() {

Error: SHELLCHECK_WARNING: [#def59]
/usr/bin/brltty-prologue.sh:63:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   61|   
#   62|   logMessage() {
#   63|->    local level="${1}"
#   64|      local message="${2}"
#   65|   

Error: SHELLCHECK_WARNING: [#def60]
/usr/bin/brltty-prologue.sh:64:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   62|   logMessage() {
#   63|      local level="${1}"
#   64|->    local message="${2}"
#   65|   
#   66|      local variable="programLogLevel_${level}"

Error: SHELLCHECK_WARNING: [#def61]
/usr/bin/brltty-prologue.sh:66:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   64|      local message="${2}"
#   65|   
#   66|->    local variable="programLogLevel_${level}"
#   67|      local value=$((${variable}))
#   68|   

Error: SHELLCHECK_WARNING: [#def62]
/usr/bin/brltty-prologue.sh:67:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   65|   
#   66|      local variable="programLogLevel_${level}"
#   67|->    local value=$((${variable}))
#   68|   
#   69|      [ "${value}" -gt 0 ] || programMessage "unknown log level: ${level}"

Error: SHELLCHECK_WARNING (CWE-156): [#def63]
/usr/bin/brltty-prologue.sh:104:14: warning[SC2046]: Quote this to prevent word splitting.
#  102|      while [ "${programTerminationCommandCount}" -gt 0 ]
#  103|      do
#  104|->       set -- $(getVariable "programTerminationCommand${programTerminationCommandCount}")
#  105|         programTerminationCommandCount=$((programTerminationCommandCount - 1))
#  106|   

Error: SHELLCHECK_WARNING: [#def64]
/usr/bin/brltty-prologue.sh:107:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  105|         programTerminationCommandCount=$((programTerminationCommandCount - 1))
#  106|   
#  107|->       local process="${1}"
#  108|         local directory="${2}"
#  109|         shift 2

Error: SHELLCHECK_WARNING: [#def65]
/usr/bin/brltty-prologue.sh:108:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  106|   
#  107|         local process="${1}"
#  108|->       local directory="${2}"
#  109|         shift 2
#  110|   

Error: SHELLCHECK_WARNING (CWE-252): [#def66]
/usr/bin/brltty-prologue.sh:112:10: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#  110|   
#  111|         [ "${process}" = "${$}" ] && {
#  112|->          cd "${directory}"
#  113|            "${@}"
#  114|         }

Error: SHELLCHECK_WARNING: [#def67]
/usr/bin/brltty-prologue.sh:119:88: warning[SC3049]: In POSIX sh, using lower/mixed case for signal names is undefined.
#  117|   
#  118|   pushProgramTerminationCommand() {
#  119|->    [ "${programTerminationCommandCount}" -gt 0 ] || trap runProgramTerminationCommands exit
#  120|      setVariable "programTerminationCommand$((programTerminationCommandCount += 1))" "${$} $(pwd) ${*}"
#  121|   }

Error: SHELLCHECK_WARNING: [#def68]
/usr/bin/brltty-prologue.sh:124:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  122|   
#  123|   needTemporaryDirectory() {
#  124|->    local variable="${1:-temporaryDirectory}"
#  125|   
#  126|      local _directory

Error: SHELLCHECK_WARNING: [#def69]
/usr/bin/brltty-prologue.sh:126:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  124|      local variable="${1:-temporaryDirectory}"
#  125|   
#  126|->    local _directory
#  127|      getVariable "${variable}" _directory
#  128|   

Error: SHELLCHECK_WARNING (CWE-477): [#def70]
/usr/bin/brltty-prologue.sh:130:24: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  128|   
#  129|      [ -n "${_directory}" ] || {
#  130|->       [ -n "${TMPDIR}" -a -d "${TMPDIR}" -a -r "${TMPDIR}" -a -w "${TMPDIR}" -a -x "${TMPDIR}" ] || export TMPDIR="/tmp"
#  131|         _directory="$(mktemp -d "${TMPDIR}/${programName}.$(date +"%Y%m%d-%H%M%S").XXXXXX")"
#  132|         pushProgramTerminationCommand rm -f -r -- "${_directory}"

Error: SHELLCHECK_WARNING (CWE-477): [#def71]
/usr/bin/brltty-prologue.sh:130:42: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  128|   
#  129|      [ -n "${_directory}" ] || {
#  130|->       [ -n "${TMPDIR}" -a -d "${TMPDIR}" -a -r "${TMPDIR}" -a -w "${TMPDIR}" -a -x "${TMPDIR}" ] || export TMPDIR="/tmp"
#  131|         _directory="$(mktemp -d "${TMPDIR}/${programName}.$(date +"%Y%m%d-%H%M%S").XXXXXX")"
#  132|         pushProgramTerminationCommand rm -f -r -- "${_directory}"

Error: SHELLCHECK_WARNING (CWE-477): [#def72]
/usr/bin/brltty-prologue.sh:130:60: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  128|   
#  129|      [ -n "${_directory}" ] || {
#  130|->       [ -n "${TMPDIR}" -a -d "${TMPDIR}" -a -r "${TMPDIR}" -a -w "${TMPDIR}" -a -x "${TMPDIR}" ] || export TMPDIR="/tmp"
#  131|         _directory="$(mktemp -d "${TMPDIR}/${programName}.$(date +"%Y%m%d-%H%M%S").XXXXXX")"
#  132|         pushProgramTerminationCommand rm -f -r -- "${_directory}"

Error: SHELLCHECK_WARNING (CWE-477): [#def73]
/usr/bin/brltty-prologue.sh:130:78: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  128|   
#  129|      [ -n "${_directory}" ] || {
#  130|->       [ -n "${TMPDIR}" -a -d "${TMPDIR}" -a -r "${TMPDIR}" -a -w "${TMPDIR}" -a -x "${TMPDIR}" ] || export TMPDIR="/tmp"
#  131|         _directory="$(mktemp -d "${TMPDIR}/${programName}.$(date +"%Y%m%d-%H%M%S").XXXXXX")"
#  132|         pushProgramTerminationCommand rm -f -r -- "${_directory}"

Error: SHELLCHECK_WARNING (CWE-252): [#def74]
/usr/bin/brltty-prologue.sh:133:7: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#  131|         _directory="$(mktemp -d "${TMPDIR}/${programName}.$(date +"%Y%m%d-%H%M%S").XXXXXX")"
#  132|         pushProgramTerminationCommand rm -f -r -- "${_directory}"
#  133|->       cd "${_directory}"
#  134|         setVariable "${variable}" "${_directory}"
#  135|      }

Error: SHELLCHECK_WARNING: [#def75]
/usr/bin/brltty-prologue.sh:139:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  137|   
#  138|   resolveDirectory() {
#  139|->    local path="${1}"
#  140|      local variable="${2}"
#  141|      local absolute="$(cd "${path}" && pwd)"

Error: SHELLCHECK_WARNING: [#def76]
/usr/bin/brltty-prologue.sh:140:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  138|   resolveDirectory() {
#  139|      local path="${1}"
#  140|->    local variable="${2}"
#  141|      local absolute="$(cd "${path}" && pwd)"
#  142|   

Error: SHELLCHECK_WARNING: [#def77]
/usr/bin/brltty-prologue.sh:141:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  139|      local path="${1}"
#  140|      local variable="${2}"
#  141|->    local absolute="$(cd "${path}" && pwd)"
#  142|   
#  143|      if [ -n "${variable}" ]

Error: SHELLCHECK_WARNING (CWE-571): [#def78]
/usr/bin/brltty-prologue.sh:141:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  139|      local path="${1}"
#  140|      local variable="${2}"
#  141|->    local absolute="$(cd "${path}" && pwd)"
#  142|   
#  143|      if [ -n "${variable}" ]

Error: SHELLCHECK_WARNING (CWE-571): [#def79]
/usr/bin/brltty-prologue.sh:152:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  150|   
#  151|   programDirectory="$(dirname "${0}")"
#  152|-> readonly programDirectory="$(resolveDirectory "${programDirectory}")"
#  153|   
#  154|   parseParameterString() {

Error: SHELLCHECK_WARNING: [#def80]
/usr/bin/brltty-prologue.sh:155:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  153|   
#  154|   parseParameterString() {
#  155|->    local valuesArray="${1}"
#  156|      local parameters="${2}"
#  157|      local code="${3}"

Error: SHELLCHECK_WARNING: [#def81]
/usr/bin/brltty-prologue.sh:156:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  154|   parseParameterString() {
#  155|      local valuesArray="${1}"
#  156|->    local parameters="${2}"
#  157|      local code="${3}"
#  158|   

Error: SHELLCHECK_WARNING: [#def82]
/usr/bin/brltty-prologue.sh:157:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  155|      local valuesArray="${1}"
#  156|      local parameters="${2}"
#  157|->    local code="${3}"
#  158|   
#  159|      set -- ${parameters//,/ }

Error: SHELLCHECK_WARNING: [#def83]
/usr/bin/brltty-prologue.sh:159:11: warning[SC3060]: In POSIX sh, string replacement is undefined.
#  157|      local code="${3}"
#  158|   
#  159|->    set -- ${parameters//,/ }
#  160|      local parameter
#  161|   

Error: SHELLCHECK_WARNING: [#def84]
/usr/bin/brltty-prologue.sh:160:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  158|   
#  159|      set -- ${parameters//,/ }
#  160|->    local parameter
#  161|   
#  162|      for parameter

Error: SHELLCHECK_WARNING: [#def85]
/usr/bin/brltty-prologue.sh:164:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  162|      for parameter
#  163|      do
#  164|->       local name="${parameter%%=*}"
#  165|         [ "${name}" = "${parameter}" ] && continue
#  166|         [ -n "${name}" ] || continue

Error: SHELLCHECK_WARNING: [#def86]
/usr/bin/brltty-prologue.sh:167:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  165|         [ "${name}" = "${parameter}" ] && continue
#  166|         [ -n "${name}" ] || continue
#  167|->       local value="${parameter#*=}"
#  168|   
#  169|         local qualifier="${name%%:*}"

Error: SHELLCHECK_WARNING: [#def87]
/usr/bin/brltty-prologue.sh:169:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  167|         local value="${parameter#*=}"
#  168|   
#  169|->       local qualifier="${name%%:*}"
#  170|         [ "${qualifier}" = "${name}" ] || {
#  171|            [ -n "${qualifier}" ] || continue

Error: SHELLCHECK_WARNING: [#def88]
/usr/bin/brltty-prologue.sh:176:35: warning[SC3059]: In POSIX sh, case modification is undefined.
#  174|         }
#  175|   
#  176|->       setVariable "${valuesArray}[${name^^*}]" "${value}"
#  177|      done
#  178|   }

Error: SHELLCHECK_WARNING: [#def89]
/usr/bin/brltty-prologue.sh:181:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  179|   
#  180|   stringHead() {
#  181|->    local string="${1}"
#  182|      local length="${2}"
#  183|   

Error: SHELLCHECK_WARNING: [#def90]
/usr/bin/brltty-prologue.sh:182:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  180|   stringHead() {
#  181|      local string="${1}"
#  182|->    local length="${2}"
#  183|   
#  184|      [ "${length}" -eq 0 ] || expr substr "${string}" 1 "${length}"

Error: SHELLCHECK_WARNING: [#def91]
/usr/bin/brltty-prologue.sh:188:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  186|   
#  187|   stringTail() {
#  188|->    local string="${1}"
#  189|      local start="${2}"
#  190|   

Error: SHELLCHECK_WARNING: [#def92]
/usr/bin/brltty-prologue.sh:189:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  187|   stringTail() {
#  188|      local string="${1}"
#  189|->    local start="${2}"
#  190|   
#  191|      local length=$((${#string} - start))

Error: SHELLCHECK_WARNING: [#def93]
/usr/bin/brltty-prologue.sh:191:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  189|      local start="${2}"
#  190|   
#  191|->    local length=$((${#string} - start))
#  192|      [ "${length}" -eq 0 ] || expr substr "${string}" $((start + 1)) "${length}"
#  193|   }

Error: SHELLCHECK_WARNING: [#def94]
/usr/bin/brltty-prologue.sh:196:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  194|   
#  195|   stringReplace() {
#  196|->    local string="${1}"
#  197|      local pattern="${2}"
#  198|      local replacement="${3}"

Error: SHELLCHECK_WARNING: [#def95]
/usr/bin/brltty-prologue.sh:197:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  195|   stringReplace() {
#  196|      local string="${1}"
#  197|->    local pattern="${2}"
#  198|      local replacement="${3}"
#  199|      local flags="${4}"

Error: SHELLCHECK_WARNING: [#def96]
/usr/bin/brltty-prologue.sh:198:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  196|      local string="${1}"
#  197|      local pattern="${2}"
#  198|->    local replacement="${3}"
#  199|      local flags="${4}"
#  200|   

Error: SHELLCHECK_WARNING: [#def97]
/usr/bin/brltty-prologue.sh:199:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  197|      local pattern="${2}"
#  198|      local replacement="${3}"
#  199|->    local flags="${4}"
#  200|   
#  201|      echo "${string}" | sed -e "s/${pattern}/${replacement}/${flags}"

Error: SHELLCHECK_WARNING: [#def98]
/usr/bin/brltty-prologue.sh:205:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  203|   
#  204|   stringReplaceAll() {
#  205|->    local string="${1}"
#  206|      local pattern="${2}"
#  207|      local replacement="${3}"

Error: SHELLCHECK_WARNING: [#def99]
/usr/bin/brltty-prologue.sh:206:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  204|   stringReplaceAll() {
#  205|      local string="${1}"
#  206|->    local pattern="${2}"
#  207|      local replacement="${3}"
#  208|   

Error: SHELLCHECK_WARNING: [#def100]
/usr/bin/brltty-prologue.sh:207:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  205|      local string="${1}"
#  206|      local pattern="${2}"
#  207|->    local replacement="${3}"
#  208|   
#  209|      stringReplace "${string}" "${pattern}" "${replacement}" "g"

Error: SHELLCHECK_WARNING: [#def101]
/usr/bin/brltty-prologue.sh:213:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  211|   
#  212|   stringQuoted() {
#  213|->    local string="${1}"
#  214|   
#  215|      local pattern="'"

Error: SHELLCHECK_WARNING: [#def102]
/usr/bin/brltty-prologue.sh:215:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  213|      local string="${1}"
#  214|   
#  215|->    local pattern="'"
#  216|      local replacement="'"'"'"'"'"'"'"
#  217|      string="$(stringReplaceAll "${string}" "${pattern}" "${replacement}")"

Error: SHELLCHECK_WARNING: [#def103]
/usr/bin/brltty-prologue.sh:216:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  214|   
#  215|      local pattern="'"
#  216|->    local replacement="'"'"'"'"'"'"'"
#  217|      string="$(stringReplaceAll "${string}" "${pattern}" "${replacement}")"
#  218|      echo "'${string}'"

Error: SHELLCHECK_WARNING: [#def104]
/usr/bin/brltty-prologue.sh:222:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  220|   
#  221|   stringWrapped() {
#  222|->    local string="${1}"
#  223|      local width="${2}"
#  224|   

Error: SHELLCHECK_WARNING: [#def105]
/usr/bin/brltty-prologue.sh:223:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  221|   stringWrapped() {
#  222|      local string="${1}"
#  223|->    local width="${2}"
#  224|   
#  225|      local result=""

Error: SHELLCHECK_WARNING: [#def106]
/usr/bin/brltty-prologue.sh:225:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  223|      local width="${2}"
#  224|   
#  225|->    local result=""
#  226|      local paragraph=""
#  227|   

Error: SHELLCHECK_WARNING: [#def107]
/usr/bin/brltty-prologue.sh:226:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  224|   
#  225|      local result=""
#  226|->    local paragraph=""
#  227|   
#  228|      while true

Error: SHELLCHECK_WARNING: [#def108]
/usr/bin/brltty-prologue.sh:230:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  228|      while true
#  229|      do
#  230|->       local length="$(expr "${string}" : $'[^\n]*\n')"
#  231|         local line
#  232|   

Error: SHELLCHECK_WARNING (CWE-571): [#def109]
/usr/bin/brltty-prologue.sh:230:13: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  228|      while true
#  229|      do
#  230|->       local length="$(expr "${string}" : $'[^\n]*\n')"
#  231|         local line
#  232|   

Error: SHELLCHECK_WARNING: [#def110]
/usr/bin/brltty-prologue.sh:230:42: warning[SC3003]: In POSIX sh, $'..' is undefined.
#  228|      while true
#  229|      do
#  230|->       local length="$(expr "${string}" : $'[^\n]*\n')"
#  231|         local line
#  232|   

Error: SHELLCHECK_WARNING: [#def111]
/usr/bin/brltty-prologue.sh:231:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  229|      do
#  230|         local length="$(expr "${string}" : $'[^\n]*\n')"
#  231|->       local line
#  232|   
#  233|         if [ "${length}" -eq 0 ]

Error: SHELLCHECK_WARNING: [#def112]
/usr/bin/brltty-prologue.sh:250:10: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  248|         while [ "${#paragraph}" -gt "${width}" ]
#  249|         do
#  250|->          local head="$(stringHead "${paragraph}" $((width + 1)))"
#  251|            head="${head% *}"
#  252|   

Error: SHELLCHECK_WARNING (CWE-571): [#def113]
/usr/bin/brltty-prologue.sh:250:16: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  248|         while [ "${#paragraph}" -gt "${width}" ]
#  249|         do
#  250|->          local head="$(stringHead "${paragraph}" $((width + 1)))"
#  251|            head="${head% *}"
#  252|   

Error: SHELLCHECK_WARNING: [#def114]
/usr/bin/brltty-prologue.sh:279:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  277|   
#  278|   syntaxError() {
#  279|->    local message="${1}"
#  280|   
#  281|      logError "${message}"

Error: SHELLCHECK_WARNING: [#def115]
/usr/bin/brltty-prologue.sh:286:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  284|   
#  285|   semanticError() {
#  286|->    local message="${1}"
#  287|   
#  288|      logError "${message}"

Error: SHELLCHECK_WARNING: [#def116]
/usr/bin/brltty-prologue.sh:293:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  291|   
#  292|   internalError() {
#  293|->    local message="${1}"
#  294|   
#  295|      logError "${message}"

Error: SHELLCHECK_WARNING: [#def117]
/usr/bin/brltty-prologue.sh:300:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  298|   
#  299|   findSiblingCommand() {
#  300|->    local resultVariable="${1}"
#  301|      shift 1
#  302|   

Error: SHELLCHECK_WARNING: [#def118]
/usr/bin/brltty-prologue.sh:303:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  301|      shift 1
#  302|   
#  303|->    local command
#  304|      for command in "${@}"
#  305|      do

Error: SHELLCHECK_WARNING: [#def119]
/usr/bin/brltty-prologue.sh:306:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  304|      for command in "${@}"
#  305|      do
#  306|->       local path="${programDirectory}/${command}"
#  307|         [ -f "${path}" ] || continue
#  308|         [ -x "${path}" ] || continue

Error: SHELLCHECK_WARNING: [#def120]
/usr/bin/brltty-prologue.sh:318:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  316|   
#  317|   findHostCommand() {
#  318|->    local pathVariable="${1}"
#  319|      local command="${2}"
#  320|   

Error: SHELLCHECK_WARNING: [#def121]
/usr/bin/brltty-prologue.sh:319:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  317|   findHostCommand() {
#  318|      local pathVariable="${1}"
#  319|->    local command="${2}"
#  320|   
#  321|      local path="$(which "${command}")"

Error: SHELLCHECK_WARNING: [#def122]
/usr/bin/brltty-prologue.sh:321:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  319|      local command="${2}"
#  320|   
#  321|->    local path="$(which "${command}")"
#  322|      [ -n "${path}" ] || return 1
#  323|   

Error: SHELLCHECK_WARNING (CWE-571): [#def123]
/usr/bin/brltty-prologue.sh:321:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  319|      local command="${2}"
#  320|   
#  321|->    local path="$(which "${command}")"
#  322|      [ -n "${path}" ] || return 1
#  323|   

Error: SHELLCHECK_WARNING: [#def124]
/usr/bin/brltty-prologue.sh:329:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  327|   
#  328|   verifyHostCommand() {
#  329|->    local pathVariable="${1}"
#  330|      local command="${2}"
#  331|   

Error: SHELLCHECK_WARNING: [#def125]
/usr/bin/brltty-prologue.sh:330:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  328|   verifyHostCommand() {
#  329|      local pathVariable="${1}"
#  330|->    local command="${2}"
#  331|   
#  332|      findHostCommand "${pathVariable}" "${command}" || {

Error: SHELLCHECK_WARNING: [#def126]
/usr/bin/brltty-prologue.sh:341:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  339|   
#  340|      "${testMode}" || "${@}" || {
#  341|->       local status="${?}"
#  342|         logWarning "host command failed with exit status ${status}: ${*}"
#  343|         return "${status}"

Error: SHELLCHECK_WARNING: [#def127]
/usr/bin/brltty-prologue.sh:348:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  346|   
#  347|   verifyActionFlags() {
#  348|->    local allFlag="${1}"
#  349|      shift 1
#  350|   

Error: SHELLCHECK_WARNING: [#def128]
/usr/bin/brltty-prologue.sh:351:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  349|      shift 1
#  350|   
#  351|->    local allRequested
#  352|      getVariable "${allFlag}" allRequested
#  353|      local actionFlag

Error: SHELLCHECK_WARNING: [#def129]
/usr/bin/brltty-prologue.sh:353:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  351|      local allRequested
#  352|      getVariable "${allFlag}" allRequested
#  353|->    local actionFlag
#  354|   
#  355|      for actionFlag in "${@}"

Error: SHELLCHECK_WARNING: [#def130]
/usr/bin/brltty-prologue.sh:357:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  355|      for actionFlag in "${@}"
#  356|      do
#  357|->       local actionRequested
#  358|         getVariable "${actionFlag}" actionRequested
#  359|   

Error: SHELLCHECK_WARNING: [#def131]
/usr/bin/brltty-prologue.sh:375:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  373|   
#  374|   testInteger() {
#  375|->    local value="${1}"
#  376|   
#  377|      [ "${value}" = "0" ] || {

Error: SHELLCHECK_WARNING: [#def132]
/usr/bin/brltty-prologue.sh:387:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  385|   
#  386|   verifyInteger() {
#  387|->    local label="${1}"
#  388|      local value="${2}"
#  389|      local minimum="${3}"

Error: SHELLCHECK_WARNING: [#def133]
/usr/bin/brltty-prologue.sh:388:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  386|   verifyInteger() {
#  387|      local label="${1}"
#  388|->    local value="${2}"
#  389|      local minimum="${3}"
#  390|      local maximum="${4}"

Error: SHELLCHECK_WARNING: [#def134]
/usr/bin/brltty-prologue.sh:389:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  387|      local label="${1}"
#  388|      local value="${2}"
#  389|->    local minimum="${3}"
#  390|      local maximum="${4}"
#  391|   

Error: SHELLCHECK_WARNING: [#def135]
/usr/bin/brltty-prologue.sh:390:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  388|      local value="${2}"
#  389|      local minimum="${3}"
#  390|->    local maximum="${4}"
#  391|   
#  392|      testInteger "${value}" || {

Error: SHELLCHECK_WARNING: [#def136]
/usr/bin/brltty-prologue.sh:410:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  408|   
#  409|   testContainingDirectory() {
#  410|->    local directory="${1}"
#  411|      shift 1
#  412|   

Error: SHELLCHECK_WARNING: [#def137]
/usr/bin/brltty-prologue.sh:413:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  411|      shift 1
#  412|   
#  413|->    local path
#  414|      for path
#  415|      do

Error: SHELLCHECK_WARNING: [#def138]
/usr/bin/brltty-prologue.sh:423:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  421|   
#  422|   findContainingDirectory() {
#  423|->    local variable="${1}"
#  424|      local directory="${2}"
#  425|      shift 2

Error: SHELLCHECK_WARNING: [#def139]
/usr/bin/brltty-prologue.sh:424:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  422|   findContainingDirectory() {
#  423|      local variable="${1}"
#  424|->    local directory="${2}"
#  425|      shift 2
#  426|   

Error: SHELLCHECK_WARNING: [#def140]
/usr/bin/brltty-prologue.sh:427:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  425|      shift 2
#  426|   
#  427|->    local value
#  428|      getVariable "${variable}" value
#  429|      [ -n "${value}" ] && return 0

Error: SHELLCHECK_WARNING: [#def141]
/usr/bin/brltty-prologue.sh:434:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  432|      do
#  433|         testContainingDirectory "${directory}" "${@}" && break
#  434|->       local parent="$(dirname "${directory}")"
#  435|         [ "${parent}" = "${directory}" ] && return 1
#  436|         directory="${parent}"

Error: SHELLCHECK_WARNING (CWE-571): [#def142]
/usr/bin/brltty-prologue.sh:434:13: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  432|      do
#  433|         testContainingDirectory "${directory}" "${@}" && break
#  434|->       local parent="$(dirname "${directory}")"
#  435|         [ "${parent}" = "${directory}" ] && return 1
#  436|         directory="${parent}"

Error: SHELLCHECK_WARNING: [#def143]
/usr/bin/brltty-prologue.sh:443:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  441|   
#  442|   testDirectory() {
#  443|->    local path="${1}"
#  444|   
#  445|      [ -e "${path}" ] || return 1

Error: SHELLCHECK_WARNING: [#def144]
/usr/bin/brltty-prologue.sh:451:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  449|   
#  450|   verifyWritableDirectory() {
#  451|->    local path="${1}"
#  452|   
#  453|      testDirectory "${path}" || semanticError "directory not found: ${path}"

Error: SHELLCHECK_WARNING: [#def145]
/usr/bin/brltty-prologue.sh:458:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  456|   
#  457|   testFile() {
#  458|->    local path="${1}"
#  459|   
#  460|      [ -e "${path}" ] || return 1

Error: SHELLCHECK_WARNING: [#def146]
/usr/bin/brltty-prologue.sh:466:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  464|   
#  465|   verifyInputFile() {
#  466|->    local path="${1}"
#  467|   
#  468|      testFile "${path}" || semanticError "file not found: ${path}"

Error: SHELLCHECK_WARNING: [#def147]
/usr/bin/brltty-prologue.sh:473:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  471|   
#  472|   verifyOutputFile() {
#  473|->    local path="${1}"
#  474|   
#  475|      if testFile "${path}"

Error: SHELLCHECK_WARNING: [#def148]
/usr/bin/brltty-prologue.sh:484:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  482|   
#  483|   verifyExecutableFile() {
#  484|->    local path="${1}"
#  485|   
#  486|      testFile "${path}" || semanticError "file not found: ${path}"

Error: SHELLCHECK_WARNING: [#def149]
/usr/bin/brltty-prologue.sh:491:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  489|   
#  490|   verifyInputDirectory() {
#  491|->    local path="${1}"
#  492|   
#  493|      testDirectory "${path}" || semanticError "directory not found: ${path}"

Error: SHELLCHECK_WARNING: [#def150]
/usr/bin/brltty-prologue.sh:497:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  495|   
#  496|   verifyOutputDirectory() {
#  497|->    local path="${1}"
#  498|   
#  499|      if testDirectory "${path}"

Error: SHELLCHECK_WARNING (CWE-398): [#def151]
/usr/bin/brltty-prologue.sh:502:19: warning[SC2115]: Use "${var:?}" to ensure this never expands to /* .
#  500|      then
#  501|         [ -w "${path}" ] || semanticError "directory not writable: ${path}"
#  502|->       rm -f -r -- "${path}/"*
#  503|      else
#  504|         mkdir -p "${path}"

Error: SHELLCHECK_WARNING: [#def152]
/usr/bin/brltty-prologue.sh:513:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  511|   
#  512|   addProgramParameter() {
#  513|->    local label="${1}"
#  514|      local variable="${2}"
#  515|      local usage="${3}"

Error: SHELLCHECK_WARNING: [#def153]
/usr/bin/brltty-prologue.sh:514:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  512|   addProgramParameter() {
#  513|      local label="${1}"
#  514|->    local variable="${2}"
#  515|      local usage="${3}"
#  516|      local default="${4}"

Error: SHELLCHECK_WARNING: [#def154]
/usr/bin/brltty-prologue.sh:515:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  513|      local label="${1}"
#  514|      local variable="${2}"
#  515|->    local usage="${3}"
#  516|      local default="${4}"
#  517|   

Error: SHELLCHECK_WARNING: [#def155]
/usr/bin/brltty-prologue.sh:516:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  514|      local variable="${2}"
#  515|      local usage="${3}"
#  516|->    local default="${4}"
#  517|   
#  518|      setVariable "programParameterLabel_${programParameterCount}" "${label}"

Error: SHELLCHECK_WARNING: [#def156]
/usr/bin/brltty-prologue.sh:523:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  521|      setVariable "programParameterDefault_${programParameterCount}" "${default}"
#  522|   
#  523|->    local length="${#label}"
#  524|      [ "${length}" -le "${programParameterLabelWidth}" ] || programParameterLabelWidth="${length}"
#  525|   

Error: SHELLCHECK_WARNING (CWE-563): [#def157]
/usr/bin/brltty-prologue.sh:549:1: warning[SC2034]: programOptionValue_counter appears unused. Verify use (or export if used externally).
#  547|   programOptionOperandWidth=0
#  548|   
#  549|-> programOptionValue_counter=0
#  550|   programOptionValue_flag=false
#  551|   programOptionValue_list=""

Error: SHELLCHECK_WARNING (CWE-563): [#def158]
/usr/bin/brltty-prologue.sh:550:1: warning[SC2034]: programOptionValue_flag appears unused. Verify use (or export if used externally).
#  548|   
#  549|   programOptionValue_counter=0
#  550|-> programOptionValue_flag=false
#  551|   programOptionValue_list=""
#  552|   programOptionValue_string=""

Error: SHELLCHECK_WARNING (CWE-563): [#def159]
/usr/bin/brltty-prologue.sh:551:1: warning[SC2034]: programOptionValue_list appears unused. Verify use (or export if used externally).
#  549|   programOptionValue_counter=0
#  550|   programOptionValue_flag=false
#  551|-> programOptionValue_list=""
#  552|   programOptionValue_string=""
#  553|   

Error: SHELLCHECK_WARNING (CWE-563): [#def160]
/usr/bin/brltty-prologue.sh:552:1: warning[SC2034]: programOptionValue_string appears unused. Verify use (or export if used externally).
#  550|   programOptionValue_flag=false
#  551|   programOptionValue_list=""
#  552|-> programOptionValue_string=""
#  553|   
#  554|   addProgramOption() {

Error: SHELLCHECK_WARNING: [#def161]
/usr/bin/brltty-prologue.sh:555:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  553|   
#  554|   addProgramOption() {
#  555|->    local letter="${1}"
#  556|      local type="${2}"
#  557|      local variable="${3}"

Error: SHELLCHECK_WARNING: [#def162]
/usr/bin/brltty-prologue.sh:556:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  554|   addProgramOption() {
#  555|      local letter="${1}"
#  556|->    local type="${2}"
#  557|      local variable="${3}"
#  558|      local usage="${4}"

Error: SHELLCHECK_WARNING: [#def163]
/usr/bin/brltty-prologue.sh:557:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  555|      local letter="${1}"
#  556|      local type="${2}"
#  557|->    local variable="${3}"
#  558|      local usage="${4}"
#  559|      local default="${5}"

Error: SHELLCHECK_WARNING: [#def164]
/usr/bin/brltty-prologue.sh:558:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  556|      local type="${2}"
#  557|      local variable="${3}"
#  558|->    local usage="${4}"
#  559|      local default="${5}"
#  560|   

Error: SHELLCHECK_WARNING: [#def165]
/usr/bin/brltty-prologue.sh:559:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  557|      local variable="${3}"
#  558|      local usage="${4}"
#  559|->    local default="${5}"
#  560|   
#  561|      [ "$(expr "${letter}" : '[[:alnum:]]*$')" -eq 1 ] || internalError "invalid program option: -${letter}"

Error: SHELLCHECK_WARNING: [#def166]
/usr/bin/brltty-prologue.sh:564:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  562|      [ -z "$(getVariable "programOptionType_${letter}")" ] || internalError "duplicate program option definition: -${letter}"
#  563|   
#  564|->    local operand
#  565|      case "${type}"
#  566|      in

Error: SHELLCHECK_WARNING: [#def167]
/usr/bin/brltty-prologue.sh:586:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  584|      setVariable "programOptionDefault_${letter}" "${default}"
#  585|   
#  586|->    local value="$(getVariable "programOptionValue_${type}")"
#  587|      setVariable "${variable}" "${value}"
#  588|   

Error: SHELLCHECK_WARNING (CWE-571): [#def168]
/usr/bin/brltty-prologue.sh:586:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  584|      setVariable "programOptionDefault_${letter}" "${default}"
#  585|   
#  586|->    local value="$(getVariable "programOptionValue_${type}")"
#  587|      setVariable "${variable}" "${value}"
#  588|   

Error: SHELLCHECK_WARNING: [#def169]
/usr/bin/brltty-prologue.sh:589:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  587|      setVariable "${variable}" "${value}"
#  588|   
#  589|->    local length="${#operand}"
#  590|      [ "${length}" -le "${programOptionOperandWidth}" ] || programOptionOperandWidth="${length}"
#  591|   

Error: SHELLCHECK_WARNING: [#def170]
/usr/bin/brltty-prologue.sh:605:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  603|   
#  604|   addProgramUsageLine() {
#  605|->    local line="${1}"
#  606|   
#  607|      setVariable "programUsageLine_${programUsageLineCount}" "${line}"

Error: SHELLCHECK_WARNING: [#def171]
/usr/bin/brltty-prologue.sh:612:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  610|   
#  611|   addProgramUsageText() {
#  612|->    local text="${1}"
#  613|      local prefix="${2}"
#  614|   

Error: SHELLCHECK_WARNING: [#def172]
/usr/bin/brltty-prologue.sh:613:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  611|   addProgramUsageText() {
#  612|      local text="${1}"
#  613|->    local prefix="${2}"
#  614|   
#  615|      local width=$((programUsageLineWidth - ${#prefix}))

Error: SHELLCHECK_WARNING: [#def173]
/usr/bin/brltty-prologue.sh:615:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  613|      local prefix="${2}"
#  614|   
#  615|->    local width=$((programUsageLineWidth - ${#prefix}))
#  616|   
#  617|      while [ "${width}" -lt 1 ]

Error: SHELLCHECK_WARNING: [#def174]
/usr/bin/brltty-prologue.sh:624:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  622|      done
#  623|   
#  624|->    local indent="$(stringReplaceAll "${prefix}" '.' ' ')"
#  625|   
#  626|      [ "${width}" -gt 0 ] || {

Error: SHELLCHECK_WARNING (CWE-571): [#def175]
/usr/bin/brltty-prologue.sh:624:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  622|      done
#  623|   
#  624|->    local indent="$(stringReplaceAll "${prefix}" '.' ' ')"
#  625|   
#  626|      [ "${width}" -gt 0 ] || {

Error: SHELLCHECK_WARNING: [#def176]
/usr/bin/brltty-prologue.sh:642:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  640|   
#  641|   writeProgramUsageLines() {
#  642|->    local index=0
#  643|   
#  644|      while [ "${index}" -lt "${programUsageLineCount}" ]

Error: SHELLCHECK_WARNING: [#def177]
/usr/bin/brltty-prologue.sh:654:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  652|      set -- ${programOptionLetters}
#  653|   
#  654|->    local purpose="$(showProgramUsagePurpose)"
#  655|      [ -z "${purpose}" ] || {
#  656|         addProgramUsageText "${purpose}"

Error: SHELLCHECK_WARNING (CWE-571): [#def178]
/usr/bin/brltty-prologue.sh:654:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  652|      set -- ${programOptionLetters}
#  653|   
#  654|->    local purpose="$(showProgramUsagePurpose)"
#  655|      [ -z "${purpose}" ] || {
#  656|         addProgramUsageText "${purpose}"

Error: SHELLCHECK_WARNING: [#def179]
/usr/bin/brltty-prologue.sh:660:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  658|      }
#  659|   
#  660|->    local line="Syntax: ${programName}"
#  661|      [ "${#}" -eq 0 ] || line="${line} [-option ...]"
#  662|   

Error: SHELLCHECK_WARNING: [#def180]
/usr/bin/brltty-prologue.sh:663:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  661|      [ "${#}" -eq 0 ] || line="${line} [-option ...]"
#  662|   
#  663|->    local index=0
#  664|      local suffix=""
#  665|   

Error: SHELLCHECK_WARNING: [#def181]
/usr/bin/brltty-prologue.sh:664:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  662|   
#  663|      local index=0
#  664|->    local suffix=""
#  665|   
#  666|      while [ "${index}" -lt "${programParameterCount}" ]

Error: SHELLCHECK_WARNING: [#def182]
/usr/bin/brltty-prologue.sh:694:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  692|         addProgramUsageLine "Parameters:"
#  693|   
#  694|->       local indent=$((programParameterLabelWidth + 2))
#  695|         local index=0
#  696|   

Error: SHELLCHECK_WARNING: [#def183]
/usr/bin/brltty-prologue.sh:695:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  693|   
#  694|         local indent=$((programParameterLabelWidth + 2))
#  695|->       local index=0
#  696|   
#  697|         while [ "${index}" -lt "${programParameterCount}" ]

Error: SHELLCHECK_WARNING: [#def184]
/usr/bin/brltty-prologue.sh:699:10: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  697|         while [ "${index}" -lt "${programParameterCount}" ]
#  698|         do
#  699|->          local line="$(getVariable "programParameterLabel_${index}")"
#  700|   
#  701|            while [ "${#line}" -lt "${indent}" ]

Error: SHELLCHECK_WARNING (CWE-571): [#def185]
/usr/bin/brltty-prologue.sh:699:16: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  697|         while [ "${index}" -lt "${programParameterCount}" ]
#  698|         do
#  699|->          local line="$(getVariable "programParameterLabel_${index}")"
#  700|   
#  701|            while [ "${#line}" -lt "${indent}" ]

Error: SHELLCHECK_WARNING: [#def186]
/usr/bin/brltty-prologue.sh:706:10: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  704|            done
#  705|   
#  706|->          local usage="$(getVariable "programParameterUsage_${index}")"
#  707|            local default="$(getVariable "programParameterDefault_${index}")"
#  708|            [ -z "${default}" ] || usage="${usage} - the default is ${default}"

Error: SHELLCHECK_WARNING (CWE-571): [#def187]
/usr/bin/brltty-prologue.sh:706:16: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  704|            done
#  705|   
#  706|->          local usage="$(getVariable "programParameterUsage_${index}")"
#  707|            local default="$(getVariable "programParameterDefault_${index}")"
#  708|            [ -z "${default}" ] || usage="${usage} - the default is ${default}"

Error: SHELLCHECK_WARNING: [#def188]
/usr/bin/brltty-prologue.sh:707:10: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  705|   
#  706|            local usage="$(getVariable "programParameterUsage_${index}")"
#  707|->          local default="$(getVariable "programParameterDefault_${index}")"
#  708|            [ -z "${default}" ] || usage="${usage} - the default is ${default}"
#  709|            addProgramUsageText "${usage}" "  ${line}"

Error: SHELLCHECK_WARNING (CWE-571): [#def189]
/usr/bin/brltty-prologue.sh:707:16: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  705|   
#  706|            local usage="$(getVariable "programParameterUsage_${index}")"
#  707|->          local default="$(getVariable "programParameterDefault_${index}")"
#  708|            [ -z "${default}" ] || usage="${usage} - the default is ${default}"
#  709|            addProgramUsageText "${usage}" "  ${line}"

Error: SHELLCHECK_WARNING: [#def190]
/usr/bin/brltty-prologue.sh:719:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  717|         addProgramUsageLine "Options:"
#  718|   
#  719|->       local indent=$((3 + programOptionOperandWidth + 2))
#  720|         local letter
#  721|   

Error: SHELLCHECK_WARNING: [#def191]
/usr/bin/brltty-prologue.sh:720:7: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  718|   
#  719|         local indent=$((3 + programOptionOperandWidth + 2))
#  720|->       local letter
#  721|   
#  722|         for letter

Error: SHELLCHECK_WARNING: [#def192]
/usr/bin/brltty-prologue.sh:724:10: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  722|         for letter
#  723|         do
#  724|->          local line="-${letter} $(getVariable "programOptionOperand_${letter}")"
#  725|   
#  726|            while [ "${#line}" -lt "${indent}" ]

Error: SHELLCHECK_WARNING (CWE-571): [#def193]
/usr/bin/brltty-prologue.sh:724:16: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  722|         for letter
#  723|         do
#  724|->          local line="-${letter} $(getVariable "programOptionOperand_${letter}")"
#  725|   
#  726|            while [ "${#line}" -lt "${indent}" ]

Error: SHELLCHECK_WARNING: [#def194]
/usr/bin/brltty-prologue.sh:732:10: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  730|   
#  731|            usage="$(getVariable "programOptionUsage_${letter}")"
#  732|->          local default="$(getVariable "programOptionDefault_${letter}")"
#  733|            [ -z "${default}" ] || usage="${usage} - the default is ${default}"
#  734|            addProgramUsageText "${usage}" "  ${line}"

Error: SHELLCHECK_WARNING (CWE-571): [#def195]
/usr/bin/brltty-prologue.sh:732:16: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  730|   
#  731|            usage="$(getVariable "programOptionUsage_${letter}")"
#  732|->          local default="$(getVariable "programOptionDefault_${letter}")"
#  733|            [ -z "${default}" ] || usage="${usage} - the default is ${default}"
#  734|            addProgramUsageText "${usage}" "  ${line}"

Error: SHELLCHECK_WARNING: [#def196]
/usr/bin/brltty-prologue.sh:738:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  736|      }
#  737|   
#  738|->    local notes="$(showProgramUsageNotes)"
#  739|      [ -z "${notes}" ] || {
#  740|         addProgramUsageLine

Error: SHELLCHECK_WARNING (CWE-571): [#def197]
/usr/bin/brltty-prologue.sh:738:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  736|      }
#  737|   
#  738|->    local notes="$(showProgramUsageNotes)"
#  739|      [ -z "${notes}" ] || {
#  740|         addProgramUsageLine

Error: SHELLCHECK_WARNING: [#def198]
/usr/bin/brltty-prologue.sh:752:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  750|   
#  751|   parseProgramOptions() {
#  752|->    local letter
#  753|   
#  754|      while getopts ":${programOptionString}" letter

Error: SHELLCHECK_WARNING: [#def199]
/usr/bin/brltty-prologue.sh:761:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  759|            :) syntaxError "missing operand: -${OPTARG}";;
#  760|   
#  761|->          *) local variable type
#  762|               setVariable variable "$(getVariable "programOptionVariable_${letter}")"
#  763|               setVariable type "$(getVariable "programOptionType_${letter}")"

Error: SHELLCHECK_WARNING (CWE-457): [#def200]
/usr/bin/brltty-prologue.sh:784:8: warning[SC2154]: programOption_showUsageSummary is referenced but not assigned.
#  782|      shift $((OPTIND - 1))
#  783|   
#  784|->    if "${programOption_showUsageSummary}"
#  785|      then
#  786|         showProgramUsageSummary

Error: SHELLCHECK_WARNING: [#def201]
/usr/bin/brltty-prologue.sh:790:4: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  788|      fi
#  789|   
#  790|->    local programParameterIndex=0
#  791|      while [ "${#}" -gt 0 ]
#  792|      do

Error: SHELLCHECK_WARNING (CWE-457): [#def202]
/usr/bin/brltty-prologue.sh:803:50: warning[SC2154]: programOption_verboseCount is referenced but not assigned.
#  801|      }
#  802|   
#  803|->    readonly programLogLevel=$((programLogLevel + programOption_verboseCount - programOption_quietCount))
#  804|      processExtraProgramParameters "${@}"
#  805|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def203]
/usr/bin/brltty-prologue.sh:803:79: warning[SC2154]: programOption_quietCount is referenced but not assigned.
#  801|      }
#  802|   
#  803|->    readonly programLogLevel=$((programLogLevel + programOption_verboseCount - programOption_quietCount))
#  804|      processExtraProgramParameters "${@}"
#  805|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def204]
/usr/bin/brltty-setcaps:30:5: warning[SC2154]: useSudo is referenced but not assigned.
#   28|   
#   29|   executeCommand() {
#   30|->    "${useSudo}" && set -- sudo -- "${@}"
#   31|   
#   32|      if "${testMode}"

Error: SHELLCHECK_WARNING (CWE-457): [#def205]
/usr/bin/brltty-setcaps:32:8: warning[SC2154]: testMode is referenced but not assigned.
#   30|      "${useSudo}" && set -- sudo -- "${@}"
#   31|   
#   32|->    if "${testMode}"
#   33|      then
#   34|         echo "${*}"

Error: SHELLCHECK_WARNING (CWE-571): [#def206]
/usr/bin/brltty-setcaps:49:13: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   47|         local owner=0
#   48|      else
#   49|->       local owner="$(id -"${type}")"
#   50|      fi
#   51|   

Error: SHELLCHECK_WARNING (CWE-457): [#def207]
/usr/bin/brltty-setcaps:52:47: warning[SC2154]: executablePath is referenced but not assigned.
#   50|      fi
#   51|   
#   52|->    executeCommand "${command}" "${owner}" -- "${executablePath}"
#   53|   }
#   54|   

Error: SHELLCHECK_WARNING (CWE-457): [#def208]
/usr/bin/brltty-setcaps:102:13: warning[SC2154]: rootUser is referenced but not assigned.
#  100|   }
#  101|   
#  102|-> setOwner u "${rootUser}" chown
#  103|   setOwner g "${rootGroup}" chgrp
#  104|   

Error: SHELLCHECK_WARNING (CWE-457): [#def209]
/usr/bin/brltty-setcaps:103:13: warning[SC2154]: rootGroup is referenced but not assigned.
#  101|   
#  102|   setOwner u "${rootUser}" chown
#  103|-> setOwner g "${rootGroup}" chgrp
#  104|   
#  105|   setMode u "${rootUser}"

Error: SHELLCHECK_WARNING (CWE-457): [#def210]
/usr/bin/brltty-setcaps:108:2: warning[SC2154]: noCapabilities is referenced but not assigned.
#  106|   setMode g "${rootGroup}"
#  107|   
#  108|-> "${noCapabilities}" || {
#  109|      "${noCreation}" || addCapability "cap_dac_override"
#  110|      "${noDevices}" || addCapability "cap_mknod"

Error: SHELLCHECK_WARNING (CWE-457): [#def211]
/usr/bin/brltty-setcaps:109:5: warning[SC2154]: noCreation is referenced but not assigned.
#  107|   
#  108|   "${noCapabilities}" || {
#  109|->    "${noCreation}" || addCapability "cap_dac_override"
#  110|      "${noDevices}" || addCapability "cap_mknod"
#  111|      "${noGroups}" || addCapability "cap_setgid"

Error: SHELLCHECK_WARNING (CWE-457): [#def212]
/usr/bin/brltty-setcaps:110:5: warning[SC2154]: noDevices is referenced but not assigned.
#  108|   "${noCapabilities}" || {
#  109|      "${noCreation}" || addCapability "cap_dac_override"
#  110|->    "${noDevices}" || addCapability "cap_mknod"
#  111|      "${noGroups}" || addCapability "cap_setgid"
#  112|      "${noInput}" || addCapability "cap_sys_admin"

Error: SHELLCHECK_WARNING (CWE-457): [#def213]
/usr/bin/brltty-setcaps:111:5: warning[SC2154]: noGroups is referenced but not assigned.
#  109|      "${noCreation}" || addCapability "cap_dac_override"
#  110|      "${noDevices}" || addCapability "cap_mknod"
#  111|->    "${noGroups}" || addCapability "cap_setgid"
#  112|      "${noInput}" || addCapability "cap_sys_admin"
#  113|      "${noModules}" || addCapability "cap_sys_module"

Error: SHELLCHECK_WARNING (CWE-457): [#def214]
/usr/bin/brltty-setcaps:112:5: warning[SC2154]: noInput is referenced but not assigned.
#  110|      "${noDevices}" || addCapability "cap_mknod"
#  111|      "${noGroups}" || addCapability "cap_setgid"
#  112|->    "${noInput}" || addCapability "cap_sys_admin"
#  113|      "${noModules}" || addCapability "cap_sys_module"
#  114|      "${noOwnership}" || addCapability "cap_chown"

Error: SHELLCHECK_WARNING (CWE-457): [#def215]
/usr/bin/brltty-setcaps:113:5: warning[SC2154]: noModules is referenced but not assigned.
#  111|      "${noGroups}" || addCapability "cap_setgid"
#  112|      "${noInput}" || addCapability "cap_sys_admin"
#  113|->    "${noModules}" || addCapability "cap_sys_module"
#  114|      "${noOwnership}" || addCapability "cap_chown"
#  115|      "${noPermissions}" || addCapability "cap_fowner"

Error: SHELLCHECK_WARNING (CWE-457): [#def216]
/usr/bin/brltty-setcaps:114:5: warning[SC2154]: noOwnership is referenced but not assigned.
#  112|      "${noInput}" || addCapability "cap_sys_admin"
#  113|      "${noModules}" || addCapability "cap_sys_module"
#  114|->    "${noOwnership}" || addCapability "cap_chown"
#  115|      "${noPermissions}" || addCapability "cap_fowner"
#  116|      "${noSpeaker}" || addCapability "cap_sys_tty_config"

Error: SHELLCHECK_WARNING (CWE-457): [#def217]
/usr/bin/brltty-setcaps:115:5: warning[SC2154]: noPermissions is referenced but not assigned.
#  113|      "${noModules}" || addCapability "cap_sys_module"
#  114|      "${noOwnership}" || addCapability "cap_chown"
#  115|->    "${noPermissions}" || addCapability "cap_fowner"
#  116|      "${noSpeaker}" || addCapability "cap_sys_tty_config"
#  117|   

Error: SHELLCHECK_WARNING (CWE-457): [#def218]
/usr/bin/brltty-setcaps:116:5: warning[SC2154]: noSpeaker is referenced but not assigned.
#  114|      "${noOwnership}" || addCapability "cap_chown"
#  115|      "${noPermissions}" || addCapability "cap_fowner"
#  116|->    "${noSpeaker}" || addCapability "cap_sys_tty_config"
#  117|   
#  118|      [ "${#capabilitiesList[*]}" -eq 0 ] || {

Error: SHELLCHECK_WARNING (CWE-457): [#def219]
/usr/bin/brltty-term:26:9: warning[SC2154]: programName is referenced but not assigned.
#   24|   and brltty using its Terminal Emulator screen driver.
#   25|   
#   26|-> Syntax: ${programName} [shell] [-option ...]
#   27|   
#   28|   This script is especially useful on platforms that don't support a native screen driver.

Error: SHELLCHECK_WARNING (CWE-457): [#def220]
/usr/bin/brltty-term:109:27: warning[SC2154]: shellPath is referenced but not assigned.
#  107|   currentGroup="$(id -g)"
#  108|   
#  109|-> addScreenParameter shell "${shellPath}"
#  110|   addScreenParameter user "${currentUser}"
#  111|   addScreenParameter group "${currentGroup}"

Error: SHELLCHECK_WARNING (CWE-457): [#def221]
/usr/bin/brltty-term:116:7: warning[SC2154]: brlttyPath is referenced but not assigned.
#  114|   
#  115|   SUDO="sudo --bell --preserve-env --preserve-env=USER,LOGNAME --"
#  116|-> [ -u "${brlttyPath}" ] && SUDO=""
#  117|   [ "${currentUser}" -eq 0 ] && SUDO=""
#  118|   

Error: SHELLCHECK_WARNING (CWE-156): [#def222]
/usr/lib/dracut/modules.d/99brltty/brltty-start.sh:68:26: warning[SC2046]: Quote this to prevent word splitting.
#   66|   
#   67|   brlttySetConfiguredOptions
#   68|-> brlttySetExplicitOptions $(getcmdline)
#   69|   getargbool 1 rd.brltty.sound || export BRLTTY_SPEECH_DRIVER="no"
#   70|   

Error: SHELLCHECK_WARNING (CWE-457): [#def223]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:17:10: warning[SC2154]: initdir is referenced but not assigned.
#   15|   installkernel() {
#   16|      instmods pcspkr uinput
#   17|->    [ -d "${initdir}/etc/bluetooth" ] && instmods =drivers/bluetooth =net/bluetooth
#   18|      [ -d "${initdir}/etc/alsa" ] && instmods =sound
#   19|      return 0

Error: SHELLCHECK_WARNING: [#def224]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:17:50: error[SC2283]: Remove spaces around = to assign (or use [ ] to compare, or quote '=' if literal).
#   15|   installkernel() {
#   16|      instmods pcspkr uinput
#   17|->    [ -d "${initdir}/etc/bluetooth" ] && instmods =drivers/bluetooth =net/bluetooth
#   18|      [ -d "${initdir}/etc/alsa" ] && instmods =sound
#   19|      return 0

Error: SHELLCHECK_WARNING: [#def225]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:18:45: error[SC2283]: Remove spaces around = to assign (or use [ ] to compare, or quote '=' if literal).
#   16|      instmods pcspkr uinput
#   17|      [ -d "${initdir}/etc/bluetooth" ] && instmods =drivers/bluetooth =net/bluetooth
#   18|->    [ -d "${initdir}/etc/alsa" ] && instmods =sound
#   19|      return 0
#   20|   }

Error: SHELLCHECK_WARNING (CWE-571): [#def226]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:36:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   34|      local BRLTTY_EXECUTABLE_PATH="/usr/bin/brltty"
#   35|      inst_binary "${BRLTTY_EXECUTABLE_PATH}"
#   36|->    local brlttyLog="$(LC_ALL="${BRLTTY_DRACUT_LOCALE:-${LANG}}" "${BRLTTY_EXECUTABLE_PATH}" -E -v -e -ldebug 2>&1)"
#   37|      
#   38|      export BRLTTY_CONFIGURATION_FILE="/etc/brltty.conf"

Error: SHELLCHECK_WARNING (CWE-156): [#def227]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:41:27: warning[SC2046]: Quote this to prevent word splitting.
#   39|      brlttyIncludeDataFiles "${BRLTTY_CONFIGURATION_FILE}"
#   40|   
#   41|->    brlttyIncludeDataFiles $(brlttyGetProperty "including data file")
#   42|      brlttyIncludeScreenDrivers lx
#   43|   

Error: SHELLCHECK_WARNING (CWE-156): [#def228]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:44:32: warning[SC2046]: Quote this to prevent word splitting.
#   42|      brlttyIncludeScreenDrivers lx
#   43|   
#   44|->    brlttyIncludeBrailleDrivers $(brlttyGetConfiguredDrivers braille)
#   45|      brlttyIncludeBrailleDrivers ${BRLTTY_DRACUT_BRAILLE_DRIVERS}
#   46|   

Error: SHELLCHECK_WARNING (CWE-156): [#def229]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:47:31: warning[SC2046]: Quote this to prevent word splitting.
#   45|      brlttyIncludeBrailleDrivers ${BRLTTY_DRACUT_BRAILLE_DRIVERS}
#   46|   
#   47|->    brlttyIncludeSpeechDrivers $(brlttyGetConfiguredDrivers speech)
#   48|      brlttyIncludeSpeechDrivers ${BRLTTY_DRACUT_SPEECH_DRIVERS}
#   49|         

Error: SHELLCHECK_WARNING (CWE-457): [#def230]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:64:26: warning[SC2154]: moddir is referenced but not assigned.
#   62|      fi
#   63|   
#   64|->    inst_hook cmdline 05 "${moddir}/brltty-start.sh"
#   65|      inst_hook cleanup 95 "${moddir}/brltty-stop.sh"
#   66|   

Error: SHELLCHECK_WARNING (CWE-571): [#def231]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:72:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   70|   brlttyInstallPreferencesFile() {
#   71|      local path="${1}"
#   72|->    local file=$(brlttyGetProperty "Preferences File")
#   73|   
#   74|      if [ -n "${file}" ]

Error: SHELLCHECK_WARNING (CWE-571): [#def232]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:78:16: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   76|         if [ "${file}" = "${file#/}" ]
#   77|         then
#   78|->          local directory=$(brlttyGetProperty "Updatable Directory")
#   79|   
#   80|            if [ -n "${directory}" ]

Error: SHELLCHECK_WARNING (CWE-156): [#def233]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:283:16: warning[SC2046]: Quote this to prevent word splitting.
#  281|   
#  282|   brlttyAddMessageBusUsers() {
#  283|->    set -- dbus $(sed -n -r -e 's/^.* user="([^"]*)".*$/\1/p' "${@}" | sort -u)
#  284|      brlttyAddUserEntries "${@}"
#  285|      brlttyAddGroupEntries "${@}"

Error: SHELLCHECK_WARNING (CWE-571): [#def234]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:307:16: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  305|      do
#  306|         grep -q -e "^${name}:" "${target}" || {
#  307|->          local line="$(grep "^${name}:" "${source}")"
#  308|            [ -n "${line}" ] && echo >>"${target}" "${line}"
#  309|         }

Error: SHELLCHECK_WARNING (CWE-156): [#def235]
/usr/lib/dracut/modules.d/99brltty/module-setup.sh:328:22: warning[SC2046]: Quote this to prevent word splitting.
#  326|      do
#  327|         [ -d "${directory}" ] && {
#  328|->          eval set -- $(find "${directory}" -printf "'%p'\n")
#  329|            inst_multiple "${@}"
#  330|         }

Error: GCC_ANALYZER_WARNING (CWE-127): [#def236]
brltty-6.7/minimal/Drivers/Braille/Alva/./braille.c:1211:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
brltty-6.7/minimal/Drivers/Braille/Alva/./braille.c:1722:1: enter_function: entry to ‘detectModel2u’
brltty-6.7/minimal/Drivers/Braille/Alva/./braille.c:1727:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/Alva/./braille.c:1727:21: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/Alva/./braille.c:1727:21: call_function: calling ‘setVersions2’ from ‘detectModel2u’
# 1209|   
# 1210|     while (1) {
# 1211|->     STR_PRINTF("%u", *byte);
# 1212|       if (byte == overlay.bytes) break;
# 1213|   

Error: GCC_ANALYZER_WARNING (CWE-124): [#def237]
brltty-6.7/minimal/Drivers/Braille/Alva/./braille.c:1214:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
brltty-6.7/minimal/Drivers/Braille/Alva/./braille.c:1722:1: enter_function: entry to ‘detectModel2u’
brltty-6.7/minimal/Drivers/Braille/Alva/./braille.c:1727:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/Alva/./braille.c:1727:21: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/Alva/./braille.c:1727:21: call_function: calling ‘setVersions2’ from ‘detectModel2u’
# 1212|       if (byte == overlay.bytes) break;
# 1213|   
# 1214|->     *byte = 0;
# 1215|       if (!overlay.u32) break;
# 1216|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def238]
brltty-6.7/minimal/Drivers/Braille/B2G/./braille.c:284:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/braille0", 1)’
brltty-6.7/minimal/Drivers/Braille/B2G/./braille.c:323:1: enter_function: entry to ‘brl_construct’
brltty-6.7/minimal/Drivers/Braille/B2G/./braille.c:324:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/B2G/./braille.c:325:5: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/B2G/./braille.c:330:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/B2G/./braille.c:331:11: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/B2G/./braille.c:331:11: call_function: calling ‘openBrailleDevice’ from ‘brl_construct’
#  282|   static int
#  283|   openBrailleDevice (BrailleDisplay *brl) {
#  284|->   if ((brl->data->braille.fileDescriptor = open(BRAILLE_DEVICE_PATH, O_WRONLY)) != -1) {
#  285|       return 1;
#  286|     } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:396:6: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)*brl_43(D)->data.display.externalRows, (long unsigned int)*brl_43(D)->data.display.externalColumns)’
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1123:1: enter_function: entry to ‘brl_construct’
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1124:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1125:5: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1127:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1130:20: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1137:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1138:13: call_function: inlined call to ‘processParameters’ from ‘brl_construct’
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1138:13: call_function: inlined call to ‘processParameters’ from ‘brl_construct’
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1139:15: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1139:15: call_function: calling ‘makeArrays’ from ‘brl_construct’
#  394|   static int
#  395|   makeArrays (BrailleDisplay *brl) {
#  396|->   if ((brl->data->arrays.externalCells = calloc(brl->data->display.externalRows, brl->data->display.externalColumns))) {
#  397|       if ((brl->data->arrays.internalCells = calloc(brl->data->display.internalRows, brl->data->display.internalColumns))) {
#  398|         if ((brl->data->arrays.externalRows = malloc(ARRAY_SIZE(brl->data->arrays.externalRows, brl->data->display.externalRows)))) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def240]
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:499:23: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1085:1: enter_function: entry to ‘writeIdentifyRequest’
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:1086:10: call_function: calling ‘writeRequest’ from ‘writeIdentifyRequest’
#  497|     packet.fields.seq = 0;
#  498|   
#  499|->   uint8_t *checksum = mempcpy(packet.fields.data, data, size);
#  500|     uint16_t length = (checksum - &packet.fields.destination) + 1;
#  501|     putUint16(packet.fields.length, length);

Error: GCC_ANALYZER_WARNING (CWE-121): [#def241]
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:867:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:858:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:858:21: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:860:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:860:31: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:866:12: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:867:12: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/DotPad/./braille.c:867:7: danger: write of 1 byte at offset ‘(int)arraySize’ exceeds the buffer
#  865|   
#  866|       while (dataSize < arraySize) {
#  867|->       data[dataSize++] = 0;
#  868|       }
#  869|   

Error: CPPCHECK_WARNING (CWE-682): [#def242]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:200: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  198|     unsigned char*	p = buffer;
#  199|   
#  200|->   *p++ = 'D';
#  201|     *p++ = 'M';
#  202|     while (*q)

Error: CPPCHECK_WARNING (CWE-476): [#def243]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:200: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p++
#  198|     unsigned char*	p = buffer;
#  199|   
#  200|->   *p++ = 'D';
#  201|     *p++ = 'M';
#  202|     while (*q)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def244]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:200:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:197:27: acquire_memory: this call could return NULL
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:200:3: danger: ‘buffer’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  198|     unsigned char*	p = buffer;
#  199|   
#  200|->   *p++ = 'D';
#  201|     *p++ = 'M';
#  202|     while (*q)

Error: CPPCHECK_WARNING (CWE-476): [#def245]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:224: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  222|     unsigned char* str = malloc(256); /* the string to display */
#  223|   
#  224|->   buf[0] = '\005';
#  225|     buf[1] = 'F';
#  226|     buf[2] = 'N';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def246]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:224:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:221:24: acquire_memory: this call could return NULL
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:224:3: danger: ‘buf’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  222|     unsigned char* str = malloc(256); /* the string to display */
#  223|   
#  224|->   buf[0] = '\005';
#  225|     buf[1] = 'F';
#  226|     buf[2] = 'N';

Error: CPPCHECK_WARNING (CWE-476): [#def247]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:225: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  223|   
#  224|     buf[0] = '\005';
#  225|->   buf[1] = 'F';
#  226|     buf[2] = 'N';
#  227|     buf[3] = ext;

Error: CPPCHECK_WARNING (CWE-476): [#def248]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:226: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  224|     buf[0] = '\005';
#  225|     buf[1] = 'F';
#  226|->   buf[2] = 'N';
#  227|     buf[3] = ext;
#  228|     buf[4] = (env->brfilenum & 0xff00) >> 2;

Error: CPPCHECK_WARNING (CWE-476): [#def249]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:227: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  225|     buf[1] = 'F';
#  226|     buf[2] = 'N';
#  227|->   buf[3] = ext;
#  228|     buf[4] = (env->brfilenum & 0xff00) >> 2;
#  229|     buf[5] = env->brfilenum & 0x00ff;

Error: CPPCHECK_WARNING (CWE-476): [#def250]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:228: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  226|     buf[2] = 'N';
#  227|     buf[3] = ext;
#  228|->   buf[4] = (env->brfilenum & 0xff00) >> 2;
#  229|     buf[5] = env->brfilenum & 0x00ff;
#  230|     brl_write(buf+1, 5);

Error: CPPCHECK_WARNING (CWE-476): [#def251]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:229: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  227|     buf[3] = ext;
#  228|     buf[4] = (env->brfilenum & 0xff00) >> 2;
#  229|->   buf[5] = env->brfilenum & 0x00ff;
#  230|     brl_write(buf+1, 5);
#  231|     while (1)

Error: CPPCHECK_WARNING (CWE-682): [#def252]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:230: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  228|     buf[4] = (env->brfilenum & 0xff00) >> 2;
#  229|     buf[5] = env->brfilenum & 0x00ff;
#  230|->   brl_write(buf+1, 5);
#  231|     while (1)
#  232|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:242:14: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:217:25: enter_function: entry to ‘showbrfile’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:222:24: acquire_memory: allocated here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:230:3: call_function: calling ‘brl_write’ from ‘showbrfile’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:230:3: return_function: returning to ‘showbrfile’ from ‘brl_write’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:233:7: call_function: calling ‘brl_read’ from ‘showbrfile’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:233:7: return_function: returning to ‘showbrfile’ from ‘brl_read’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:239:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:241:7: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:242:14: danger: ‘str’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#  240|       {
#  241|         env->brfilenum--;
#  242|->       return 0;
#  243|       }
#  244|     strcpy((char*)str, env->brpc ? "BR>PC " : "PC>BR ");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def254]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:244:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘str’ where non-null expected
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:217:25: enter_function: entry to ‘showbrfile’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:222:24: acquire_memory: this call could return NULL
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:230:3: call_function: calling ‘brl_write’ from ‘showbrfile’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:230:3: return_function: returning to ‘showbrfile’ from ‘brl_write’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:233:7: call_function: calling ‘brl_read’ from ‘showbrfile’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:233:7: return_function: returning to ‘showbrfile’ from ‘brl_read’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:239:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:244:22: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:244:3: danger: argument 1 (‘str’) from [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected
#argument 1 of ‘__builtin_memcpy’ must be non-null
#  242|         return 0;
#  243|       }
#  244|->   strcpy((char*)str, env->brpc ? "BR>PC " : "PC>BR ");
#  245|     strncat((char*)str, ((char*)&(buf[6])), buf[0] - 5);
#  246|     strcat((char*)str, ".");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def255]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:53:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tmpmap’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:42:17: acquire_memory: allocated here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:42:6: release_memory: assuming ‘tmpmap’ is NULL
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:42:6: branch_true: following ‘true’ branch (when ‘tmpmap’ is NULL)...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:44:7: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:47:6: branch_false: following ‘false’ branch (when ‘tmpmap2’ is non-NULL)...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:52:8: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:52:15: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:53:17: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:53:5: danger: dereference of NULL ‘tmpmap + i’
#   51|       }
#   52|     for (i = 0; i < size; i++)
#   53|->     tmpmap[i] = (*map)[i];
#   54|     p = tmpmap;
#   55|     p2 = tmpmap2;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def256]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:61:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:59:15: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:61:26: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:61:13: release_memory: ‘0’ is NULL
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:61:7: danger: dereference of NULL ‘*map + i’
#   59|     for (i = 0; i < newsize; i++)
#   60|       {
#   61|->       (*map)[i] = tmpmap2[i];
#   62|       }
#   63|     free(tmpmap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:85:9: acquire_memory: allocated here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:92:7: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: danger: ‘map’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   79|       {
#   80|         perror("open");
#   81|->       return 0;
#   82|       }
#   83|     fstat(fd, &st);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: warning[-Wanalyzer-malloc-leak]: leak of ‘newmap’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:86:12: acquire_memory: allocated here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:92:7: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: danger: ‘newmap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   79|       {
#   80|         perror("open");
#   81|->       return 0;
#   82|       }
#   83|     fstat(fd, &st);

Error: COMPILER_WARNING (CWE-252): [#def259]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘k2txt’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:87:3: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
#   87 |   read(fd, map, size);
#      |   ^~~~~~~~~~~~~~~~~~~
#   85|     map = malloc(size + 1);
#   86|     newmap = malloc(size + 1);
#   87|->   read(fd, map, size);
#   88|     map[size] = 0;
#   89|     close(fd);

Error: CPPCHECK_WARNING (CWE-401): [#def260]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:93: error[memleak]: Memory leak: newmap
#   91|       {
#   92|         perror("open");
#   93|->       return 0;
#   94|       }
#   95|     while (flg_hdr)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def261]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:97:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘map’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:85:9: acquire_memory: this call could return NULL
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:97:11: danger: ‘map + (sizetype)i’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   95|     while (flg_hdr)
#   96|       {
#   97|->       if (map[i] == 'R' && map[ i - 1] == '\x0b')
#   98|   	flg_hdr = 2;
#   99|         if (flg_hdr == 2 && map[i] == '$' && map[i - 1] == '\x1b')

Error: GCC_ANALYZER_WARNING (CWE-476): [#def262]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:111:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:86:12: acquire_memory: this call could return NULL
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:107:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:110:14: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:110:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:111:9: danger: ‘malloc(size + 1) + (sizetype)o’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  109|       {
#  110|         if (map[i] == 'P' && map[i - 1] == '\x1b')
#  111|-> 	newmap[o++] = '\n';
#  112|         if (map[i] == 'L' && map[i - 1] == '\x1b')
#  113|   	newmap[o++] = '\n';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def263]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:113:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:86:12: acquire_memory: this call could return NULL
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:107:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:110:14: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:112:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:113:9: danger: ‘malloc(size + 1) + (sizetype)o’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  111|   	newmap[o++] = '\n';
#  112|         if (map[i] == 'L' && map[i - 1] == '\x1b')
#  113|-> 	newmap[o++] = '\n';
#  114|         if (map[i] == '\x1b' && map[i - 1] == '\x1b')
#  115|   	newmap[o++] = '\x1b';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def264]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:115:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:86:12: acquire_memory: this call could return NULL
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:107:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:110:14: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:114:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:115:9: danger: ‘malloc(size + 1) + (sizetype)o’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  113|   	newmap[o++] = '\n';
#  114|         if (map[i] == '\x1b' && map[i - 1] == '\x1b')
#  115|-> 	newmap[o++] = '\x1b';
#  116|         if (map[i] != '\x1b' && map[i - 1] != '\x1b')
#  117|   	newmap[o++] = map[i];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def265]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:117:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:86:12: acquire_memory: this call could return NULL
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:107:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:110:14: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:116:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:117:9: danger: ‘malloc(size + 1) + (sizetype)o’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  115|   	newmap[o++] = '\x1b';
#  116|         if (map[i] != '\x1b' && map[i - 1] != '\x1b')
#  117|-> 	newmap[o++] = map[i];
#  118|         i++;
#  119|       }

Error: COMPILER_WARNING (CWE-252): [#def266]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:122:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  122 |   write(fd, newmap, size);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~
#  120|     /* Convert text into the current charset */
#  121|     size = dos2unix(env, &newmap, o);
#  122|->   write(fd, newmap, size);
#  123|     free(map);
#  124|     free(newmap);

Error: CPPCHECK_WARNING (CWE-686): [#def267]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:146: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
#  144|     /* Reconnaissance de l'extension */
#  145|     i = strlen((char*)name);
#  146|->   if (name[i - 2] == '.' && (toupper(name[i - 1] == 'K')
#  147|   			     || toupper(name[i - 1]) == 'T'
#  148|   			     || toupper(name[i - 1] == 'A')

Error: CPPCHECK_WARNING (CWE-686): [#def268]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:148: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
#  146|     if (name[i - 2] == '.' && (toupper(name[i - 1] == 'K')
#  147|   			     || toupper(name[i - 1]) == 'T'
#  148|-> 			     || toupper(name[i - 1] == 'A')
#  149|   			     || toupper(name[i - 1] == 'L')
#  150|   			     || toupper(name[i - 1]) == 'B'))

Error: CPPCHECK_WARNING (CWE-686): [#def269]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:149: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
#  147|   			     || toupper(name[i - 1]) == 'T'
#  148|   			     || toupper(name[i - 1] == 'A')
#  149|-> 			     || toupper(name[i - 1] == 'L')
#  150|   			     || toupper(name[i - 1]) == 'B'))
#  151|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:186:14: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:183:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:188:3: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:190:9: acquire_memory: allocated here
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:186:14: danger: ‘map’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  184|       {
#  185|         perror("open");
#  186|->       return 0;
#  187|       }
#  188|     fstat(fd, &st);

Error: COMPILER_WARNING (CWE-252): [#def271]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘txt2k’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:191:3: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
#  191 |   read(fd, map, size);
#      |   ^~~~~~~~~~~~~~~~~~~
#  189|     size = st.st_size;
#  190|     map = malloc(size + 1);
#  191|->   read(fd, map, size);
#  192|     map[size] = 0;
#  193|     close(fd);

Error: COMPILER_WARNING (CWE-252): [#def272]
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_transfer.c: scope_hint: In function ‘brtopc’
brltty-6.7/minimal/Drivers/Braille/EuroBraille/eutp_transfer.c:123:7: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  123 |       write(fd, &(buf[3]), buf[0] - 2);
#      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  121|         sprintf((char*)str, "... %s %d", filename, lines);
#  122|         brl_message((char*)str, 0);
#  123|->       write(fd, &(buf[3]), buf[0] - 2);
#  124|         lines++;
#  125|       }

Error: GCC_ANALYZER_WARNING (CWE-121): [#def273]
brltty-6.7/minimal/Drivers/Braille/HandyTech/./braille.c:876:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
brltty-6.7/minimal/Drivers/Braille/HandyTech/./braille.c:868:6: branch_true: following ‘true’ branch...
 branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/HandyTech/./braille.c:869:12: branch_true: following ‘true’ branch (when ‘size != 0’)...
brltty-6.7/minimal/Drivers/Braille/HandyTech/./braille.c:869:18: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/HandyTech/./braille.c:871:21: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Braille/HandyTech/./braille.c:871:29: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/HandyTech/./braille.c:876:7: danger: write of ‘(unsigned char)hidInDataSize + 254’ bytes at offset ‘2’ exceeds the buffer
#  874|         report[0] = HT_HID_RPT_InData;
#  875|         report[1] = count;
#  876|->       memcpy(report+2, &buffer[index], count);
#  877|         memset(&report[count+2], 0, sizeof(report)-count-2);
#  878|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def274]
brltty-6.7/minimal/Drivers/Braille/MDV/./braille.c:192:10: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.7/minimal/Drivers/Braille/MDV/./braille.c:298:1: enter_function: entry to ‘writeIdentifyRequest’
brltty-6.7/minimal/Drivers/Braille/MDV/./braille.c:299:10: call_function: calling ‘writePacket’ from ‘writeIdentifyRequest’
#  190|     packet.fields.code = code;
#  191|     packet.fields.length = length;
#  192|->   byte = mempcpy(byte, data, length);
#  193|   
#  194|     uint16_t checksum = calculateChecksum(&packet.fields.stx, byte);

Error: COMPILER_WARNING (CWE-457): [#def275]
brltty-6.7/minimal/Drivers/Braille/Papenmeier/braille.c:913:28: warning[-Wmaybe-uninitialized]: ‘module.size’ may be used uninitialized
#  913 |     bit += 8 - module->bit - module->size;
#      |            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
brltty-6.7/minimal/Drivers/Braille/Papenmeier/braille.c: scope_hint: In function ‘identifyTerminal2’
brltty-6.7/minimal/Drivers/Braille/Papenmeier/braille.c:945:16: note: ‘module.size’ was declared here
#  945 |   InputModule2 module;
#      |                ^~~~~~
#  911|       bit += module->bit;
#  912|     } else {
#  913|->     bit += 8 - module->bit - module->size;
#  914|     }
#  915|   

Error: COMPILER_WARNING: [#def276]
brltty-6.7/minimal/Drivers/Braille/TTY/../../../Headers/get_curses.h:54:2: warning[-Wcpp]: #warning curses package either unspecified or unsupported
#   52|   
#   53|   #else /* curses package */
#   54|-> #warning curses package either unspecified or unsupported
#   55|   #endif /* curses package */
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def277]
brltty-6.7/minimal/Drivers/Braille/TechniBraille/./braille.c:86:10: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.7/minimal/Drivers/Braille/TechniBraille/./braille.c:141:1: enter_function: entry to ‘brl_construct’
brltty-6.7/minimal/Drivers/Braille/TechniBraille/./braille.c:142:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Braille/TechniBraille/./braille.c:147:23: branch_false: ...to here
brltty-6.7/minimal/Drivers/Braille/TechniBraille/./braille.c:147:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/TechniBraille/./braille.c:149:5: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/TechniBraille/./braille.c:151:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/TechniBraille/./braille.c:152:11: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/TechniBraille/./braille.c:152:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/TechniBraille/./braille.c:153:13: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/TechniBraille/./braille.c:153:13: call_function: calling ‘writePacket’ from ‘brl_construct’
#   84|     *byte++ = function;
#   85|     *byte++ = count;
#   86|->   byte = mempcpy(byte, data, count);
#   87|   
#   88|     {

Error: CPPCHECK_WARNING (CWE-457): [#def278]
brltty-6.7/minimal/Drivers/Braille/Virtual/braille.c:904: warning[uninitvar]: Uninitialized variable: columns1
#  902|   
#  903|     if (ok) {
#  904|->     int count1 = columns1 * rows1;
#  905|       int count2 = columns2 * rows2;
#  906|       unsigned char *braille;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def279]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:95:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘keyname’ where non-null expected
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:185:5: branch_true: following ‘true’ branch (when ‘home’ is non-NULL)...
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:185:29: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:189:3: call_function: calling ‘Parse’ from ‘main’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#   93|      if (!strcmp(s,"keyname")) {
#   94|       keyname = (char *) malloc(strlen(c)+1);
#   95|->     strcpy(keyname,c);
#   96|      } else if (!strcmp(s,"socketport")) {
#   97|       socketport = (char *) malloc(strlen(c)+1);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def280]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:98:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘socketport’ where non-null expected
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:185:5: branch_true: following ‘true’ branch (when ‘home’ is non-NULL)...
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:185:29: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:189:3: call_function: calling ‘Parse’ from ‘main’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#   96|      } else if (!strcmp(s,"socketport")) {
#   97|       socketport = (char *) malloc(strlen(c)+1);
#   98|->     strcpy(socketport,c);
#   99|      } else if (!strcmp(s,"vbs_ext")) {
#  100|       visiobases_ext = (char *) malloc(5);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def281]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:101:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘visiobases_ext’ where non-null expected
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:185:5: branch_true: following ‘true’ branch (when ‘home’ is non-NULL)...
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:185:29: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:189:3: call_function: calling ‘Parse’ from ‘main’
#argument 1 of ‘__builtin_strncpy’ must be non-null
#   99|      } else if (!strcmp(s,"vbs_ext")) {
#  100|       visiobases_ext = (char *) malloc(5);
#  101|->     strncpy(visiobases_ext,c,4);
#  102|       visiobases_ext[4]=0;
#  103|      } else if (!strcmp(s,"vbs_dir")) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def282]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:105:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘visiobases_dir’ where non-null expected
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:185:5: branch_true: following ‘true’ branch (when ‘home’ is non-NULL)...
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:185:29: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:189:3: call_function: calling ‘Parse’ from ‘main’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  103|      } else if (!strcmp(s,"vbs_dir")) {
#  104|       visiobases_dir = (char *) malloc(strlen(c)+1);
#  105|->     strcpy(visiobases_dir,c);
#  106|      }
#  107|     } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:147:6: warning[-Wanalyzer-malloc-leak]: leak of ‘socketport’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:193:2: call_function: calling ‘CheckOptions’ from ‘main’
#  145|       if (argv[n][i]=='s') {
#  146|        if (++m==argc) grr(argv[0]);
#  147|->      socketport=argv[m];
#  148|       }
#  149|       if (argv[n][i]=='k') {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:151:6: warning[-Wanalyzer-malloc-leak]: leak of ‘keyname’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_main.c:193:2: call_function: calling ‘CheckOptions’ from ‘main’
#  149|       if (argv[n][i]=='k') {
#  150|        if (++m==argc) grr(argv[0]);
#  151|->      keyname=argv[m];
#  152|       }
#  153|       if (argv[n][i]=='o') {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def285]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_transfer.c:309:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘f2’ where non-null expected
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_transfer.c:307:5: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_transfer.c:307:25: branch_true: ...to here
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_transfer.c:308:14: acquire_memory: this call could return NULL
brltty-6.7/minimal/Drivers/Braille/VisioBraille/./vstp_transfer.c:309:3: danger: argument 1 (‘f2’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  307|    if (visiobases_dir && (f[0]!='.' || (f[1]!='.' && f[1]!='/') || (f[1]=='.' && f[2]!='/'))) {
#  308|     char *f2 = malloc(strlen(visiobases_dir)+1+strlen(f));
#  309|->   strcpy(f2,visiobases_dir);
#  310|     strcat(f2,f);
#  311|     if (tryToFind(f2, &fd)) {

Error: CPPCHECK_WARNING (CWE-476): [#def286]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/vstp_main.c:95: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keyname
#   93|      if (!strcmp(s,"keyname")) {
#   94|       keyname = (char *) malloc(strlen(c)+1);
#   95|->     strcpy(keyname,c);
#   96|      } else if (!strcmp(s,"socketport")) {
#   97|       socketport = (char *) malloc(strlen(c)+1);

Error: CPPCHECK_WARNING (CWE-476): [#def287]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/vstp_main.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: socketport
#   96|      } else if (!strcmp(s,"socketport")) {
#   97|       socketport = (char *) malloc(strlen(c)+1);
#   98|->     strcpy(socketport,c);
#   99|      } else if (!strcmp(s,"vbs_ext")) {
#  100|       visiobases_ext = (char *) malloc(5);

Error: CPPCHECK_WARNING (CWE-476): [#def288]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/vstp_main.c:101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visiobases_ext
#   99|      } else if (!strcmp(s,"vbs_ext")) {
#  100|       visiobases_ext = (char *) malloc(5);
#  101|->     strncpy(visiobases_ext,c,4);
#  102|       visiobases_ext[4]=0;
#  103|      } else if (!strcmp(s,"vbs_dir")) {

Error: CPPCHECK_WARNING (CWE-476): [#def289]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/vstp_main.c:102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visiobases_ext
#  100|       visiobases_ext = (char *) malloc(5);
#  101|       strncpy(visiobases_ext,c,4);
#  102|->     visiobases_ext[4]=0;
#  103|      } else if (!strcmp(s,"vbs_dir")) {
#  104|       visiobases_dir = (char *) malloc(strlen(c)+1);

Error: CPPCHECK_WARNING (CWE-476): [#def290]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/vstp_main.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visiobases_dir
#  103|      } else if (!strcmp(s,"vbs_dir")) {
#  104|       visiobases_dir = (char *) malloc(strlen(c)+1);
#  105|->     strcpy(visiobases_dir,c);
#  106|      }
#  107|     } else {

Error: CPPCHECK_WARNING (CWE-476): [#def291]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/vstp_transfer.c:309: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: f2
#  307|    if (visiobases_dir && (f[0]!='.' || (f[1]!='.' && f[1]!='/') || (f[1]=='.' && f[2]!='/'))) {
#  308|     char *f2 = malloc(strlen(visiobases_dir)+1+strlen(f));
#  309|->   strcpy(f2,visiobases_dir);
#  310|     strcat(f2,f);
#  311|     if (tryToFind(f2, &fd)) {

Error: CPPCHECK_WARNING (CWE-476): [#def292]
brltty-6.7/minimal/Drivers/Braille/VisioBraille/vstp_transfer.c:310: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: f2
#  308|     char *f2 = malloc(strlen(visiobases_dir)+1+strlen(f));
#  309|     strcpy(f2,visiobases_dir);
#  310|->   strcat(f2,f);
#  311|     if (tryToFind(f2, &fd)) {
#  312|      free(f2);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def293]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:670:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘curRowLengths’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1497:1: enter_function: entry to ‘construct_AtSpi2Screen’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1514:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1519:8: branch_false: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1519:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: branch_false: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: call_function: calling ‘addWatches’ from ‘construct_AtSpi2Screen’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: return_function: returning to ‘construct_AtSpi2Screen’ from ‘addWatches’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1525:7: branch_false: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1525:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: branch_true: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: call_function: calling ‘initTerm’ from ‘construct_AtSpi2Screen’
#  668|         *d = 0;
#  669|       e = c;
#  670|->     curRowLengths[i] = (len = my_mbsrtowcs(NULL,&e,0,NULL)) + (d != NULL);
#  671|       if (len > curNumCols)
#  672|         curNumCols = len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def294]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:680:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘curRows’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1497:1: enter_function: entry to ‘construct_AtSpi2Screen’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1514:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1519:8: branch_false: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1519:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: branch_false: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: call_function: calling ‘addWatches’ from ‘construct_AtSpi2Screen’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: return_function: returning to ‘construct_AtSpi2Screen’ from ‘addWatches’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1525:7: branch_false: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1525:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: branch_true: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: call_function: calling ‘initTerm’ from ‘construct_AtSpi2Screen’
#  678|         curRowLengths[i] = (len = 0) + (d != NULL);
#  679|       }
#  680|->     curRows[i] = malloc((len + (d!=NULL)) * sizeof(*curRows[i]));
#  681|       e = c;
#  682|       my_mbsrtowcs(curRows[i],&e,len,NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def295]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:751:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1497:1: enter_function: entry to ‘construct_AtSpi2Screen’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1514:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1519:8: branch_false: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1519:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: branch_false: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: call_function: calling ‘addWatches’ from ‘construct_AtSpi2Screen’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: return_function: returning to ‘construct_AtSpi2Screen’ from ‘addWatches’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1523:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1525:7: branch_false: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1525:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: branch_true: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: call_function: calling ‘initTerm’ from ‘construct_AtSpi2Screen’
#  749|     }
#  750|     ret = malloc(sizeof(*ret) * count);
#  751|->   memcpy(ret, states, sizeof(*ret) * count);
#  752|   
#  753|   out:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def296]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1299:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Watch’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1323:6: enter_function: entry to ‘a2WatchToggled’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1326:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1327:7: branch_true: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1327:7: call_function: calling ‘a2AddWatch’ from ‘a2WatchToggled’
# 1297|   {
# 1298|     struct a2Watch *a2Watch = calloc(1, sizeof(*a2Watch));
# 1299|->   a2Watch->watch = watch;
# 1300|     int flags = dbus_watch_get_flags(watch);
# 1301|     if (dbus_watch_get_enabled(watch))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def297]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1366:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Timeout’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1382:6: enter_function: entry to ‘a2TimeoutToggled’
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1385:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1386:7: branch_true: ...to here
brltty-6.7/minimal/Drivers/Screen/AtSpi2/./a2_screen.c:1386:7: call_function: calling ‘a2AddTimeout’ from ‘a2TimeoutToggled’
# 1364|   {
# 1365|     struct a2Timeout *a2Timeout = calloc(1, sizeof(*a2Timeout));
# 1366|->   a2Timeout->timeout = timeout;
# 1367|     if (dbus_timeout_get_enabled(timeout))
# 1368|       asyncNewRelativeAlarm(&a2Timeout->monitor, dbus_timeout_get_interval(timeout), a2ProcessTimeout, a2Timeout);

Error: CPPCHECK_WARNING (CWE-401): [#def298]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/a2_screen.c:246: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
#  244|   static void addRows(long pos, long num) {
#  245|     curNumRows += num;
#  246|->   curRows = realloc(curRows,curNumRows*sizeof(*curRows));
#  247|     curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
#  248|     memmove(curRows      +pos+num,curRows      +pos,(curNumRows-(pos+num))*sizeof(*curRows));

Error: CPPCHECK_WARNING (CWE-401): [#def299]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/a2_screen.c:247: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
#  245|     curNumRows += num;
#  246|     curRows = realloc(curRows,curNumRows*sizeof(*curRows));
#  247|->   curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
#  248|     memmove(curRows      +pos+num,curRows      +pos,(curNumRows-(pos+num))*sizeof(*curRows));
#  249|     memmove(curRowLengths+pos+num,curRowLengths+pos,(curNumRows-(pos+num))*sizeof(*curRowLengths));

Error: CPPCHECK_WARNING (CWE-401): [#def300]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/a2_screen.c:259: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
#  257|     memmove(curRowLengths+pos,curRowLengths+pos+num,(curNumRows-(pos+num))*sizeof(*curRowLengths));
#  258|     curNumRows -= num;
#  259|->   curRows = realloc(curRows,curNumRows*sizeof(*curRows));
#  260|     curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
#  261|   }

Error: CPPCHECK_WARNING (CWE-401): [#def301]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/a2_screen.c:260: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
#  258|     curNumRows -= num;
#  259|     curRows = realloc(curRows,curNumRows*sizeof(*curRows));
#  260|->   curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
#  261|   }
#  262|   

Error: CPPCHECK_WARNING (CWE-476): [#def302]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/a2_screen.c:751: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  749|     }
#  750|     ret = malloc(sizeof(*ret) * count);
#  751|->   memcpy(ret, states, sizeof(*ret) * count);
#  752|   
#  753|   out:

Error: CPPCHECK_WARNING (CWE-476): [#def303]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/a2_screen.c:1299: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a2Watch
# 1297|   {
# 1298|     struct a2Watch *a2Watch = calloc(1, sizeof(*a2Watch));
# 1299|->   a2Watch->watch = watch;
# 1300|     int flags = dbus_watch_get_flags(watch);
# 1301|     if (dbus_watch_get_enabled(watch))

Error: CPPCHECK_WARNING (CWE-476): [#def304]
brltty-6.7/minimal/Drivers/Screen/AtSpi2/a2_screen.c:1366: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a2Timeout
# 1364|   {
# 1365|     struct a2Timeout *a2Timeout = calloc(1, sizeof(*a2Timeout));
# 1366|->   a2Timeout->timeout = timeout;
# 1367|     if (dbus_timeout_get_enabled(timeout))
# 1368|       asyncNewRelativeAlarm(&a2Timeout->monitor, dbus_timeout_get_interval(timeout), a2ProcessTimeout, a2Timeout);

Error: COMPILER_WARNING: [#def305]
brltty-6.7/minimal/Drivers/Screen/FileViewer/../../../Headers/get_curses.h:54:2: warning[-Wcpp]: #warning curses package either unspecified or unsupported
#   52|   
#   53|   #else /* curses package */
#   54|-> #warning curses package either unspecified or unsupported
#   55|   #endif /* curses package */
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
brltty-6.7/minimal/Drivers/Screen/Linux/./screen.c:435:7: warning[-Wanalyzer-malloc-leak]: leak of ‘sfm.entries’
brltty-6.7/minimal/Drivers/Screen/Linux/./screen.c:1574:1: enter_function: entry to ‘testTextMode’
brltty-6.7/minimal/Drivers/Screen/Linux/./screen.c:1581:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Drivers/Screen/Linux/./screen.c:1581:60: branch_true: ...to here
brltty-6.7/minimal/Drivers/Screen/Linux/./screen.c:1581:60: call_function: calling ‘setTranslationTable’ from ‘testTextMode’
#  433|       case GIO_UNIMAP: {
#  434|         struct unimapdesc *sfm = argument;
#  435|->       memset(sfm, 0, sizeof(*sfm));
#  436|         sfm->entries = NULL;
#  437|         sfm->entry_ct = 0;

Error: CPPCHECK_WARNING (CWE-457): [#def307]
brltty-6.7/minimal/Drivers/Screen/Linux/screen.c:607: warning[uninitvar]: Uninitialized variable: buffer
#  605|   static int
#  606|   readUnicodeData (off_t offset, void *buffer, size_t size) {
#  607|->   size_t count = (unicodeCacheBuffer? readUnicodeCache: readUnicodeDevice)(offset, buffer, size);
#  608|     if (count == size) return 1;
#  609|   

Error: CPPCHECK_WARNING (CWE-476): [#def308]
brltty-6.7/minimal/Headers/bitfield.h:76: error[ctunullpointer]: Null pointer dereference: to
#   74|     }
#   75|   
#   76|-> DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(16)
#   77|   DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(32)
#   78|   DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(64)

Error: COMPILER_WARNING: [#def309]
brltty-6.7/minimal/Drivers/Braille/TTY/braille.c:40: included_from: Included from here.
brltty-6.7/minimal/Headers/get_curses.h:54:2: warning[-Wcpp]: #warning curses package either unspecified or unsupported
#   54 | #warning curses package either unspecified or unsupported
#      |  ^~~~~~~
#   52|   
#   53|   #else /* curses package */
#   54|-> #warning curses package either unspecified or unsupported
#   55|   #endif /* curses package */
#   56|   

Error: COMPILER_WARNING: [#def310]
brltty-6.7/minimal/Programs/kbd_linux.c:27: included_from: Included from here.
brltty-6.7/minimal/Programs/kbd_linux.c: scope_hint: In function ‘monitorKeyboard’
brltty-6.7/minimal/Headers/strfmt.h:65:12: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 251
#   65 | STR_FORMAT(snprintf, __VA_ARGS__)
#      |            ^
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 6 and 261 bytes into a destination of size 256
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#   63|   
#   64|   #define STR_PRINTF(...) \
#   65|-> STR_FORMAT(snprintf, __VA_ARGS__)
#   66|   
#   67|   #define STR_VPRINTF(format, arguments) \

Error: COMPILER_WARNING: [#def311]
brltty-6.7/minimal/Programs/../Headers/get_curses.h:54:2: warning[-Wcpp]: #warning curses package either unspecified or unsupported
#   52|   
#   53|   #else /* curses package */
#   54|-> #warning curses package either unspecified or unsupported
#   55|   #endif /* curses package */
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
brltty-6.7/minimal/Programs/./auth.c:290:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*definition.initialize(parameter)’
brltty-6.7/minimal/Programs/./auth.c:662:1: enter_function: entry to ‘authBegin’
brltty-6.7/minimal/Programs/./auth.c:665:6: branch_true: following ‘true’ branch (when ‘auth’ is non-NULL)...
brltty-6.7/minimal/Programs/./auth.c:666:5: branch_true: ...to here
brltty-6.7/minimal/Programs/./auth.c:675:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./auth.c:676:12: branch_true: ...to here
brltty-6.7/minimal/Programs/./auth.c:676:10: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./auth.c:681:35: branch_false: ...to here
brltty-6.7/minimal/Programs/./auth.c:681:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./auth.c:682:13: branch_true: ...to here
brltty-6.7/minimal/Programs/./auth.c:682:13: call_function: calling ‘initializeMethodDescriptors’ from ‘authBegin’
#  288|   
#  289|     if ((keyfile = malloc(sizeof(*keyfile)))) {
#  290|->     if (*parameter) {
#  291|         keyfile->path = parameter;
#  292|         return keyfile;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
brltty-6.7/minimal/Programs/./brlapi_client.c:2528:16: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/minimal/Programs/./brlapi_client.c:2509:12: enter_function: entry to ‘ignore_accept_keys’
brltty-6.7/minimal/Programs/./brlapi_client.c:2523:15: branch_true: following ‘true’ branch (when ‘n > i’)...
brltty-6.7/minimal/Programs/./brlapi_client.c:2524:41: branch_true: ...to here
brltty-6.7/minimal/Programs/./brlapi_client.c:2524:10: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./brlapi_client.c:2526:11: branch_false: ...to here
brltty-6.7/minimal/Programs/./brlapi_client.c:2526:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./brlapi_client.c:2527:9: branch_true: ...to here
brltty-6.7/minimal/Programs/./brlapi_client.c:2527:9: call_function: calling ‘brlapi_error_location’ from ‘ignore_accept_keys’
brltty-6.7/minimal/Programs/./brlapi_client.c:2527:9: return_function: returning to ‘ignore_accept_keys’ from ‘brlapi_error_location’
brltty-6.7/minimal/Programs/./brlapi_client.c:2528:16: danger: ‘brlapi_error_location()’ leaks here; was allocated at [(16)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/15)
# 2526|         if (code[i] & mask) {
# 2527|   	brlapi_errno = BRLAPI_ERROR_INVALID_PARAMETER;
# 2528|-> 	return -1;
# 2529|         }
# 2530|         ranges[i].first = code[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
brltty-6.7/minimal/Programs/./brlapi_client.c:2719:38: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/minimal/Programs/./brlapi_client.c:2571:20: enter_function: entry to ‘brlapi__ignoreKeys’
brltty-6.7/minimal/Programs/./brlapi_client.c:2573:10: call_function: calling ‘ignore_accept_keys’ from ‘brlapi__ignoreKeys’
# 2717|       pthread_once(&error_key_once, error_key_alloc);
# 2718|       if (pthread_error_ok) {
# 2719|->       if ((errorp=(brlapi_error_t *) pthread_getspecific(error_key)))
# 2720|           /* normal case */
# 2721|           return errorp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
brltty-6.7/minimal/Programs/./brlapi_client.c:2724:13: warning[-Wanalyzer-malloc-leak]: leak of ‘errorp’
brltty-6.7/minimal/Programs/./brlapi_client.c:2715:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./brlapi_client.c:2718:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./brlapi_client.c:2719:38: branch_true: ...to here
brltty-6.7/minimal/Programs/./brlapi_client.c:2719:10: branch_false: following ‘false’ branch (when ‘errorp’ is NULL)...
brltty-6.7/minimal/Programs/./brlapi_client.c:2724:21: branch_false: ...to here
brltty-6.7/minimal/Programs/./brlapi_client.c:2724:21: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./brlapi_client.c:2724:12: branch_true: following ‘true’ branch (when ‘errorp’ is non-NULL)...
brltty-6.7/minimal/Programs/./brlapi_client.c:2724:50: branch_true: ...to here
brltty-6.7/minimal/Programs/./brlapi_client.c:2724:13: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Programs/./brlapi_client.c:2724:13: danger: ‘errorp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
# 2722|         else
# 2723|           /* on the first time, must allocate it */
# 2724|->         if ((errorp=malloc(sizeof(*errorp))) && !pthread_setspecific(error_key,errorp)) {
# 2725|   	  memset(errorp,0,sizeof(*errorp));
# 2726|             return errorp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
brltty-6.7/minimal/Programs/./brlapi_common.h:289:5: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/minimal/Programs/./brlapi_client.c:2509:12: enter_function: entry to ‘ignore_accept_keys’
brltty-6.7/minimal/Programs/./brlapi_client.c:2533:12: call_function: calling ‘ignore_accept_key_ranges’ from ‘ignore_accept_keys’
#  287|     /* first send packet header (size+type) */
#  288|     if ((res=brlapi_writeFile(fd,&header[0],sizeof(header)))<0) {
#  289|->     LibcError("write in writePacket");
#  290|       return res;
#  291|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
brltty-6.7/minimal/Programs/./brlapi_common.h:296:7: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/minimal/Programs/./brlapi_client.c:2509:12: enter_function: entry to ‘ignore_accept_keys’
brltty-6.7/minimal/Programs/./brlapi_client.c:2533:12: call_function: calling ‘ignore_accept_key_ranges’ from ‘ignore_accept_keys’
#  294|     if (size && buf)
#  295|       if ((res=brlapi_writeFile(fd,buf,size))<0) {
#  296|->       LibcError("write in writePacket");
#  297|         return res;
#  298|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/minimal/Programs/./brlapi_common.h:305:9: enter_function: entry to ‘brlapi_readPacketHeader’
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: call_function: calling ‘brlapi_error_location’ from ‘brlapi_readPacketHeader’
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: return_function: returning to ‘brlapi_readPacketHeader’ from ‘brlapi_error_location’
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: call_function: calling ‘brlapi_error_location’ from ‘brlapi_readPacketHeader’
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: return_function: returning to ‘brlapi_readPacketHeader’ from ‘brlapi_error_location’
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: danger: ‘brlapi_error_location()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  310|       if (res<0) {
#  311|         /* reports EINTR too */
#  312|->       LibcError("read in brlapi_readPacketHeader");
#  313|         return -1;
#  314|       } else return -2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
brltty-6.7/minimal/Programs/./brlapi_common.h:313:14: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/minimal/Programs/./brlapi_common.h:305:9: enter_function: entry to ‘brlapi_readPacketHeader’
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: call_function: calling ‘brlapi_error_location’ from ‘brlapi_readPacketHeader’
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: return_function: returning to ‘brlapi_readPacketHeader’ from ‘brlapi_error_location’
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: call_function: calling ‘brlapi_error_location’ from ‘brlapi_readPacketHeader’
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: return_function: returning to ‘brlapi_readPacketHeader’ from ‘brlapi_error_location’
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: call_function: calling ‘brlapi_error_location’ from ‘brlapi_readPacketHeader’
brltty-6.7/minimal/Programs/./brlapi_common.h:312:7: return_function: returning to ‘brlapi_readPacketHeader’ from ‘brlapi_error_location’
brltty-6.7/minimal/Programs/./brlapi_common.h:313:14: danger: ‘brlapi_error_location()’ leaks here; was allocated at [(20)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/19)
#  311|         /* reports EINTR too */
#  312|         LibcError("read in brlapi_readPacketHeader");
#  313|->       return -1;
#  314|       } else return -2;
#  315|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
brltty-6.7/minimal/Programs/./brltty-lsinc.c:54:1: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.7/minimal/Programs/./brltty-lsinc.c:49:12: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./brltty-lsinc.c:50:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
brltty-6.7/minimal/Programs/./brltty-lsinc.c:51:10: branch_false: ...to here
brltty-6.7/minimal/Programs/./brltty-lsinc.c:51:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./brltty-lsinc.c:52:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./brltty-lsinc.c:54:1: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   52|       printf("%s\n", name);
#   53|     }
#   54|-> }
#   55|   
#   56|   static DATA_CONDITION_TESTER(testConditionOperand) {

Error: GCC_ANALYZER_WARNING (CWE-121): [#def321]
brltty-6.7/minimal/Programs/./charset_iconv.c:121:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:9: danger: out-of-bounds write from byte 88 till byte 95 but ‘convTable’ ends at byte 64
#  119|   
#  120|     while (conv < convEnd) {
#  121|->     if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
#  122|         logSystemError("iconv_open");
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def322]
brltty-6.7/minimal/Programs/./charset_iconv.c:121:39: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:39: danger: out-of-bounds read from byte 80 till byte 87 but ‘convTable’ ends at byte 64
#  119|   
#  120|     while (conv < convEnd) {
#  121|->     if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
#  122|         logSystemError("iconv_open");
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def323]
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: danger: out-of-bounds read from byte 72 till byte 79 but ‘convTable’ ends at byte 64
#  119|   
#  120|     while (conv < convEnd) {
#  121|->     if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
#  122|         logSystemError("iconv_open");
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def324]
brltty-6.7/minimal/Programs/./charset_iconv.c:126:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:122:7: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:124:14: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:125:9: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:126:9: danger: out-of-bounds read from byte 88 till byte 95 but ‘convTable’ ends at byte 64
#  124|         while (conv > convTable) {
#  125|           conv -= 1;
#  126|->         iconv_close(conv->newHandle);
#  127|         }
#  128|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[0].newHandle’
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./charset_iconv.c:124:14: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: danger: ‘convTable[0].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[1].newHandle’
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: danger: ‘convTable[1].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[2].newHandle’
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: danger: ‘convTable[2].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[3].newHandle’
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:124:14: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: danger: ‘convTable[3].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[4].newHandle’
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:135:10: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:147:6: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:147:6: branch_false: following ‘false’ branch (when ‘firstTime == 0’)...
 branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: danger: ‘convTable[4].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[5].newHandle’
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:135:10: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:147:6: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:147:6: branch_false: following ‘false’ branch (when ‘firstTime == 0’)...
 branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: danger: ‘convTable[5].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[6].newHandle’
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:135:10: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:147:6: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:147:6: branch_false: following ‘false’ branch (when ‘firstTime == 0’)...
 branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:129:14: danger: ‘convTable[6].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def332]
brltty-6.7/minimal/Programs/./charset_iconv.c:138:10: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:135:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:136:5: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:138:10: danger: out-of-bounds read from byte 64 till byte 71 but ‘convTable’ ends at byte 64
#  136|       conv -= 1;
#  137|   
#  138|->     if (*conv->handle == CHARSET_ICONV_NULL) {
#  139|         firstTime = 1;
#  140|       } else {

Error: GCC_ANALYZER_WARNING (CWE-126): [#def333]
brltty-6.7/minimal/Programs/./charset_iconv.c:144:21: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:120:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:135:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:136:5: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:138:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./charset_iconv.c:144:21: branch_true: ...to here
brltty-6.7/minimal/Programs/./charset_iconv.c:144:21: danger: out-of-bounds read from byte 88 till byte 95 but ‘convTable’ ends at byte 64
#  142|       }
#  143|   
#  144|->     *conv->handle = conv->newHandle;
#  145|     }
#  146|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
brltty-6.7/minimal/Programs/./clipboard.c:201:8: warning[-Wanalyzer-malloc-leak]: leak of ‘cpb’
brltty-6.7/minimal/Programs/./clipboard.c:194:14: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./clipboard.c:194:6: branch_true: following ‘true’ branch (when ‘cpb’ is non-NULL)...
brltty-6.7/minimal/Programs/./clipboard.c:195:5: branch_true: ...to here
brltty-6.7/minimal/Programs/./clipboard.c:201:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/minimal/Programs/./clipboard.c:201:8: danger: ‘cpb’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  199|       cpb->buffer.length = 0;
#  200|   
#  201|->     if ((cpb->history.queue = newQueue(deallocateClipboardHistoryEntry, NULL))) {
#  202|         return cpb;
#  203|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def335]
brltty-6.7/minimal/Programs/./cmd_queue.c:307:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/minimal/Programs/./cmd_queue.c:287:1: enter_function: entry to ‘pushCommandHandler’
brltty-6.7/minimal/Programs/./cmd_queue.c:296:6: branch_true: following ‘true’ branch (when ‘chl’ is non-NULL)...
brltty-6.7/minimal/Programs/./cmd_queue.c:297:5: branch_true: ...to here
brltty-6.7/minimal/Programs/./cmd_queue.c:305:35: call_function: inlined call to ‘getCommandHandlerTop’ from ‘pushCommandHandler’
brltty-6.7/minimal/Programs/./cmd_queue.c:307:28: branch_true: ...to here
brltty-6.7/minimal/Programs/./cmd_queue.c:307:28: danger: dereference of NULL ‘<unknown>’
#  305|         CommandHandlerLevel **top = getCommandHandlerTop();
#  306|   
#  307|->       chl->previousLevel = *top;
#  308|         *top = chl;
#  309|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def336]
brltty-6.7/minimal/Programs/./cmd_queue.c:323:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/minimal/Programs/./cmd_queue.c:321:1: enter_function: entry to ‘popCommandHandler’
brltty-6.7/minimal/Programs/./cmd_queue.c:322:31: call_function: inlined call to ‘getCommandHandlerTop’ from ‘popCommandHandler’
brltty-6.7/minimal/Programs/./cmd_queue.c:323:24: branch_true: ...to here
brltty-6.7/minimal/Programs/./cmd_queue.c:323:24: danger: dereference of NULL ‘<unknown>’
#  321|   popCommandHandler (void) {
#  322|     CommandHandlerLevel **top = getCommandHandlerTop();
#  323|->   CommandHandlerLevel *chl = *top;
#  324|   
#  325|     if (!chl) return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
brltty-6.7/minimal/Programs/./cmdline.c:466:18: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.7/minimal/Programs/./cmdline.c:1166:1: enter_function: entry to ‘processOptions’
brltty-6.7/minimal/Programs/./cmdline.c:1181:3: call_function: calling ‘processCommandLine’ from ‘processOptions’
#  464|   
#  465|           if (strncasecmp(noPrefix, word, noLength) == 0) {
#  466|->           name = strdup(&word[noLength]);
#  467|           } else {
#  468|             size_t size = noLength + strlen(word) + 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def338]
brltty-6.7/minimal/Programs/./gio.c:171:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/minimal/Programs/./gio.c:136:1: enter_function: entry to ‘gioConnectResource’
brltty-6.7/minimal/Programs/./gio.c:140:37: call_function: calling ‘gioGetProperties’ from ‘gioConnectResource’
brltty-6.7/minimal/Programs/./gio.c:140:37: return_function: returning to ‘gioConnectResource’ from ‘gioGetProperties’
brltty-6.7/minimal/Programs/./gio.c:142:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./gio.c:145:21: branch_true: ...to here
brltty-6.7/minimal/Programs/./gio.c:145:8: branch_true: following ‘true’ branch (when ‘endpoint’ is non-NULL)...
brltty-6.7/minimal/Programs/./gio.c:146:7: branch_true: ...to here
brltty-6.7/minimal/Programs/./gio.c:162:10: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./gio.c:165:9: branch_false: ...to here
brltty-6.7/minimal/Programs/./gio.c:168:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./gio.c:169:33: branch_true: ...to here
brltty-6.7/minimal/Programs/./gio.c:169:12: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./gio.c:171:63: branch_true: ...to here
brltty-6.7/minimal/Programs/./gio.c:171:63: release_memory: ‘0’ is NULL
brltty-6.7/minimal/Programs/./gio.c:171:42: danger: dereference of NULL ‘*endpoint.handleMethods’
#  169|           if ((endpoint->handle = properties->private->connectResource(identifier, descriptor))) {
#  170|             {
#  171|->             GioGetChainedEndpointMethod *getChainedEndpoint = endpoint->handleMethods->getChainedEndpoint;
#  172|   
#  173|               if (getChainedEndpoint) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
brltty-6.7/minimal/Programs/./gio.c:218:6: warning[-Wanalyzer-malloc-leak]: leak of ‘endpoint’
brltty-6.7/minimal/Programs/./gio.c:136:1: enter_function: entry to ‘gioConnectResource’
brltty-6.7/minimal/Programs/./gio.c:140:37: call_function: calling ‘gioGetProperties’ from ‘gioConnectResource’
brltty-6.7/minimal/Programs/./gio.c:140:37: return_function: returning to ‘gioConnectResource’ from ‘gioGetProperties’
brltty-6.7/minimal/Programs/./gio.c:142:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./gio.c:145:21: branch_true: ...to here
brltty-6.7/minimal/Programs/./gio.c:145:21: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./gio.c:145:8: branch_true: following ‘true’ branch (when ‘endpoint’ is non-NULL)...
brltty-6.7/minimal/Programs/./gio.c:146:7: branch_true: ...to here
brltty-6.7/minimal/Programs/./gio.c:162:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./gio.c:163:35: branch_true: ...to here
brltty-6.7/minimal/Programs/./gio.c:168:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./gio.c:169:33: branch_true: ...to here
brltty-6.7/minimal/Programs/./gio.c:169:12: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./gio.c:171:63: branch_true: ...to here
brltty-6.7/minimal/Programs/./gio.c:173:16: branch_true: following ‘true’ branch (when ‘getChainedEndpoint’ is non-NULL)...
brltty-6.7/minimal/Programs/./gio.c:174:46: branch_true: ...to here
brltty-6.7/minimal/Programs/./gio.c:176:18: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./gio.c:177:17: branch_true: ...to here
brltty-6.7/minimal/Programs/./gio.c:178:17: call_function: calling ‘gioDisconnectResource’ from ‘gioConnectResource’
brltty-6.7/minimal/Programs/./gio.c:178:17: return_function: returning to ‘gioConnectResource’ from ‘gioDisconnectResource’
brltty-6.7/minimal/Programs/./gio.c:218:6: danger: ‘endpoint’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  216|   int
#  217|   gioDisconnectResource (GioEndpoint *endpoint) {
#  218|->   if (--endpoint->referenceCount > 0) return 1;
#  219|   
#  220|     int ok = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def340]
brltty-6.7/minimal/Programs/./kbd_linux.c:647:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*kio_95(D)->kix.device.path, 0)’
brltty-6.7/minimal/Programs/./kbd_linux.c:647:36: acquire_resource: opened here
brltty-6.7/minimal/Programs/./kbd_linux.c:647:6: danger: ‘open(*kio_95(D)->kix.device.path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  645|     const char *deviceName = locatePathName(kio->kix->device.path);
#  646|   
#  647|->   if ((kio->kix->file.descriptor = open(kio->kix->device.path, O_RDONLY)) != -1) {
#  648|       struct stat status;
#  649|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def341]
brltty-6.7/minimal/Programs/./menu.c:186:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
brltty-6.7/minimal/Programs/./menu.c:1112:1: enter_function: entry to ‘getCurrentMenuItem’
brltty-6.7/minimal/Programs/./menu.c:1113:23: call_function: inlined call to ‘getSelectedMenuItem’ from ‘getCurrentMenuItem’
brltty-6.7/minimal/Programs/./menu.c:1113:23: call_function: inlined call to ‘getSelectedMenuItem’ from ‘getCurrentMenuItem’
brltty-6.7/minimal/Programs/./menu.c:1116:6: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./menu.c:1117:8: branch_true: ...to here
brltty-6.7/minimal/Programs/./menu.c:1117:8: branch_true: following ‘true’ branch (when ‘oldItem’ is non-NULL)...
brltty-6.7/minimal/Programs/./menu.c:1117:18: call_function: inlined call to ‘endMenuItem’ from ‘getCurrentMenuItem’
brltty-6.7/minimal/Programs/./menu.c:1118:24: call_function: calling ‘beginMenuItem’ from ‘getCurrentMenuItem’
#  184|   static int
#  185|   beginMenuItem (MenuItem *item) {
#  186|->   return !item->methods->beginItem || item->methods->beginItem(item);
#  187|   }
#  188|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def342]
brltty-6.7/minimal/Programs/./menu.c:191:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/minimal/Programs/./menu.c:906:1: enter_function: entry to ‘newSubmenuMenuItem’
brltty-6.7/minimal/Programs/./menu.c:911:6: branch_true: following ‘true’ branch (when ‘submenu’ is non-NULL)...
brltty-6.7/minimal/Programs/./menu.c:912:5: branch_true: ...to here
brltty-6.7/minimal/Programs/./menu.c:914:26: call_function: calling ‘newMenu’ from ‘newSubmenuMenuItem’
brltty-6.7/minimal/Programs/./menu.c:914:26: return_function: returning to ‘newSubmenuMenuItem’ from ‘newMenu’
brltty-6.7/minimal/Programs/./menu.c:914:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./menu.c:918:20: branch_true: ...to here
brltty-6.7/minimal/Programs/./menu.c:918:20: call_function: calling ‘newMenuItem’ from ‘newSubmenuMenuItem’
brltty-6.7/minimal/Programs/./menu.c:918:20: return_function: returning to ‘newSubmenuMenuItem’ from ‘newMenuItem’
brltty-6.7/minimal/Programs/./menu.c:918:10: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./menu.c:921:21: branch_true: ...to here
brltty-6.7/minimal/Programs/./menu.c:921:21: call_function: calling ‘newMenuItem’ from ‘newSubmenuMenuItem’
brltty-6.7/minimal/Programs/./menu.c:921:21: return_function: returning to ‘newSubmenuMenuItem’ from ‘newMenuItem’
brltty-6.7/minimal/Programs/./menu.c:921:12: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu.c:940:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu.c:940:7: call_function: calling ‘destroyMenu’ from ‘newSubmenuMenuItem’
#  189|   static void
#  190|   endMenuItem (MenuItem *item, int deallocating) {
#  191|->   if (item->methods->endItem) item->methods->endItem(item, deallocating);
#  192|   }
#  193|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def343]
brltty-6.7/minimal/Programs/./menu.c:284:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
brltty-6.7/minimal/Programs/./menu.c:895:1: enter_function: entry to ‘getComment_close’
brltty-6.7/minimal/Programs/./menu.c:896:27: call_function: calling ‘getParentMenuItem’ from ‘getComment_close’
brltty-6.7/minimal/Programs/./menu.c:896:27: return_function: returning to ‘getComment_close’ from ‘getParentMenuItem’
brltty-6.7/minimal/Programs/./menu.c:896:10: call_function: calling ‘getMenuItemTitle’ from ‘getComment_close’
#  282|   const char *
#  283|   getMenuItemTitle (const MenuItem *item) {
#  284|->   return getLocalizedText(item->title);
#  285|   }
#  286|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def344]
brltty-6.7/minimal/Programs/./menu.c:325:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/minimal/Programs/./menu.c:308:1: enter_function: entry to ‘newMenuItem’
brltty-6.7/minimal/Programs/./menu.c:323:22: call_function: calling ‘getMenuItem’ from ‘newMenuItem’
brltty-6.7/minimal/Programs/./menu.c:323:22: return_function: returning to ‘newMenuItem’ from ‘getMenuItem’
brltty-6.7/minimal/Programs/./menu.c:325:5: danger: dereference of NULL ‘getMenuItem(menu, *menu.items.count)’
#  323|       MenuItem *item = getMenuItem(menu, menu->items.count++);
#  324|   
#  325|->     item->menu = menu;
#  326|       item->setting = setting;
#  327|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def345]
brltty-6.7/minimal/Programs/./menu.c:1023:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/minimal/Programs/./menu.c:1081:1: enter_function: entry to ‘changeMenuSettingNext’
brltty-6.7/minimal/Programs/./menu.c:1082:20: call_function: calling ‘getCurrentMenuItem’ from ‘changeMenuSettingNext’
brltty-6.7/minimal/Programs/./menu.c:1082:20: return_function: returning to ‘changeMenuSettingNext’ from ‘getCurrentMenuItem’
brltty-6.7/minimal/Programs/./menu.c:1084:7: call_function: inlined call to ‘activateMenuItem’ from ‘changeMenuSettingNext’
# 1021|   static int
# 1022|   activateMenuItem (MenuItem *item) {
# 1023|->   if (!item->methods->activateItem) return 0;
# 1024|     item->methods->activateItem(item);
# 1025|     return 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def346]
brltty-6.7/minimal/Programs/./menu.c:1129:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*menu.activeItem’
brltty-6.7/minimal/Programs/./menu.c:1125:1: enter_function: entry to ‘getCurrentSubmenu’
brltty-6.7/minimal/Programs/./menu.c:1127:22: call_function: calling ‘getCurrentMenuItem’ from ‘getCurrentSubmenu’
brltty-6.7/minimal/Programs/./menu.c:1127:22: return_function: returning to ‘getCurrentSubmenu’ from ‘getCurrentMenuItem’
brltty-6.7/minimal/Programs/./menu.c:1129:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu.c:1130:10: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu.c:1130:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu.c:1131:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu.c:1127:22: call_function: calling ‘getCurrentMenuItem’ from ‘getCurrentSubmenu’
brltty-6.7/minimal/Programs/./menu.c:1127:22: return_function: returning to ‘getCurrentSubmenu’ from ‘getCurrentMenuItem’
brltty-6.7/minimal/Programs/./menu.c:1129:9: danger: dereference of NULL ‘getCurrentMenuItem(menu)’
# 1127|       MenuItem *item = getCurrentMenuItem(menu);
# 1128|   
# 1129|->     if (item->methods != &menuItemMethods_submenu) break;
# 1130|       if (!item->data.submenu->opened) break;
# 1131|       menu = item->data.submenu->menu;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def347]
brltty-6.7/minimal/Programs/./menu.c:1129:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/minimal/Programs/./menu.c:1125:1: enter_function: entry to ‘getCurrentSubmenu’
brltty-6.7/minimal/Programs/./menu.c:1127:22: call_function: calling ‘getCurrentMenuItem’ from ‘getCurrentSubmenu’
brltty-6.7/minimal/Programs/./menu.c:1127:22: return_function: returning to ‘getCurrentSubmenu’ from ‘getCurrentMenuItem’
brltty-6.7/minimal/Programs/./menu.c:1129:9: danger: dereference of NULL ‘getCurrentMenuItem(menu)’
# 1127|       MenuItem *item = getCurrentMenuItem(menu);
# 1128|   
# 1129|->     if (item->methods != &menuItemMethods_submenu) break;
# 1130|       if (!item->data.submenu->opened) break;
# 1131|       menu = item->data.submenu->menu;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
brltty-6.7/minimal/Programs/./menu_prefs.c:1551:26: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.7/minimal/Programs/./menu_prefs.c:662:1: enter_function: entry to ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:672:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:676:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:676:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:680:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:680:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:684:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:684:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:689:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:689:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:694:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:694:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:699:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:699:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:708:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:709:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:710:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:715:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:716:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:727:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:728:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:739:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:740:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:754:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:755:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:761:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:765:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:765:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:770:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:770:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:771:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:776:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:777:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:783:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:784:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:791:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:792:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:798:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:803:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:803:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:804:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:810:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:811:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:818:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:819:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:825:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:830:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:831:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:832:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:839:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:840:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:846:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:850:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:850:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:855:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:855:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:856:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:861:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:872:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:872:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:877:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:877:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:882:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:882:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:883:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:888:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:889:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:894:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:907:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:907:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:912:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:912:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:924:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:924:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:929:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:929:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:934:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:934:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:938:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:938:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:948:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:948:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:953:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:953:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:958:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:958:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:970:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:970:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:971:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:976:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:981:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:981:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:982:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:987:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:988:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:993:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:994:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1000:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1001:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1006:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1007:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1020:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1021:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1027:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1028:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1034:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1038:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1038:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1039:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1045:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1046:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1052:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1053:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1065:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1066:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1100:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1101:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1107:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1112:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1112:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1292:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1292:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1301:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1301:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1311:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1311:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1316:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1316:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1327:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1327:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1338:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1338:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1339:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1350:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1351:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1356:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1366:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1366:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1367:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1373:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1374:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1388:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1389:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1395:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1395:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1395:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1396:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1396:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1396:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1396:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1397:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1397:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1397:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1397:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1398:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1398:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1398:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1398:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1399:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1399:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1399:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1399:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1400:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1400:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1400:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1400:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1401:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1401:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1401:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1401:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1402:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1402:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1402:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1402:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1403:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1403:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1403:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1403:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1409:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1409:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1413:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1413:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1414:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1420:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1421:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1427:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1428:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1434:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1437:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1437:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1438:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1444:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1445:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1449:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1454:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1454:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1459:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1459:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1464:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1464:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1469:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1469:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1474:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1474:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1479:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1479:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1484:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1484:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1489:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1489:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1494:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1494:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1499:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1499:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1504:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1504:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1520:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1520:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1521:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1525:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1530:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1530:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1535:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1535:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1539:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1539:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1540:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1545:26: branch_true: following ‘true’ branch (when ‘category != 18’)...
brltty-6.7/minimal/Programs/./menu_prefs.c:1546:37: branch_true: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1548:15: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1545:55: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1545:26: branch_true: following ‘true’ branch (when ‘category != 18’)...
brltty-6.7/minimal/Programs/./menu_prefs.c:1546:37: branch_true: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1548:14: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1551:26: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./menu_prefs.c:1551:16: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
brltty-6.7/minimal/Programs/./menu_prefs.c:1552:13: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1556:15: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1558:15: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1545:26: branch_true: following ‘true’ branch (when ‘category != 18’)...
brltty-6.7/minimal/Programs/./menu_prefs.c:1546:37: branch_true: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1548:14: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1551:26: danger: ‘name’ leaks here; was allocated at [(281)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/280)
# 1549|               MenuString *name;
# 1550|   
# 1551|->             if (!(name = malloc(sizeof(*name)))) goto noItem;
# 1552|               memset(name, 0, sizeof(*name));
# 1553|               name->label = description;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
brltty-6.7/minimal/Programs/./menu_prefs.c:1601:5: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.7/minimal/Programs/./menu_prefs.c:662:1: enter_function: entry to ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:672:6: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:676:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:676:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:680:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:680:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:684:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:684:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:689:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:689:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:694:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:694:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:699:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:699:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:708:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:709:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:710:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:715:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:716:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:727:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:728:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:739:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:740:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:754:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:755:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:761:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:765:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:765:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:770:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:770:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:771:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:776:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:777:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:783:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:784:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:791:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:792:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:798:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:803:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:803:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:804:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:810:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:811:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:818:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:819:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:825:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:830:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:831:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:832:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:839:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:840:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:846:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:850:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:850:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:855:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:855:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:856:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:861:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:872:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:872:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:877:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:877:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:882:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:882:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:883:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:888:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:889:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:894:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:907:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:907:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:912:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:912:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:924:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:924:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:929:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:929:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:934:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:934:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:938:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:938:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:948:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:948:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:953:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:953:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:958:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:958:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:970:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:970:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:971:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:976:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:981:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:981:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:982:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:987:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:988:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:993:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:994:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1000:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1001:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1006:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1007:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1020:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1021:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1027:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1028:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1034:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1038:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1038:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1039:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1045:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1046:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1052:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1053:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1065:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1066:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1100:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1101:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1107:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1112:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1112:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1292:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1292:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1301:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1301:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1311:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1311:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1316:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1316:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1327:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1327:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1338:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1338:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1339:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1350:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1351:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1356:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1366:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1366:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1367:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1373:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1374:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1388:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1389:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1395:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1395:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1395:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1396:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1396:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1396:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1396:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1397:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1397:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1397:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1397:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1398:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1398:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1398:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1398:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1399:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1399:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1399:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1399:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1400:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1400:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1400:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1400:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1401:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1401:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1401:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1401:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1402:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1402:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1402:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1402:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1403:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1403:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/minimal/Programs/./menu_prefs.c:1403:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/minimal/Programs/./menu_prefs.c:1403:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1409:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1409:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1413:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1413:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1414:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1420:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1421:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1427:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1428:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1434:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1437:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1437:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1438:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1444:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1445:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1449:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1454:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1454:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1459:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1459:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1464:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1464:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1469:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1469:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1474:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1474:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1479:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1479:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1484:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1484:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1489:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1489:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1494:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1494:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1499:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1499:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1504:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1504:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1520:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1520:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1521:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1525:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1530:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1530:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1535:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1535:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1539:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1539:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1540:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1545:26: branch_true: following ‘true’ branch (when ‘category != 18’)...
brltty-6.7/minimal/Programs/./menu_prefs.c:1546:37: branch_true: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1548:15: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1545:55: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1545:26: branch_true: following ‘true’ branch (when ‘category != 18’)...
brltty-6.7/minimal/Programs/./menu_prefs.c:1546:37: branch_true: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1548:14: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1551:26: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./menu_prefs.c:1551:16: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
brltty-6.7/minimal/Programs/./menu_prefs.c:1552:13: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1556:15: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1558:15: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1545:26: branch_false: following ‘false’ branch (when ‘category == 18’)...
brltty-6.7/minimal/Programs/./menu_prefs.c:1578:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1578:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1579:5: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1583:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1595:7: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1595:7: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./menu_prefs.c:1601:23: branch_false: ...to here
brltty-6.7/minimal/Programs/./menu_prefs.c:1601:5: danger: ‘name’ leaks here; was allocated at [(281)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/280)
# 1599|     {
# 1600|       NAME(strtext("Log Messages"));
# 1601|->     logMessagesMenu = newSubmenuMenuItem(rootMenu, &itemName);
# 1602|     }
# 1603|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def350]
brltty-6.7/minimal/Programs/./message.c:250:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘((unsigned char*)&*mgp)[12]’
brltty-6.7/minimal/Programs/./message.c:233:1: enter_function: entry to ‘message’
brltty-6.7/minimal/Programs/./message.c:240:6: branch_true: following ‘true’ branch (when ‘mgp’ is non-NULL)...
brltty-6.7/minimal/Programs/./message.c:241:5: branch_true: ...to here
brltty-6.7/minimal/Programs/./message.c:247:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./message.c:248:7: branch_true: ...to here
brltty-6.7/minimal/Programs/./message.c:249:7: call_function: calling ‘presentMessage’ from ‘message’
brltty-6.7/minimal/Programs/./message.c:249:7: return_function: returning to ‘message’ from ‘presentMessage’
brltty-6.7/minimal/Programs/./message.c:250:11: danger: use of uninitialized value ‘((unsigned char*)&*mgp)[12]’ here
#  248|         mgp->deallocate = 0;
#  249|         presentMessage(mgp);
#  250|->       if (mgp->presented) presented = 1;
#  251|       } else {
#  252|         mgp->deallocate = 1;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def351]
brltty-6.7/minimal/Programs/./messages.c:136:19: warning[-Wanalyzer-null-argument]: use of NULL ‘localeSpecifier’ where non-null expected
brltty-6.7/minimal/Programs/./messages.c:529:1: enter_function: entry to ‘getPluralTranslation’
brltty-6.7/minimal/Programs/./messages.c:533:28: call_function: calling ‘findPluralTranslation’ from ‘getPluralTranslation’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  134|   static char *
#  135|   makeLocaleDirectoryPath (void) {
#  136|->   size_t length = strlen(localeSpecifier);
#  137|   
#  138|     char dialect[length + 1];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
brltty-6.7/minimal/Programs/./update.c:267:5: warning[-Wanalyzer-malloc-leak]: leak of ‘newArrayets’
brltty-6.7/minimal/Programs/./update.c:1342:1: enter_function: entry to ‘handleUpdateAlarm’
brltty-6.7/minimal/Programs/./update.c:1346:3: call_function: calling ‘suspendUpdates’ from ‘handleUpdateAlarm’
brltty-6.7/minimal/Programs/./update.c:1346:3: return_function: returning to ‘handleUpdateAlarm’ from ‘suspendUpdates’
brltty-6.7/minimal/Programs/./update.c:1347:3: call_function: calling ‘setUpdateTime’ from ‘handleUpdateAlarm’
brltty-6.7/minimal/Programs/./update.c:1347:3: return_function: returning to ‘handleUpdateAlarm’ from ‘setUpdateTime’
brltty-6.7/minimal/Programs/./update.c:1354:5: call_function: calling ‘doUpdate’ from ‘handleUpdateAlarm’
#  265|   
#  266|       brd->contracted.offsets.array = newArrayets;
#  267|->     brd->contracted.offsets.size = newSize;
#  268|     }
#  269|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def353]
brltty-6.7/minimal/Programs/./usb.c:461:40: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘descriptor.configuration.wTotalLength’
brltty-6.7/minimal/Programs/./usb.c:1525:1: enter_function: entry to ‘usbChooseChannel’
brltty-6.7/minimal/Programs/./usb.c:1547:34: call_function: calling ‘usbGetDriverCodes’ from ‘usbChooseChannel’
brltty-6.7/minimal/Programs/./usb.c:1547:34: return_function: returning to ‘usbChooseChannel’ from ‘usbGetDriverCodes’
brltty-6.7/minimal/Programs/./usb.c:1548:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./usb.c:1554:36: branch_false: ...to here
brltty-6.7/minimal/Programs/./usb.c:1555:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./usb.c:1556:45: branch_true: ...to here
brltty-6.7/minimal/Programs/./usb.c:1574:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./usb.c:1588:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./usb.c:1593:49: branch_false: ...to here
brltty-6.7/minimal/Programs/./usb.c:1593:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./usb.c:1598:10: branch_false: ...to here
brltty-6.7/minimal/Programs/./usb.c:1598:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./usb.c:1603:62: branch_false: ...to here
brltty-6.7/minimal/Programs/./usb.c:1603:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./usb.c:1608:57: branch_false: ...to here
brltty-6.7/minimal/Programs/./usb.c:1608:8: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./usb.c:1613:9: branch_false: ...to here
brltty-6.7/minimal/Programs/./usb.c:1613:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./usb.c:1614:39: branch_true: ...to here
brltty-6.7/minimal/Programs/./usb.c:1614:12: call_function: calling ‘usbConfigureDevice’ from ‘usbChooseChannel’
brltty-6.7/minimal/Programs/./usb.c:1614:12: return_function: returning to ‘usbChooseChannel’ from ‘usbConfigureDevice’
brltty-6.7/minimal/Programs/./usb.c:1614:10: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./usb.c:1619:12: branch_false: ...to here
brltty-6.7/minimal/Programs/./usb.c:1619:12: call_function: calling ‘usbVerifyInterface’ from ‘usbChooseChannel’
#  459|   
#  460|         if (number < device->descriptor.bNumConfigurations) {
#  461|->         int length = getLittleEndian16(descriptor.configuration.wTotalLength);
#  462|           UsbDescriptor *descriptors;
#  463|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
brltty-6.7/minimal/Programs/./usb.c:490:10: warning[-Wanalyzer-malloc-leak]: leak of ‘descriptors’
brltty-6.7/minimal/Programs/./usb.c:1482:1: enter_function: entry to ‘usbVerifyInterface’
brltty-6.7/minimal/Programs/./usb.c:1483:45: call_function: calling ‘usbInterfaceDescriptor’ from ‘usbVerifyInterface’
#  488|     }
#  489|   
#  490|->   return device->configuration;
#  491|   }
#  492|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
brltty-6.7/minimal/Programs/./usb_linux.c:1347:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
brltty-6.7/minimal/Programs/./usb_linux.c:1371:1: enter_function: entry to ‘usbAddHostDevice’
brltty-6.7/minimal/Programs/./usb_linux.c:1375:6: branch_true: following ‘true’ branch (when ‘host’ is non-NULL)...
brltty-6.7/minimal/Programs/./usb_linux.c:1376:28: branch_true: ...to here
brltty-6.7/minimal/Programs/./usb_linux.c:1376:28: acquire_memory: allocated here
brltty-6.7/minimal/Programs/./usb_linux.c:1376:8: branch_true: following ‘true’ branch...
brltty-6.7/minimal/Programs/./usb_linux.c:1377:25: branch_true: ...to here
brltty-6.7/minimal/Programs/./usb_linux.c:1379:12: call_function: calling ‘usbReadHostDeviceDescriptor’ from ‘usbAddHostDevice’
# 1345|   
# 1346|     if (file != -1) {
# 1347|->     int count = read(file, &host->usbDescriptor, UsbDescriptorSize_Device);
# 1348|   
# 1349|       if (count == -1) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def356]
brltty-6.7/minimal/Programs/./xbrlapi.c:702:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘state’ where non-null expected
brltty-6.7/minimal/Programs/./xbrlapi.c:1187:1: enter_function: entry to ‘main’
brltty-6.7/minimal/Programs/./xbrlapi.c:1198:5: branch_false: following ‘false’ branch...
brltty-6.7/minimal/Programs/./xbrlapi.c:1213:3: call_function: calling ‘tobrltty_init’ from ‘main’
brltty-6.7/minimal/Programs/./xbrlapi.c:1213:3: return_function: returning to ‘main’ from ‘tobrltty_init’
brltty-6.7/minimal/Programs/./xbrlapi.c:1227:3: call_function: calling ‘toX_f’ from ‘main’
#  700|   
#  701|       if (stream) {
#  702|->       fputs(state, stream);
#  703|         fclose(stream);
#  704|       }

Error: CPPCHECK_WARNING (CWE-562): [#def357]
brltty-6.7/minimal/Programs/brlapi_client.c:619: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  617|       handle->altPacket = packet;
#  618|       handle->altSize = size;
#  619|->     handle->altRes = &res;
#  620|       sem_init(&sem, 0, 0);
#  621|       handle->altSem = &sem;

Error: CPPCHECK_WARNING (CWE-562): [#def358]
brltty-6.7/minimal/Programs/brlapi_client.c:621: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  619|       handle->altRes = &res;
#  620|       sem_init(&sem, 0, 0);
#  621|->     handle->altSem = &sem;
#  622|     }
#  623|     pthread_mutex_unlock(&handle->read_mutex);

Error: CPPCHECK_WARNING (CWE-476): [#def359]
brltty-6.7/minimal/Programs/brlapi_common.h:606: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  604|     }
#  605|     ret=strdup(path);
#  606|->   delim=strchr(ret,'+');
#  607|     if (delim)
#  608|       *delim = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def360]
brltty-6.7/minimal/Programs/brlapi_server.c:2367: error[ctunullpointer]: Null pointer dereference: c
# 2365|     struct Subscription *s;
# 2366|   
# 2367|->   for (s=c->subscriptions.next; s!=&c->subscriptions; s=s->next) {
# 2368|       if (s->parameter == param
# 2369|   	&& s->subparam == subparam

Error: CPPCHECK_WARNING (CWE-476): [#def361]
brltty-6.7/minimal/Programs/brlapi_server.c:2516: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2514|         paramState[param].local_subscriptions++;
# 2515|       s = malloc(sizeof(*s));
# 2516|->     s->parameter = param;
# 2517|       s->subparam = subparam;
# 2518|       s->flags = flags;

Error: CPPCHECK_WARNING (CWE-476): [#def362]
brltty-6.7/minimal/Programs/brlapi_server.c:2517: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2515|       s = malloc(sizeof(*s));
# 2516|       s->parameter = param;
# 2517|->     s->subparam = subparam;
# 2518|       s->flags = flags;
# 2519|       s->next = c->subscriptions.next;

Error: CPPCHECK_WARNING (CWE-476): [#def363]
brltty-6.7/minimal/Programs/brlapi_server.c:2518: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2516|       s->parameter = param;
# 2517|       s->subparam = subparam;
# 2518|->     s->flags = flags;
# 2519|       s->next = c->subscriptions.next;
# 2520|       s->prev = &c->subscriptions;

Error: CPPCHECK_WARNING (CWE-476): [#def364]
brltty-6.7/minimal/Programs/brlapi_server.c:2519: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2517|       s->subparam = subparam;
# 2518|       s->flags = flags;
# 2519|->     s->next = c->subscriptions.next;
# 2520|       s->prev = &c->subscriptions;
# 2521|       s->next->prev = s;

Error: CPPCHECK_WARNING (CWE-476): [#def365]
brltty-6.7/minimal/Programs/brlapi_server.c:2520: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2518|       s->flags = flags;
# 2519|       s->next = c->subscriptions.next;
# 2520|->     s->prev = &c->subscriptions;
# 2521|       s->next->prev = s;
# 2522|       s->prev->next = s;

Error: CPPCHECK_WARNING (CWE-476): [#def366]
brltty-6.7/minimal/Programs/brlapi_server.c:2521: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2519|       s->next = c->subscriptions.next;
# 2520|       s->prev = &c->subscriptions;
# 2521|->     s->next->prev = s;
# 2522|       s->prev->next = s;
# 2523|       unlockMutex(&apiConnectionsMutex);

Error: CPPCHECK_WARNING (CWE-476): [#def367]
brltty-6.7/minimal/Programs/brlapi_server.c:2522: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2520|       s->prev = &c->subscriptions;
# 2521|       s->next->prev = s;
# 2522|->     s->prev->next = s;
# 2523|       unlockMutex(&apiConnectionsMutex);
# 2524|     } else if (flags & BRLAPI_PARAMF_UNSUBSCRIBE) {

Error: CPPCHECK_WARNING (CWE-401): [#def368]
brltty-6.7/minimal/Programs/brlapi_server.c:4524: error[memleakOnRealloc]: Common realloc mistake: 'coreWindowText' nulled but not freed upon failure
# 4522|     displayDimensions[1] = htonl(brl->textRows);
# 4523|     displaySize = brl->textColumns * brl->textRows;
# 4524|->   coreWindowText = realloc(coreWindowText, displaySize * sizeof(*coreWindowText));
# 4525|     coreWindowDots = realloc(coreWindowDots, displaySize * sizeof(*coreWindowDots));
# 4526|     coreWindowCursor = 0;

Error: CPPCHECK_WARNING (CWE-401): [#def369]
brltty-6.7/minimal/Programs/brlapi_server.c:4525: error[memleakOnRealloc]: Common realloc mistake: 'coreWindowDots' nulled but not freed upon failure
# 4523|     displaySize = brl->textColumns * brl->textRows;
# 4524|     coreWindowText = realloc(coreWindowText, displaySize * sizeof(*coreWindowText));
# 4525|->   coreWindowDots = realloc(coreWindowDots, displaySize * sizeof(*coreWindowDots));
# 4526|     coreWindowCursor = 0;
# 4527|     handleParamUpdate(NULL, NULL, BRLAPI_PARAM_DISPLAY_SIZE, 0, BRLAPI_PARAMF_GLOBAL, displayDimensions, sizeof(displayDimensions));

Error: CPPCHECK_WARNING (CWE-457): [#def370]
brltty-6.7/minimal/Programs/brltty-lscmds.c:236: 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
#  234|       commands[index] = &commandTable[index];
#  235|     }
#  236|->   qsort(commands, count, sizeof(commands[0]), compareCommands);
#  237|   
#  238|     for (int index=0; index<count; index+=1) {

Error: CPPCHECK_WARNING (CWE-457): [#def371]
brltty-6.7/minimal/Programs/brltty-ttb.c:402: warning[uninitvar]: Uninitialized variables: inputCharactersBuffer.character, inputCharactersBuffer.dots
#  400|   
#  401|     qsort(
#  402|->     inputCharactersBuffer, inputCharacterCount,
#  403|       sizeof(inputCharactersBuffer[0]),
#  404|       sortInputCharacterEntries

Error: CPPCHECK_WARNING (CWE-401): [#def372]
brltty-6.7/minimal/Programs/clipboard.c:208: error[memleak]: Memory leak: cpb
#  206|     }
#  207|   
#  208|->   return NULL;
#  209|   }
#  210|   

Error: CPPCHECK_WARNING (CWE-457): [#def373]
brltty-6.7/minimal/Programs/cmd_navigation.c:233: warning[uninitvar]: Uninitialized variable: text
#  231|     }
#  232|   
#  233|->   return !!rgxMatchTextCharacters(promptPatterns, text, length, NULL, NULL);
#  234|   }
#  235|   

Error: CPPCHECK_WARNING (CWE-252): [#def374]
brltty-6.7/minimal/Programs/file.c:1098: error[leakReturnValNotUsed]: Return value of allocation function 'freopen' is not stored.
# 1096|     }
# 1097|   
# 1098|->   if (!freopen(nullDevice, (output? "a": "r"), stream)) {
# 1099|       if (errno != ENOENT) {
# 1100|         char action[0X40];

Error: CPPCHECK_WARNING (CWE-401): [#def375]
brltty-6.7/minimal/Programs/hid_linux.c:92: error[memleak]: Memory leak: items
#   90|           items->count = size;
#   91|           memcpy(items->bytes, descriptor.value, size);
#   92|->         return (handle->hidItems = items);
#   93|         } else {
#   94|           logMallocError();

Error: CPPCHECK_WARNING (CWE-758): [#def376]
brltty-6.7/minimal/Programs/notes_pcm.c:218: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  216|          * high-order (sign) bit is set.
#  217|          */
#  218|->       int32_t amplitude = currentValue ^ (currentValue >> 31);
#  219|   
#  220|         /* Convert the 31-bit amplitude from unsigned to signed. */

Error: CPPCHECK_WARNING (CWE-457): [#def377]
brltty-6.7/minimal/Programs/serial_termios.c:222: error[uninitvar]: Uninitialized variable: size
#  220|   
#  221|     attributes->c_cflag &= ~CSIZE;
#  222|->   attributes->c_cflag |= size;
#  223|     return 1;
#  224|   }

Error: CPPCHECK_WARNING (CWE-457): [#def378]
brltty-6.7/minimal/Programs/update.c:300: warning[uninitvar]: Uninitialized variable: inputText
#  298|     contractText(
#  299|       contractionTable, &brd->contracted.cache,
#  300|->     inputText, &inputLength,
#  301|       cells, &outputLength,
#  302|       offsetsArray, getCursorOffsetForContracting()

Error: CPPCHECK_WARNING (CWE-457): [#def379]
brltty-6.7/minimal/Programs/update.c:723: warning[uninitvar]: Uninitialized variable: characters
#  721|     }
#  722|   
#  723|->   return writeBrailleCharacters(mode, characters, length);
#  724|   }
#  725|   

Error: CPPCHECK_WARNING (CWE-457): [#def380]
brltty-6.7/minimal/Programs/usb_linux.c:1293: error[uninitvar]: Uninitialized variable: &length
# 1291|           char path[strlen(*format) + (2 * 0X10) + 1];
# 1292|   
# 1293|->         snprintf(path, sizeof(path), *format, &length, bus, device, minor);
# 1294|           path[length] = 0;
# 1295|   

Error: CPPCHECK_WARNING (CWE-457): [#def381]
brltty-6.7/python3/Bindings/Java/bindings.c:1270: warning[uninitvar]: Uninitialized variable: booleans
# 1268|                 env, handle,
# 1269|                 parameter, subparam, flags,
# 1270|->               booleans, count
# 1271|               );
# 1272|             }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
brltty-6.7/python3/Bindings/Python/./bindings.c:70:5: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&str)’
brltty-6.7/python3/Bindings/Python/./bindings.c:66:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Bindings/Python/./bindings.c:70:54: acquire_memory: allocated here
brltty-6.7/python3/Bindings/Python/./bindings.c:70:5: danger: ‘strdup(&str)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   68|     else
#   69|   #endif
#   70|->     pthread_setspecific(brlapi_protocolExceptionKey, strdup(str));
#   71|   }
#   72|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def383]
brltty-6.7/python3/Bindings/Python/./bindings.c:146:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘descr’
brltty-6.7/python3/Bindings/Python/./bindings.c:132:42: enter_function: entry to ‘brlapi_python_watchParameter’
brltty-6.7/python3/Bindings/Python/./bindings.c:138:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Bindings/Python/./bindings.c:143:3: call_function: inlined call to ‘Py_INCREF’ from ‘brlapi_python_watchParameter’
brltty-6.7/python3/Bindings/Python/./bindings.c:145:11: branch_true: ...to here
brltty-6.7/python3/Bindings/Python/./bindings.c:145:11: acquire_memory: this call could return NULL
brltty-6.7/python3/Bindings/Python/./bindings.c:146:3: danger: ‘descr’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  144|   
#  145|     descr = malloc(sizeof(*descr));
#  146|->   descr->callback = func;
#  147|   
#  148|     brlapi_descr = brlapi__watchParameter(handle, param, subparam, flags, brlapi_python_parameter_callback, descr, NULL, 0);

Error: CPPCHECK_WARNING (CWE-476): [#def384]
brltty-6.7/python3/Bindings/Python/bindings.c:146: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: descr
#  144|   
#  145|     descr = malloc(sizeof(*descr));
#  146|->   descr->callback = func;
#  147|   
#  148|     brlapi_descr = brlapi__watchParameter(handle, param, subparam, flags, brlapi_python_parameter_callback, descr, NULL, 0);

Error: CPPCHECK_WARNING (CWE-476): [#def385]
brltty-6.7/python3/Bindings/Python/brlapi.auto.c:10597: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: __pyx_v_text
#10595|    * 				self.props.textSize = size
#10596|    */
#10597|->     (__pyx_v_text[__pyx_v_size]) = 0;
#10598|   
#10599|       /* "brlapi.pyx":345

Error: CPPCHECK_WARNING (CWE-476): [#def386]
brltty-6.7/python3/Bindings/Python/brlapi.auto.c:11063: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: __pyx_v_charset
#11061|    * 			else:
#11062|    */
#11063|->     (__pyx_v_charset[__pyx_v_size]) = 0;
#11064|   
#11065|       /* "brlapi.pyx":378

Error: CPPCHECK_WARNING (CWE-457): [#def387]
brltty-6.7/python3/Bindings/Tcl/bindings.c:450: warning[uninitvar]: Uninitialized variable: path
#  448|       }
#  449|   
#  450|->     TEST_BRLAPI_OK(brlapi__enterTtyModeWithPath(session->handle, path, count, options.driver));
#  451|     } else {
#  452|       TEST_BRLAPI_OK(brlapi__enterTtyModeWithPath(session->handle, NULL, 0, options.driver));

Error: CPPCHECK_WARNING (CWE-457): [#def388]
brltty-6.7/python3/Bindings/Tcl/bindings.c:670: warning[uninitvar]: Uninitialized variable: buffer
#  668|                 }
#  669|   
#  670|-> 	      TEST_BRLAPI_OK(brlapi__setParameter(session->handle, parameter, subparam, options.flags, buffer, sizeof(buffer)));
#  671|                 break;
#  672|               }

Error: CPPCHECK_WARNING (CWE-457): [#def389]
brltty-6.7/python3/Bindings/Tcl/bindings.c:683: warning[uninitvar]: Uninitialized variable: buffer
#  681|                 }
#  682|   
#  683|-> 	      TEST_BRLAPI_OK(brlapi__setParameter(session->handle, parameter, subparam, options.flags, buffer, sizeof(buffer)));
#  684|                 break;
#  685|               }

Error: CPPCHECK_WARNING (CWE-457): [#def390]
brltty-6.7/python3/Bindings/Tcl/bindings.c:696: warning[uninitvar]: Uninitialized variable: buffer
#  694|                 }
#  695|   
#  696|-> 	      TEST_BRLAPI_OK(brlapi__setParameter(session->handle, parameter, subparam, options.flags, buffer, sizeof(buffer)));
#  697|                 break;
#  698|               }

Error: CPPCHECK_WARNING (CWE-457): [#def391]
brltty-6.7/python3/Bindings/Tcl/bindings.c:709: warning[uninitvar]: Uninitialized variable: buffer
#  707|                 }
#  708|   
#  709|-> 	      TEST_BRLAPI_OK(brlapi__setParameter(session->handle, parameter, subparam, options.flags, buffer, sizeof(buffer)));
#  710|                 break;
#  711|               }

Error: CPPCHECK_WARNING (CWE-457): [#def392]
brltty-6.7/python3/Bindings/Tcl/bindings.c:722: warning[uninitvar]: Uninitialized variable: buffer
#  720|                 }
#  721|   
#  722|-> 	      TEST_BRLAPI_OK(brlapi__setParameter(session->handle, parameter, subparam, options.flags, buffer, sizeof(buffer)));
#  723|                 break;
#  724|               }

Error: CPPCHECK_WARNING (CWE-457): [#def393]
brltty-6.7/python3/Bindings/Tcl/bindings.c:1573: warning[uninitvar]: Uninitialized variable: cells
# 1571|       }
# 1572|   
# 1573|->     setByteArrayResult(interp, cells, elementCount);
# 1574|     } else {
# 1575|       setByteArrayResult(interp, NULL, elementCount);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def394]
brltty-6.7/python3/Drivers/Braille/Alva/./braille.c:1211:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
brltty-6.7/python3/Drivers/Braille/Alva/./braille.c:1722:1: enter_function: entry to ‘detectModel2u’
brltty-6.7/python3/Drivers/Braille/Alva/./braille.c:1727:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/Alva/./braille.c:1727:21: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/Alva/./braille.c:1727:21: call_function: calling ‘setVersions2’ from ‘detectModel2u’
# 1209|   
# 1210|     while (1) {
# 1211|->     STR_PRINTF("%u", *byte);
# 1212|       if (byte == overlay.bytes) break;
# 1213|   

Error: GCC_ANALYZER_WARNING (CWE-124): [#def395]
brltty-6.7/python3/Drivers/Braille/Alva/./braille.c:1214:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
brltty-6.7/python3/Drivers/Braille/Alva/./braille.c:1722:1: enter_function: entry to ‘detectModel2u’
brltty-6.7/python3/Drivers/Braille/Alva/./braille.c:1727:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/Alva/./braille.c:1727:21: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/Alva/./braille.c:1727:21: call_function: calling ‘setVersions2’ from ‘detectModel2u’
# 1212|       if (byte == overlay.bytes) break;
# 1213|   
# 1214|->     *byte = 0;
# 1215|       if (!overlay.u32) break;
# 1216|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def396]
brltty-6.7/python3/Drivers/Braille/B2G/./braille.c:284:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/braille0", 1)’
brltty-6.7/python3/Drivers/Braille/B2G/./braille.c:323:1: enter_function: entry to ‘brl_construct’
brltty-6.7/python3/Drivers/Braille/B2G/./braille.c:324:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/B2G/./braille.c:325:5: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/B2G/./braille.c:330:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/B2G/./braille.c:331:11: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/B2G/./braille.c:331:11: call_function: calling ‘openBrailleDevice’ from ‘brl_construct’
#  282|   static int
#  283|   openBrailleDevice (BrailleDisplay *brl) {
#  284|->   if ((brl->data->braille.fileDescriptor = open(BRAILLE_DEVICE_PATH, O_WRONLY)) != -1) {
#  285|       return 1;
#  286|     } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:396:6: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)*brl_43(D)->data.display.externalRows, (long unsigned int)*brl_43(D)->data.display.externalColumns)’
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1123:1: enter_function: entry to ‘brl_construct’
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1124:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1125:5: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1127:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1130:20: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1137:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1138:13: call_function: inlined call to ‘processParameters’ from ‘brl_construct’
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1138:13: call_function: inlined call to ‘processParameters’ from ‘brl_construct’
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1139:15: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1139:15: call_function: calling ‘makeArrays’ from ‘brl_construct’
#  394|   static int
#  395|   makeArrays (BrailleDisplay *brl) {
#  396|->   if ((brl->data->arrays.externalCells = calloc(brl->data->display.externalRows, brl->data->display.externalColumns))) {
#  397|       if ((brl->data->arrays.internalCells = calloc(brl->data->display.internalRows, brl->data->display.internalColumns))) {
#  398|         if ((brl->data->arrays.externalRows = malloc(ARRAY_SIZE(brl->data->arrays.externalRows, brl->data->display.externalRows)))) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def398]
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:499:23: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1085:1: enter_function: entry to ‘writeIdentifyRequest’
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:1086:10: call_function: calling ‘writeRequest’ from ‘writeIdentifyRequest’
#  497|     packet.fields.seq = 0;
#  498|   
#  499|->   uint8_t *checksum = mempcpy(packet.fields.data, data, size);
#  500|     uint16_t length = (checksum - &packet.fields.destination) + 1;
#  501|     putUint16(packet.fields.length, length);

Error: GCC_ANALYZER_WARNING (CWE-121): [#def399]
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:867:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:858:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:858:21: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:860:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:860:31: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:866:12: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:867:12: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/DotPad/./braille.c:867:7: danger: write of 1 byte at offset ‘(int)arraySize’ exceeds the buffer
#  865|   
#  866|       while (dataSize < arraySize) {
#  867|->       data[dataSize++] = 0;
#  868|       }
#  869|   

Error: CPPCHECK_WARNING (CWE-682): [#def400]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:200: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  198|     unsigned char*	p = buffer;
#  199|   
#  200|->   *p++ = 'D';
#  201|     *p++ = 'M';
#  202|     while (*q)

Error: CPPCHECK_WARNING (CWE-476): [#def401]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:200: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p++
#  198|     unsigned char*	p = buffer;
#  199|   
#  200|->   *p++ = 'D';
#  201|     *p++ = 'M';
#  202|     while (*q)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def402]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:200:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:197:27: acquire_memory: this call could return NULL
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:200:3: danger: ‘buffer’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  198|     unsigned char*	p = buffer;
#  199|   
#  200|->   *p++ = 'D';
#  201|     *p++ = 'M';
#  202|     while (*q)

Error: CPPCHECK_WARNING (CWE-476): [#def403]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:224: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  222|     unsigned char* str = malloc(256); /* the string to display */
#  223|   
#  224|->   buf[0] = '\005';
#  225|     buf[1] = 'F';
#  226|     buf[2] = 'N';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def404]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:224:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:221:24: acquire_memory: this call could return NULL
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:224:3: danger: ‘buf’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  222|     unsigned char* str = malloc(256); /* the string to display */
#  223|   
#  224|->   buf[0] = '\005';
#  225|     buf[1] = 'F';
#  226|     buf[2] = 'N';

Error: CPPCHECK_WARNING (CWE-476): [#def405]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:225: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  223|   
#  224|     buf[0] = '\005';
#  225|->   buf[1] = 'F';
#  226|     buf[2] = 'N';
#  227|     buf[3] = ext;

Error: CPPCHECK_WARNING (CWE-476): [#def406]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:226: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  224|     buf[0] = '\005';
#  225|     buf[1] = 'F';
#  226|->   buf[2] = 'N';
#  227|     buf[3] = ext;
#  228|     buf[4] = (env->brfilenum & 0xff00) >> 2;

Error: CPPCHECK_WARNING (CWE-476): [#def407]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:227: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  225|     buf[1] = 'F';
#  226|     buf[2] = 'N';
#  227|->   buf[3] = ext;
#  228|     buf[4] = (env->brfilenum & 0xff00) >> 2;
#  229|     buf[5] = env->brfilenum & 0x00ff;

Error: CPPCHECK_WARNING (CWE-476): [#def408]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:228: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  226|     buf[2] = 'N';
#  227|     buf[3] = ext;
#  228|->   buf[4] = (env->brfilenum & 0xff00) >> 2;
#  229|     buf[5] = env->brfilenum & 0x00ff;
#  230|     brl_write(buf+1, 5);

Error: CPPCHECK_WARNING (CWE-476): [#def409]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:229: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  227|     buf[3] = ext;
#  228|     buf[4] = (env->brfilenum & 0xff00) >> 2;
#  229|->   buf[5] = env->brfilenum & 0x00ff;
#  230|     brl_write(buf+1, 5);
#  231|     while (1)

Error: CPPCHECK_WARNING (CWE-682): [#def410]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:230: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  228|     buf[4] = (env->brfilenum & 0xff00) >> 2;
#  229|     buf[5] = env->brfilenum & 0x00ff;
#  230|->   brl_write(buf+1, 5);
#  231|     while (1)
#  232|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:242:14: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:217:25: enter_function: entry to ‘showbrfile’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:222:24: acquire_memory: allocated here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:230:3: call_function: calling ‘brl_write’ from ‘showbrfile’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:230:3: return_function: returning to ‘showbrfile’ from ‘brl_write’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:233:7: call_function: calling ‘brl_read’ from ‘showbrfile’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:233:7: return_function: returning to ‘showbrfile’ from ‘brl_read’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:239:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:241:7: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:242:14: danger: ‘str’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#  240|       {
#  241|         env->brfilenum--;
#  242|->       return 0;
#  243|       }
#  244|     strcpy((char*)str, env->brpc ? "BR>PC " : "PC>BR ");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def412]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:244:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘str’ where non-null expected
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:217:25: enter_function: entry to ‘showbrfile’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:222:24: acquire_memory: this call could return NULL
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:230:3: call_function: calling ‘brl_write’ from ‘showbrfile’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:230:3: return_function: returning to ‘showbrfile’ from ‘brl_write’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:233:7: call_function: calling ‘brl_read’ from ‘showbrfile’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:233:7: return_function: returning to ‘showbrfile’ from ‘brl_read’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:239:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:244:22: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_brl.c:244:3: danger: argument 1 (‘str’) from [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected
#argument 1 of ‘__builtin_memcpy’ must be non-null
#  242|         return 0;
#  243|       }
#  244|->   strcpy((char*)str, env->brpc ? "BR>PC " : "PC>BR ");
#  245|     strncat((char*)str, ((char*)&(buf[6])), buf[0] - 5);
#  246|     strcat((char*)str, ".");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def413]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:53:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tmpmap’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:42:17: acquire_memory: allocated here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:42:6: release_memory: assuming ‘tmpmap’ is NULL
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:42:6: branch_true: following ‘true’ branch (when ‘tmpmap’ is NULL)...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:44:7: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:47:6: branch_false: following ‘false’ branch (when ‘tmpmap2’ is non-NULL)...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:52:8: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:52:15: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:53:17: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:53:5: danger: dereference of NULL ‘tmpmap + i’
#   51|       }
#   52|     for (i = 0; i < size; i++)
#   53|->     tmpmap[i] = (*map)[i];
#   54|     p = tmpmap;
#   55|     p2 = tmpmap2;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def414]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:61:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:59:15: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:61:26: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:61:13: release_memory: ‘0’ is NULL
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:61:7: danger: dereference of NULL ‘*map + i’
#   59|     for (i = 0; i < newsize; i++)
#   60|       {
#   61|->       (*map)[i] = tmpmap2[i];
#   62|       }
#   63|     free(tmpmap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:85:9: acquire_memory: allocated here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:92:7: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: danger: ‘map’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   79|       {
#   80|         perror("open");
#   81|->       return 0;
#   82|       }
#   83|     fstat(fd, &st);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def416]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: warning[-Wanalyzer-malloc-leak]: leak of ‘newmap’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:86:12: acquire_memory: allocated here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:92:7: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: danger: ‘newmap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   79|       {
#   80|         perror("open");
#   81|->       return 0;
#   82|       }
#   83|     fstat(fd, &st);

Error: COMPILER_WARNING (CWE-252): [#def417]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘k2txt’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:87:3: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
#   87 |   read(fd, map, size);
#      |   ^~~~~~~~~~~~~~~~~~~
#   85|     map = malloc(size + 1);
#   86|     newmap = malloc(size + 1);
#   87|->   read(fd, map, size);
#   88|     map[size] = 0;
#   89|     close(fd);

Error: CPPCHECK_WARNING (CWE-401): [#def418]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:93: error[memleak]: Memory leak: newmap
#   91|       {
#   92|         perror("open");
#   93|->       return 0;
#   94|       }
#   95|     while (flg_hdr)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def419]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:97:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘map’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:85:9: acquire_memory: this call could return NULL
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:97:11: danger: ‘map + (sizetype)i’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   95|     while (flg_hdr)
#   96|       {
#   97|->       if (map[i] == 'R' && map[ i - 1] == '\x0b')
#   98|   	flg_hdr = 2;
#   99|         if (flg_hdr == 2 && map[i] == '$' && map[i - 1] == '\x1b')

Error: GCC_ANALYZER_WARNING (CWE-476): [#def420]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:111:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:86:12: acquire_memory: this call could return NULL
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:107:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:110:14: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:110:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:111:9: danger: ‘malloc(size + 1) + (sizetype)o’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  109|       {
#  110|         if (map[i] == 'P' && map[i - 1] == '\x1b')
#  111|-> 	newmap[o++] = '\n';
#  112|         if (map[i] == 'L' && map[i - 1] == '\x1b')
#  113|   	newmap[o++] = '\n';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def421]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:113:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:86:12: acquire_memory: this call could return NULL
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:107:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:110:14: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:112:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:113:9: danger: ‘malloc(size + 1) + (sizetype)o’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  111|   	newmap[o++] = '\n';
#  112|         if (map[i] == 'L' && map[i - 1] == '\x1b')
#  113|-> 	newmap[o++] = '\n';
#  114|         if (map[i] == '\x1b' && map[i - 1] == '\x1b')
#  115|   	newmap[o++] = '\x1b';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def422]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:115:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:86:12: acquire_memory: this call could return NULL
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:107:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:110:14: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:114:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:115:9: danger: ‘malloc(size + 1) + (sizetype)o’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  113|   	newmap[o++] = '\n';
#  114|         if (map[i] == '\x1b' && map[i - 1] == '\x1b')
#  115|-> 	newmap[o++] = '\x1b';
#  116|         if (map[i] != '\x1b' && map[i - 1] != '\x1b')
#  117|   	newmap[o++] = map[i];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def423]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:117:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:78:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:83:3: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:86:12: acquire_memory: this call could return NULL
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:90:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:107:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:110:14: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:116:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:117:9: danger: ‘malloc(size + 1) + (sizetype)o’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  115|   	newmap[o++] = '\x1b';
#  116|         if (map[i] != '\x1b' && map[i - 1] != '\x1b')
#  117|-> 	newmap[o++] = map[i];
#  118|         i++;
#  119|       }

Error: COMPILER_WARNING (CWE-252): [#def424]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:122:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  122 |   write(fd, newmap, size);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~
#  120|     /* Convert text into the current charset */
#  121|     size = dos2unix(env, &newmap, o);
#  122|->   write(fd, newmap, size);
#  123|     free(map);
#  124|     free(newmap);

Error: CPPCHECK_WARNING (CWE-686): [#def425]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:146: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
#  144|     /* Reconnaissance de l'extension */
#  145|     i = strlen((char*)name);
#  146|->   if (name[i - 2] == '.' && (toupper(name[i - 1] == 'K')
#  147|   			     || toupper(name[i - 1]) == 'T'
#  148|   			     || toupper(name[i - 1] == 'A')

Error: CPPCHECK_WARNING (CWE-686): [#def426]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:148: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
#  146|     if (name[i - 2] == '.' && (toupper(name[i - 1] == 'K')
#  147|   			     || toupper(name[i - 1]) == 'T'
#  148|-> 			     || toupper(name[i - 1] == 'A')
#  149|   			     || toupper(name[i - 1] == 'L')
#  150|   			     || toupper(name[i - 1]) == 'B'))

Error: CPPCHECK_WARNING (CWE-686): [#def427]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:149: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
#  147|   			     || toupper(name[i - 1]) == 'T'
#  148|   			     || toupper(name[i - 1] == 'A')
#  149|-> 			     || toupper(name[i - 1] == 'L')
#  150|   			     || toupper(name[i - 1]) == 'B'))
#  151|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:186:14: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:183:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:188:3: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:190:9: acquire_memory: allocated here
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:186:14: danger: ‘map’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  184|       {
#  185|         perror("open");
#  186|->       return 0;
#  187|       }
#  188|     fstat(fd, &st);

Error: COMPILER_WARNING (CWE-252): [#def429]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘txt2k’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_convert.c:191:3: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
#  191 |   read(fd, map, size);
#      |   ^~~~~~~~~~~~~~~~~~~
#  189|     size = st.st_size;
#  190|     map = malloc(size + 1);
#  191|->   read(fd, map, size);
#  192|     map[size] = 0;
#  193|     close(fd);

Error: COMPILER_WARNING (CWE-252): [#def430]
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_transfer.c: scope_hint: In function ‘brtopc’
brltty-6.7/python3/Drivers/Braille/EuroBraille/eutp_transfer.c:123:7: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  123 |       write(fd, &(buf[3]), buf[0] - 2);
#      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  121|         sprintf((char*)str, "... %s %d", filename, lines);
#  122|         brl_message((char*)str, 0);
#  123|->       write(fd, &(buf[3]), buf[0] - 2);
#  124|         lines++;
#  125|       }

Error: GCC_ANALYZER_WARNING (CWE-121): [#def431]
brltty-6.7/python3/Drivers/Braille/HandyTech/./braille.c:876:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
brltty-6.7/python3/Drivers/Braille/HandyTech/./braille.c:868:6: branch_true: following ‘true’ branch...
 branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/HandyTech/./braille.c:869:12: branch_true: following ‘true’ branch (when ‘size != 0’)...
brltty-6.7/python3/Drivers/Braille/HandyTech/./braille.c:869:18: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/HandyTech/./braille.c:871:21: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Braille/HandyTech/./braille.c:871:29: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/HandyTech/./braille.c:876:7: danger: write of ‘(unsigned char)hidInDataSize + 254’ bytes at offset ‘2’ exceeds the buffer
#  874|         report[0] = HT_HID_RPT_InData;
#  875|         report[1] = count;
#  876|->       memcpy(report+2, &buffer[index], count);
#  877|         memset(&report[count+2], 0, sizeof(report)-count-2);
#  878|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def432]
brltty-6.7/python3/Drivers/Braille/MDV/./braille.c:192:10: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.7/python3/Drivers/Braille/MDV/./braille.c:298:1: enter_function: entry to ‘writeIdentifyRequest’
brltty-6.7/python3/Drivers/Braille/MDV/./braille.c:299:10: call_function: calling ‘writePacket’ from ‘writeIdentifyRequest’
#  190|     packet.fields.code = code;
#  191|     packet.fields.length = length;
#  192|->   byte = mempcpy(byte, data, length);
#  193|   
#  194|     uint16_t checksum = calculateChecksum(&packet.fields.stx, byte);

Error: COMPILER_WARNING (CWE-457): [#def433]
brltty-6.7/python3/Drivers/Braille/Papenmeier/braille.c:913:28: warning[-Wmaybe-uninitialized]: ‘module.size’ may be used uninitialized
#  913 |     bit += 8 - module->bit - module->size;
#      |            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
brltty-6.7/python3/Drivers/Braille/Papenmeier/braille.c: scope_hint: In function ‘identifyTerminal2’
brltty-6.7/python3/Drivers/Braille/Papenmeier/braille.c:945:16: note: ‘module.size’ was declared here
#  945 |   InputModule2 module;
#      |                ^~~~~~
#  911|       bit += module->bit;
#  912|     } else {
#  913|->     bit += 8 - module->bit - module->size;
#  914|     }
#  915|   

Error: COMPILER_WARNING: [#def434]
brltty-6.7/python3/Drivers/Braille/TTY/../../../Headers/get_curses.h:54:2: warning[-Wcpp]: #warning curses package either unspecified or unsupported
#   52|   
#   53|   #else /* curses package */
#   54|-> #warning curses package either unspecified or unsupported
#   55|   #endif /* curses package */
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def435]
brltty-6.7/python3/Drivers/Braille/TechniBraille/./braille.c:86:10: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.7/python3/Drivers/Braille/TechniBraille/./braille.c:141:1: enter_function: entry to ‘brl_construct’
brltty-6.7/python3/Drivers/Braille/TechniBraille/./braille.c:142:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Braille/TechniBraille/./braille.c:147:23: branch_false: ...to here
brltty-6.7/python3/Drivers/Braille/TechniBraille/./braille.c:147:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/TechniBraille/./braille.c:149:5: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/TechniBraille/./braille.c:151:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/TechniBraille/./braille.c:152:11: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/TechniBraille/./braille.c:152:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/TechniBraille/./braille.c:153:13: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/TechniBraille/./braille.c:153:13: call_function: calling ‘writePacket’ from ‘brl_construct’
#   84|     *byte++ = function;
#   85|     *byte++ = count;
#   86|->   byte = mempcpy(byte, data, count);
#   87|   
#   88|     {

Error: CPPCHECK_WARNING (CWE-457): [#def436]
brltty-6.7/python3/Drivers/Braille/Virtual/braille.c:904: warning[uninitvar]: Uninitialized variable: columns1
#  902|   
#  903|     if (ok) {
#  904|->     int count1 = columns1 * rows1;
#  905|       int count2 = columns2 * rows2;
#  906|       unsigned char *braille;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def437]
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:95:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘keyname’ where non-null expected
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:185:5: branch_true: following ‘true’ branch (when ‘home’ is non-NULL)...
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:185:29: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:189:3: call_function: calling ‘Parse’ from ‘main’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#   93|      if (!strcmp(s,"keyname")) {
#   94|       keyname = (char *) malloc(strlen(c)+1);
#   95|->     strcpy(keyname,c);
#   96|      } else if (!strcmp(s,"socketport")) {
#   97|       socketport = (char *) malloc(strlen(c)+1);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def438]
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:98:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘socketport’ where non-null expected
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:185:5: branch_true: following ‘true’ branch (when ‘home’ is non-NULL)...
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:185:29: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:189:3: call_function: calling ‘Parse’ from ‘main’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#   96|      } else if (!strcmp(s,"socketport")) {
#   97|       socketport = (char *) malloc(strlen(c)+1);
#   98|->     strcpy(socketport,c);
#   99|      } else if (!strcmp(s,"vbs_ext")) {
#  100|       visiobases_ext = (char *) malloc(5);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def439]
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:101:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘visiobases_ext’ where non-null expected
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:185:5: branch_true: following ‘true’ branch (when ‘home’ is non-NULL)...
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:185:29: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:189:3: call_function: calling ‘Parse’ from ‘main’
#argument 1 of ‘__builtin_strncpy’ must be non-null
#   99|      } else if (!strcmp(s,"vbs_ext")) {
#  100|       visiobases_ext = (char *) malloc(5);
#  101|->     strncpy(visiobases_ext,c,4);
#  102|       visiobases_ext[4]=0;
#  103|      } else if (!strcmp(s,"vbs_dir")) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def440]
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:105:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘visiobases_dir’ where non-null expected
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:185:5: branch_true: following ‘true’ branch (when ‘home’ is non-NULL)...
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:185:29: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:189:3: call_function: calling ‘Parse’ from ‘main’
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  103|      } else if (!strcmp(s,"vbs_dir")) {
#  104|       visiobases_dir = (char *) malloc(strlen(c)+1);
#  105|->     strcpy(visiobases_dir,c);
#  106|      }
#  107|     } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:147:6: warning[-Wanalyzer-malloc-leak]: leak of ‘socketport’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:193:2: call_function: calling ‘CheckOptions’ from ‘main’
#  145|       if (argv[n][i]=='s') {
#  146|        if (++m==argc) grr(argv[0]);
#  147|->      socketport=argv[m];
#  148|       }
#  149|       if (argv[n][i]=='k') {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:151:6: warning[-Wanalyzer-malloc-leak]: leak of ‘keyname’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:175:5: enter_function: entry to ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: call_function: calling ‘CheckSendOrRecv’ from ‘main’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:182:11: return_function: returning to ‘main’ from ‘CheckSendOrRecv’
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_main.c:193:2: call_function: calling ‘CheckOptions’ from ‘main’
#  149|       if (argv[n][i]=='k') {
#  150|        if (++m==argc) grr(argv[0]);
#  151|->      keyname=argv[m];
#  152|       }
#  153|       if (argv[n][i]=='o') {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def443]
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_transfer.c:309:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘f2’ where non-null expected
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_transfer.c:307:5: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_transfer.c:307:25: branch_true: ...to here
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_transfer.c:308:14: acquire_memory: this call could return NULL
brltty-6.7/python3/Drivers/Braille/VisioBraille/./vstp_transfer.c:309:3: danger: argument 1 (‘f2’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  307|    if (visiobases_dir && (f[0]!='.' || (f[1]!='.' && f[1]!='/') || (f[1]=='.' && f[2]!='/'))) {
#  308|     char *f2 = malloc(strlen(visiobases_dir)+1+strlen(f));
#  309|->   strcpy(f2,visiobases_dir);
#  310|     strcat(f2,f);
#  311|     if (tryToFind(f2, &fd)) {

Error: CPPCHECK_WARNING (CWE-476): [#def444]
brltty-6.7/python3/Drivers/Braille/VisioBraille/vstp_main.c:95: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keyname
#   93|      if (!strcmp(s,"keyname")) {
#   94|       keyname = (char *) malloc(strlen(c)+1);
#   95|->     strcpy(keyname,c);
#   96|      } else if (!strcmp(s,"socketport")) {
#   97|       socketport = (char *) malloc(strlen(c)+1);

Error: CPPCHECK_WARNING (CWE-476): [#def445]
brltty-6.7/python3/Drivers/Braille/VisioBraille/vstp_main.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: socketport
#   96|      } else if (!strcmp(s,"socketport")) {
#   97|       socketport = (char *) malloc(strlen(c)+1);
#   98|->     strcpy(socketport,c);
#   99|      } else if (!strcmp(s,"vbs_ext")) {
#  100|       visiobases_ext = (char *) malloc(5);

Error: CPPCHECK_WARNING (CWE-476): [#def446]
brltty-6.7/python3/Drivers/Braille/VisioBraille/vstp_main.c:101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visiobases_ext
#   99|      } else if (!strcmp(s,"vbs_ext")) {
#  100|       visiobases_ext = (char *) malloc(5);
#  101|->     strncpy(visiobases_ext,c,4);
#  102|       visiobases_ext[4]=0;
#  103|      } else if (!strcmp(s,"vbs_dir")) {

Error: CPPCHECK_WARNING (CWE-476): [#def447]
brltty-6.7/python3/Drivers/Braille/VisioBraille/vstp_main.c:102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visiobases_ext
#  100|       visiobases_ext = (char *) malloc(5);
#  101|       strncpy(visiobases_ext,c,4);
#  102|->     visiobases_ext[4]=0;
#  103|      } else if (!strcmp(s,"vbs_dir")) {
#  104|       visiobases_dir = (char *) malloc(strlen(c)+1);

Error: CPPCHECK_WARNING (CWE-476): [#def448]
brltty-6.7/python3/Drivers/Braille/VisioBraille/vstp_main.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visiobases_dir
#  103|      } else if (!strcmp(s,"vbs_dir")) {
#  104|       visiobases_dir = (char *) malloc(strlen(c)+1);
#  105|->     strcpy(visiobases_dir,c);
#  106|      }
#  107|     } else {

Error: CPPCHECK_WARNING (CWE-476): [#def449]
brltty-6.7/python3/Drivers/Braille/VisioBraille/vstp_transfer.c:309: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: f2
#  307|    if (visiobases_dir && (f[0]!='.' || (f[1]!='.' && f[1]!='/') || (f[1]=='.' && f[2]!='/'))) {
#  308|     char *f2 = malloc(strlen(visiobases_dir)+1+strlen(f));
#  309|->   strcpy(f2,visiobases_dir);
#  310|     strcat(f2,f);
#  311|     if (tryToFind(f2, &fd)) {

Error: CPPCHECK_WARNING (CWE-476): [#def450]
brltty-6.7/python3/Drivers/Braille/VisioBraille/vstp_transfer.c:310: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: f2
#  308|     char *f2 = malloc(strlen(visiobases_dir)+1+strlen(f));
#  309|     strcpy(f2,visiobases_dir);
#  310|->   strcat(f2,f);
#  311|     if (tryToFind(f2, &fd)) {
#  312|      free(f2);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def451]
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:670:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘curRowLengths’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1497:1: enter_function: entry to ‘construct_AtSpi2Screen’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1514:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1519:8: branch_false: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1519:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: branch_false: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: call_function: calling ‘addWatches’ from ‘construct_AtSpi2Screen’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: return_function: returning to ‘construct_AtSpi2Screen’ from ‘addWatches’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1525:7: branch_false: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1525:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: branch_true: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: call_function: calling ‘initTerm’ from ‘construct_AtSpi2Screen’
#  668|         *d = 0;
#  669|       e = c;
#  670|->     curRowLengths[i] = (len = my_mbsrtowcs(NULL,&e,0,NULL)) + (d != NULL);
#  671|       if (len > curNumCols)
#  672|         curNumCols = len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def452]
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:680:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘curRows’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1497:1: enter_function: entry to ‘construct_AtSpi2Screen’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1514:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1519:8: branch_false: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1519:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: branch_false: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: call_function: calling ‘addWatches’ from ‘construct_AtSpi2Screen’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: return_function: returning to ‘construct_AtSpi2Screen’ from ‘addWatches’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1525:7: branch_false: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1525:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: branch_true: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: call_function: calling ‘initTerm’ from ‘construct_AtSpi2Screen’
#  678|         curRowLengths[i] = (len = 0) + (d != NULL);
#  679|       }
#  680|->     curRows[i] = malloc((len + (d!=NULL)) * sizeof(*curRows[i]));
#  681|       e = c;
#  682|       my_mbsrtowcs(curRows[i],&e,len,NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def453]
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:751:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1497:1: enter_function: entry to ‘construct_AtSpi2Screen’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1514:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1519:8: branch_false: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1519:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: branch_false: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: call_function: calling ‘addWatches’ from ‘construct_AtSpi2Screen’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:8: return_function: returning to ‘construct_AtSpi2Screen’ from ‘addWatches’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1523:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1525:7: branch_false: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1525:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: branch_true: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1526:5: call_function: calling ‘initTerm’ from ‘construct_AtSpi2Screen’
#  749|     }
#  750|     ret = malloc(sizeof(*ret) * count);
#  751|->   memcpy(ret, states, sizeof(*ret) * count);
#  752|   
#  753|   out:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def454]
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1299:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Watch’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1323:6: enter_function: entry to ‘a2WatchToggled’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1326:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1327:7: branch_true: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1327:7: call_function: calling ‘a2AddWatch’ from ‘a2WatchToggled’
# 1297|   {
# 1298|     struct a2Watch *a2Watch = calloc(1, sizeof(*a2Watch));
# 1299|->   a2Watch->watch = watch;
# 1300|     int flags = dbus_watch_get_flags(watch);
# 1301|     if (dbus_watch_get_enabled(watch))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def455]
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1366:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Timeout’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1382:6: enter_function: entry to ‘a2TimeoutToggled’
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1385:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1386:7: branch_true: ...to here
brltty-6.7/python3/Drivers/Screen/AtSpi2/./a2_screen.c:1386:7: call_function: calling ‘a2AddTimeout’ from ‘a2TimeoutToggled’
# 1364|   {
# 1365|     struct a2Timeout *a2Timeout = calloc(1, sizeof(*a2Timeout));
# 1366|->   a2Timeout->timeout = timeout;
# 1367|     if (dbus_timeout_get_enabled(timeout))
# 1368|       asyncNewRelativeAlarm(&a2Timeout->monitor, dbus_timeout_get_interval(timeout), a2ProcessTimeout, a2Timeout);

Error: CPPCHECK_WARNING (CWE-401): [#def456]
brltty-6.7/python3/Drivers/Screen/AtSpi2/a2_screen.c:246: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
#  244|   static void addRows(long pos, long num) {
#  245|     curNumRows += num;
#  246|->   curRows = realloc(curRows,curNumRows*sizeof(*curRows));
#  247|     curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
#  248|     memmove(curRows      +pos+num,curRows      +pos,(curNumRows-(pos+num))*sizeof(*curRows));

Error: CPPCHECK_WARNING (CWE-401): [#def457]
brltty-6.7/python3/Drivers/Screen/AtSpi2/a2_screen.c:247: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
#  245|     curNumRows += num;
#  246|     curRows = realloc(curRows,curNumRows*sizeof(*curRows));
#  247|->   curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
#  248|     memmove(curRows      +pos+num,curRows      +pos,(curNumRows-(pos+num))*sizeof(*curRows));
#  249|     memmove(curRowLengths+pos+num,curRowLengths+pos,(curNumRows-(pos+num))*sizeof(*curRowLengths));

Error: CPPCHECK_WARNING (CWE-401): [#def458]
brltty-6.7/python3/Drivers/Screen/AtSpi2/a2_screen.c:259: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
#  257|     memmove(curRowLengths+pos,curRowLengths+pos+num,(curNumRows-(pos+num))*sizeof(*curRowLengths));
#  258|     curNumRows -= num;
#  259|->   curRows = realloc(curRows,curNumRows*sizeof(*curRows));
#  260|     curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
#  261|   }

Error: CPPCHECK_WARNING (CWE-401): [#def459]
brltty-6.7/python3/Drivers/Screen/AtSpi2/a2_screen.c:260: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
#  258|     curNumRows -= num;
#  259|     curRows = realloc(curRows,curNumRows*sizeof(*curRows));
#  260|->   curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
#  261|   }
#  262|   

Error: CPPCHECK_WARNING (CWE-476): [#def460]
brltty-6.7/python3/Drivers/Screen/AtSpi2/a2_screen.c:751: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  749|     }
#  750|     ret = malloc(sizeof(*ret) * count);
#  751|->   memcpy(ret, states, sizeof(*ret) * count);
#  752|   
#  753|   out:

Error: CPPCHECK_WARNING (CWE-476): [#def461]
brltty-6.7/python3/Drivers/Screen/AtSpi2/a2_screen.c:1299: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a2Watch
# 1297|   {
# 1298|     struct a2Watch *a2Watch = calloc(1, sizeof(*a2Watch));
# 1299|->   a2Watch->watch = watch;
# 1300|     int flags = dbus_watch_get_flags(watch);
# 1301|     if (dbus_watch_get_enabled(watch))

Error: CPPCHECK_WARNING (CWE-476): [#def462]
brltty-6.7/python3/Drivers/Screen/AtSpi2/a2_screen.c:1366: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a2Timeout
# 1364|   {
# 1365|     struct a2Timeout *a2Timeout = calloc(1, sizeof(*a2Timeout));
# 1366|->   a2Timeout->timeout = timeout;
# 1367|     if (dbus_timeout_get_enabled(timeout))
# 1368|       asyncNewRelativeAlarm(&a2Timeout->monitor, dbus_timeout_get_interval(timeout), a2ProcessTimeout, a2Timeout);

Error: COMPILER_WARNING: [#def463]
brltty-6.7/python3/Drivers/Screen/FileViewer/../../../Headers/get_curses.h:54:2: warning[-Wcpp]: #warning curses package either unspecified or unsupported
#   52|   
#   53|   #else /* curses package */
#   54|-> #warning curses package either unspecified or unsupported
#   55|   #endif /* curses package */
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
brltty-6.7/python3/Drivers/Screen/Linux/./screen.c:435:7: warning[-Wanalyzer-malloc-leak]: leak of ‘sfm.entries’
brltty-6.7/python3/Drivers/Screen/Linux/./screen.c:1574:1: enter_function: entry to ‘testTextMode’
brltty-6.7/python3/Drivers/Screen/Linux/./screen.c:1581:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Drivers/Screen/Linux/./screen.c:1581:60: branch_true: ...to here
brltty-6.7/python3/Drivers/Screen/Linux/./screen.c:1581:60: call_function: calling ‘setTranslationTable’ from ‘testTextMode’
#  433|       case GIO_UNIMAP: {
#  434|         struct unimapdesc *sfm = argument;
#  435|->       memset(sfm, 0, sizeof(*sfm));
#  436|         sfm->entries = NULL;
#  437|         sfm->entry_ct = 0;

Error: CPPCHECK_WARNING (CWE-457): [#def465]
brltty-6.7/python3/Drivers/Screen/Linux/screen.c:607: warning[uninitvar]: Uninitialized variable: buffer
#  605|   static int
#  606|   readUnicodeData (off_t offset, void *buffer, size_t size) {
#  607|->   size_t count = (unicodeCacheBuffer? readUnicodeCache: readUnicodeDevice)(offset, buffer, size);
#  608|     if (count == size) return 1;
#  609|   

Error: CPPCHECK_WARNING (CWE-476): [#def466]
brltty-6.7/python3/Headers/bitfield.h:76: error[ctunullpointer]: Null pointer dereference: to
#   74|     }
#   75|   
#   76|-> DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(16)
#   77|   DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(32)
#   78|   DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(64)

Error: COMPILER_WARNING: [#def467]
brltty-6.7/python3/Drivers/Braille/TTY/braille.c:40: included_from: Included from here.
brltty-6.7/python3/Headers/get_curses.h:54:2: warning[-Wcpp]: #warning curses package either unspecified or unsupported
#   54 | #warning curses package either unspecified or unsupported
#      |  ^~~~~~~
#   52|   
#   53|   #else /* curses package */
#   54|-> #warning curses package either unspecified or unsupported
#   55|   #endif /* curses package */
#   56|   

Error: COMPILER_WARNING: [#def468]
brltty-6.7/python3/Programs/kbd_linux.c:27: included_from: Included from here.
brltty-6.7/python3/Programs/kbd_linux.c: scope_hint: In function ‘monitorKeyboard’
brltty-6.7/python3/Headers/strfmt.h:65:12: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 251
#   65 | STR_FORMAT(snprintf, __VA_ARGS__)
#      |            ^
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 6 and 261 bytes into a destination of size 256
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#   63|   
#   64|   #define STR_PRINTF(...) \
#   65|-> STR_FORMAT(snprintf, __VA_ARGS__)
#   66|   
#   67|   #define STR_VPRINTF(format, arguments) \

Error: COMPILER_WARNING: [#def469]
brltty-6.7/python3/Programs/../Headers/get_curses.h:54:2: warning[-Wcpp]: #warning curses package either unspecified or unsupported
#   52|   
#   53|   #else /* curses package */
#   54|-> #warning curses package either unspecified or unsupported
#   55|   #endif /* curses package */
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
brltty-6.7/python3/Programs/./auth.c:290:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*definition.initialize(parameter)’
brltty-6.7/python3/Programs/./auth.c:662:1: enter_function: entry to ‘authBegin’
brltty-6.7/python3/Programs/./auth.c:665:6: branch_true: following ‘true’ branch (when ‘auth’ is non-NULL)...
brltty-6.7/python3/Programs/./auth.c:666:5: branch_true: ...to here
brltty-6.7/python3/Programs/./auth.c:675:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./auth.c:676:12: branch_true: ...to here
brltty-6.7/python3/Programs/./auth.c:676:10: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./auth.c:681:35: branch_false: ...to here
brltty-6.7/python3/Programs/./auth.c:681:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./auth.c:682:13: branch_true: ...to here
brltty-6.7/python3/Programs/./auth.c:682:13: call_function: calling ‘initializeMethodDescriptors’ from ‘authBegin’
#  288|   
#  289|     if ((keyfile = malloc(sizeof(*keyfile)))) {
#  290|->     if (*parameter) {
#  291|         keyfile->path = parameter;
#  292|         return keyfile;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
brltty-6.7/python3/Programs/./brlapi_client.c:2528:16: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/python3/Programs/./brlapi_client.c:2509:12: enter_function: entry to ‘ignore_accept_keys’
brltty-6.7/python3/Programs/./brlapi_client.c:2523:15: branch_true: following ‘true’ branch (when ‘n > i’)...
brltty-6.7/python3/Programs/./brlapi_client.c:2524:41: branch_true: ...to here
brltty-6.7/python3/Programs/./brlapi_client.c:2524:10: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./brlapi_client.c:2526:11: branch_false: ...to here
brltty-6.7/python3/Programs/./brlapi_client.c:2526:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./brlapi_client.c:2527:9: branch_true: ...to here
brltty-6.7/python3/Programs/./brlapi_client.c:2527:9: call_function: calling ‘brlapi_error_location’ from ‘ignore_accept_keys’
brltty-6.7/python3/Programs/./brlapi_client.c:2527:9: return_function: returning to ‘ignore_accept_keys’ from ‘brlapi_error_location’
brltty-6.7/python3/Programs/./brlapi_client.c:2528:16: danger: ‘brlapi_error_location()’ leaks here; was allocated at [(16)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/15)
# 2526|         if (code[i] & mask) {
# 2527|   	brlapi_errno = BRLAPI_ERROR_INVALID_PARAMETER;
# 2528|-> 	return -1;
# 2529|         }
# 2530|         ranges[i].first = code[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
brltty-6.7/python3/Programs/./brlapi_client.c:2719:38: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/python3/Programs/./brlapi_client.c:2571:20: enter_function: entry to ‘brlapi__ignoreKeys’
brltty-6.7/python3/Programs/./brlapi_client.c:2573:10: call_function: calling ‘ignore_accept_keys’ from ‘brlapi__ignoreKeys’
# 2717|       pthread_once(&error_key_once, error_key_alloc);
# 2718|       if (pthread_error_ok) {
# 2719|->       if ((errorp=(brlapi_error_t *) pthread_getspecific(error_key)))
# 2720|           /* normal case */
# 2721|           return errorp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
brltty-6.7/python3/Programs/./brlapi_client.c:2724:13: warning[-Wanalyzer-malloc-leak]: leak of ‘errorp’
brltty-6.7/python3/Programs/./brlapi_client.c:2715:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./brlapi_client.c:2718:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./brlapi_client.c:2719:38: branch_true: ...to here
brltty-6.7/python3/Programs/./brlapi_client.c:2719:10: branch_false: following ‘false’ branch (when ‘errorp’ is NULL)...
brltty-6.7/python3/Programs/./brlapi_client.c:2724:21: branch_false: ...to here
brltty-6.7/python3/Programs/./brlapi_client.c:2724:21: acquire_memory: allocated here
brltty-6.7/python3/Programs/./brlapi_client.c:2724:12: branch_true: following ‘true’ branch (when ‘errorp’ is non-NULL)...
brltty-6.7/python3/Programs/./brlapi_client.c:2724:50: branch_true: ...to here
brltty-6.7/python3/Programs/./brlapi_client.c:2724:13: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Programs/./brlapi_client.c:2724:13: danger: ‘errorp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
# 2722|         else
# 2723|           /* on the first time, must allocate it */
# 2724|->         if ((errorp=malloc(sizeof(*errorp))) && !pthread_setspecific(error_key,errorp)) {
# 2725|   	  memset(errorp,0,sizeof(*errorp));
# 2726|             return errorp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
brltty-6.7/python3/Programs/./brlapi_common.h:289:5: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/python3/Programs/./brlapi_client.c:2509:12: enter_function: entry to ‘ignore_accept_keys’
brltty-6.7/python3/Programs/./brlapi_client.c:2533:12: call_function: calling ‘ignore_accept_key_ranges’ from ‘ignore_accept_keys’
#  287|     /* first send packet header (size+type) */
#  288|     if ((res=brlapi_writeFile(fd,&header[0],sizeof(header)))<0) {
#  289|->     LibcError("write in writePacket");
#  290|       return res;
#  291|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
brltty-6.7/python3/Programs/./brlapi_common.h:296:7: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/python3/Programs/./brlapi_client.c:2509:12: enter_function: entry to ‘ignore_accept_keys’
brltty-6.7/python3/Programs/./brlapi_client.c:2533:12: call_function: calling ‘ignore_accept_key_ranges’ from ‘ignore_accept_keys’
#  294|     if (size && buf)
#  295|       if ((res=brlapi_writeFile(fd,buf,size))<0) {
#  296|->       LibcError("write in writePacket");
#  297|         return res;
#  298|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/python3/Programs/./brlapi_common.h:305:9: enter_function: entry to ‘brlapi_readPacketHeader’
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: call_function: calling ‘brlapi_error_location’ from ‘brlapi_readPacketHeader’
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: return_function: returning to ‘brlapi_readPacketHeader’ from ‘brlapi_error_location’
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: call_function: calling ‘brlapi_error_location’ from ‘brlapi_readPacketHeader’
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: return_function: returning to ‘brlapi_readPacketHeader’ from ‘brlapi_error_location’
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: danger: ‘brlapi_error_location()’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  310|       if (res<0) {
#  311|         /* reports EINTR too */
#  312|->       LibcError("read in brlapi_readPacketHeader");
#  313|         return -1;
#  314|       } else return -2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
brltty-6.7/python3/Programs/./brlapi_common.h:313:14: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.7/python3/Programs/./brlapi_common.h:305:9: enter_function: entry to ‘brlapi_readPacketHeader’
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: call_function: calling ‘brlapi_error_location’ from ‘brlapi_readPacketHeader’
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: return_function: returning to ‘brlapi_readPacketHeader’ from ‘brlapi_error_location’
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: call_function: calling ‘brlapi_error_location’ from ‘brlapi_readPacketHeader’
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: return_function: returning to ‘brlapi_readPacketHeader’ from ‘brlapi_error_location’
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: call_function: calling ‘brlapi_error_location’ from ‘brlapi_readPacketHeader’
brltty-6.7/python3/Programs/./brlapi_common.h:312:7: return_function: returning to ‘brlapi_readPacketHeader’ from ‘brlapi_error_location’
brltty-6.7/python3/Programs/./brlapi_common.h:313:14: danger: ‘brlapi_error_location()’ leaks here; was allocated at [(20)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/19)
#  311|         /* reports EINTR too */
#  312|         LibcError("read in brlapi_readPacketHeader");
#  313|->       return -1;
#  314|       } else return -2;
#  315|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
brltty-6.7/python3/Programs/./brltty-lsinc.c:54:1: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.7/python3/Programs/./brltty-lsinc.c:49:12: acquire_memory: allocated here
brltty-6.7/python3/Programs/./brltty-lsinc.c:50:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
brltty-6.7/python3/Programs/./brltty-lsinc.c:51:10: branch_false: ...to here
brltty-6.7/python3/Programs/./brltty-lsinc.c:51:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./brltty-lsinc.c:52:5: branch_false: ...to here
brltty-6.7/python3/Programs/./brltty-lsinc.c:54:1: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   52|       printf("%s\n", name);
#   53|     }
#   54|-> }
#   55|   
#   56|   static DATA_CONDITION_TESTER(testConditionOperand) {

Error: GCC_ANALYZER_WARNING (CWE-121): [#def479]
brltty-6.7/python3/Programs/./charset_iconv.c:121:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:9: danger: out-of-bounds write from byte 88 till byte 95 but ‘convTable’ ends at byte 64
#  119|   
#  120|     while (conv < convEnd) {
#  121|->     if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
#  122|         logSystemError("iconv_open");
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def480]
brltty-6.7/python3/Programs/./charset_iconv.c:121:39: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:39: danger: out-of-bounds read from byte 80 till byte 87 but ‘convTable’ ends at byte 64
#  119|   
#  120|     while (conv < convEnd) {
#  121|->     if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
#  122|         logSystemError("iconv_open");
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def481]
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: danger: out-of-bounds read from byte 72 till byte 79 but ‘convTable’ ends at byte 64
#  119|   
#  120|     while (conv < convEnd) {
#  121|->     if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
#  122|         logSystemError("iconv_open");
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def482]
brltty-6.7/python3/Programs/./charset_iconv.c:126:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:122:7: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:124:14: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:125:9: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:126:9: danger: out-of-bounds read from byte 88 till byte 95 but ‘convTable’ ends at byte 64
#  124|         while (conv > convTable) {
#  125|           conv -= 1;
#  126|->         iconv_close(conv->newHandle);
#  127|         }
#  128|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[0].newHandle’
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/python3/Programs/./charset_iconv.c:124:14: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: danger: ‘convTable[0].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[1].newHandle’
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: danger: ‘convTable[1].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[2].newHandle’
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: danger: ‘convTable[2].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[3].newHandle’
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:124:14: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: danger: ‘convTable[3].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[4].newHandle’
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:135:10: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:147:6: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:147:6: branch_false: following ‘false’ branch (when ‘firstTime == 0’)...
 branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: danger: ‘convTable[4].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[5].newHandle’
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:135:10: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:147:6: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:147:6: branch_false: following ‘false’ branch (when ‘firstTime == 0’)...
 branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: danger: ‘convTable[5].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[6].newHandle’
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:28: acquire_memory: allocated here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:135:10: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:147:6: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:147:6: branch_false: following ‘false’ branch (when ‘firstTime == 0’)...
 branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:129:14: danger: ‘convTable[6].newHandle’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
#  127|         }
#  128|   
#  129|->       return 0;
#  130|       }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def490]
brltty-6.7/python3/Programs/./charset_iconv.c:138:10: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:135:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:136:5: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:138:10: danger: out-of-bounds read from byte 64 till byte 71 but ‘convTable’ ends at byte 64
#  136|       conv -= 1;
#  137|   
#  138|->     if (*conv->handle == CHARSET_ICONV_NULL) {
#  139|         firstTime = 1;
#  140|       } else {

Error: GCC_ANALYZER_WARNING (CWE-126): [#def491]
brltty-6.7/python3/Programs/./charset_iconv.c:144:21: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:121:56: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:121:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:132:5: branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:120:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:135:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:136:5: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:138:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./charset_iconv.c:144:21: branch_true: ...to here
brltty-6.7/python3/Programs/./charset_iconv.c:144:21: danger: out-of-bounds read from byte 88 till byte 95 but ‘convTable’ ends at byte 64
#  142|       }
#  143|   
#  144|->     *conv->handle = conv->newHandle;
#  145|     }
#  146|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
brltty-6.7/python3/Programs/./clipboard.c:201:8: warning[-Wanalyzer-malloc-leak]: leak of ‘cpb’
brltty-6.7/python3/Programs/./clipboard.c:194:14: acquire_memory: allocated here
brltty-6.7/python3/Programs/./clipboard.c:194:6: branch_true: following ‘true’ branch (when ‘cpb’ is non-NULL)...
brltty-6.7/python3/Programs/./clipboard.c:195:5: branch_true: ...to here
brltty-6.7/python3/Programs/./clipboard.c:201:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
brltty-6.7/python3/Programs/./clipboard.c:201:8: danger: ‘cpb’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  199|       cpb->buffer.length = 0;
#  200|   
#  201|->     if ((cpb->history.queue = newQueue(deallocateClipboardHistoryEntry, NULL))) {
#  202|         return cpb;
#  203|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def493]
brltty-6.7/python3/Programs/./cmd_queue.c:307:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/python3/Programs/./cmd_queue.c:287:1: enter_function: entry to ‘pushCommandHandler’
brltty-6.7/python3/Programs/./cmd_queue.c:296:6: branch_true: following ‘true’ branch (when ‘chl’ is non-NULL)...
brltty-6.7/python3/Programs/./cmd_queue.c:297:5: branch_true: ...to here
brltty-6.7/python3/Programs/./cmd_queue.c:305:35: call_function: inlined call to ‘getCommandHandlerTop’ from ‘pushCommandHandler’
brltty-6.7/python3/Programs/./cmd_queue.c:307:28: branch_true: ...to here
brltty-6.7/python3/Programs/./cmd_queue.c:307:28: danger: dereference of NULL ‘<unknown>’
#  305|         CommandHandlerLevel **top = getCommandHandlerTop();
#  306|   
#  307|->       chl->previousLevel = *top;
#  308|         *top = chl;
#  309|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def494]
brltty-6.7/python3/Programs/./cmd_queue.c:323:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/python3/Programs/./cmd_queue.c:321:1: enter_function: entry to ‘popCommandHandler’
brltty-6.7/python3/Programs/./cmd_queue.c:322:31: call_function: inlined call to ‘getCommandHandlerTop’ from ‘popCommandHandler’
brltty-6.7/python3/Programs/./cmd_queue.c:323:24: branch_true: ...to here
brltty-6.7/python3/Programs/./cmd_queue.c:323:24: danger: dereference of NULL ‘<unknown>’
#  321|   popCommandHandler (void) {
#  322|     CommandHandlerLevel **top = getCommandHandlerTop();
#  323|->   CommandHandlerLevel *chl = *top;
#  324|   
#  325|     if (!chl) return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
brltty-6.7/python3/Programs/./cmdline.c:466:18: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.7/python3/Programs/./cmdline.c:1166:1: enter_function: entry to ‘processOptions’
brltty-6.7/python3/Programs/./cmdline.c:1181:3: call_function: calling ‘processCommandLine’ from ‘processOptions’
#  464|   
#  465|           if (strncasecmp(noPrefix, word, noLength) == 0) {
#  466|->           name = strdup(&word[noLength]);
#  467|           } else {
#  468|             size_t size = noLength + strlen(word) + 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def496]
brltty-6.7/python3/Programs/./gio.c:171:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/python3/Programs/./gio.c:136:1: enter_function: entry to ‘gioConnectResource’
brltty-6.7/python3/Programs/./gio.c:140:37: call_function: calling ‘gioGetProperties’ from ‘gioConnectResource’
brltty-6.7/python3/Programs/./gio.c:140:37: return_function: returning to ‘gioConnectResource’ from ‘gioGetProperties’
brltty-6.7/python3/Programs/./gio.c:142:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./gio.c:145:21: branch_true: ...to here
brltty-6.7/python3/Programs/./gio.c:145:8: branch_true: following ‘true’ branch (when ‘endpoint’ is non-NULL)...
brltty-6.7/python3/Programs/./gio.c:146:7: branch_true: ...to here
brltty-6.7/python3/Programs/./gio.c:162:10: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./gio.c:165:9: branch_false: ...to here
brltty-6.7/python3/Programs/./gio.c:168:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./gio.c:169:33: branch_true: ...to here
brltty-6.7/python3/Programs/./gio.c:169:12: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./gio.c:171:63: branch_true: ...to here
brltty-6.7/python3/Programs/./gio.c:171:63: release_memory: ‘0’ is NULL
brltty-6.7/python3/Programs/./gio.c:171:42: danger: dereference of NULL ‘*endpoint.handleMethods’
#  169|           if ((endpoint->handle = properties->private->connectResource(identifier, descriptor))) {
#  170|             {
#  171|->             GioGetChainedEndpointMethod *getChainedEndpoint = endpoint->handleMethods->getChainedEndpoint;
#  172|   
#  173|               if (getChainedEndpoint) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
brltty-6.7/python3/Programs/./gio.c:218:6: warning[-Wanalyzer-malloc-leak]: leak of ‘endpoint’
brltty-6.7/python3/Programs/./gio.c:136:1: enter_function: entry to ‘gioConnectResource’
brltty-6.7/python3/Programs/./gio.c:140:37: call_function: calling ‘gioGetProperties’ from ‘gioConnectResource’
brltty-6.7/python3/Programs/./gio.c:140:37: return_function: returning to ‘gioConnectResource’ from ‘gioGetProperties’
brltty-6.7/python3/Programs/./gio.c:142:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./gio.c:145:21: branch_true: ...to here
brltty-6.7/python3/Programs/./gio.c:145:21: acquire_memory: allocated here
brltty-6.7/python3/Programs/./gio.c:145:8: branch_true: following ‘true’ branch (when ‘endpoint’ is non-NULL)...
brltty-6.7/python3/Programs/./gio.c:146:7: branch_true: ...to here
brltty-6.7/python3/Programs/./gio.c:162:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./gio.c:163:35: branch_true: ...to here
brltty-6.7/python3/Programs/./gio.c:168:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./gio.c:169:33: branch_true: ...to here
brltty-6.7/python3/Programs/./gio.c:169:12: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./gio.c:171:63: branch_true: ...to here
brltty-6.7/python3/Programs/./gio.c:173:16: branch_true: following ‘true’ branch (when ‘getChainedEndpoint’ is non-NULL)...
brltty-6.7/python3/Programs/./gio.c:174:46: branch_true: ...to here
brltty-6.7/python3/Programs/./gio.c:176:18: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./gio.c:177:17: branch_true: ...to here
brltty-6.7/python3/Programs/./gio.c:178:17: call_function: calling ‘gioDisconnectResource’ from ‘gioConnectResource’
brltty-6.7/python3/Programs/./gio.c:178:17: return_function: returning to ‘gioConnectResource’ from ‘gioDisconnectResource’
brltty-6.7/python3/Programs/./gio.c:218:6: danger: ‘endpoint’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  216|   int
#  217|   gioDisconnectResource (GioEndpoint *endpoint) {
#  218|->   if (--endpoint->referenceCount > 0) return 1;
#  219|   
#  220|     int ok = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def498]
brltty-6.7/python3/Programs/./kbd_linux.c:647:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*kio_95(D)->kix.device.path, 0)’
brltty-6.7/python3/Programs/./kbd_linux.c:647:36: acquire_resource: opened here
brltty-6.7/python3/Programs/./kbd_linux.c:647:6: danger: ‘open(*kio_95(D)->kix.device.path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  645|     const char *deviceName = locatePathName(kio->kix->device.path);
#  646|   
#  647|->   if ((kio->kix->file.descriptor = open(kio->kix->device.path, O_RDONLY)) != -1) {
#  648|       struct stat status;
#  649|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def499]
brltty-6.7/python3/Programs/./menu.c:186:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
brltty-6.7/python3/Programs/./menu.c:1112:1: enter_function: entry to ‘getCurrentMenuItem’
brltty-6.7/python3/Programs/./menu.c:1113:23: call_function: inlined call to ‘getSelectedMenuItem’ from ‘getCurrentMenuItem’
brltty-6.7/python3/Programs/./menu.c:1113:23: call_function: inlined call to ‘getSelectedMenuItem’ from ‘getCurrentMenuItem’
brltty-6.7/python3/Programs/./menu.c:1116:6: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./menu.c:1117:8: branch_true: ...to here
brltty-6.7/python3/Programs/./menu.c:1117:8: branch_true: following ‘true’ branch (when ‘oldItem’ is non-NULL)...
brltty-6.7/python3/Programs/./menu.c:1117:18: call_function: inlined call to ‘endMenuItem’ from ‘getCurrentMenuItem’
brltty-6.7/python3/Programs/./menu.c:1118:24: call_function: calling ‘beginMenuItem’ from ‘getCurrentMenuItem’
#  184|   static int
#  185|   beginMenuItem (MenuItem *item) {
#  186|->   return !item->methods->beginItem || item->methods->beginItem(item);
#  187|   }
#  188|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def500]
brltty-6.7/python3/Programs/./menu.c:191:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/python3/Programs/./menu.c:906:1: enter_function: entry to ‘newSubmenuMenuItem’
brltty-6.7/python3/Programs/./menu.c:911:6: branch_true: following ‘true’ branch (when ‘submenu’ is non-NULL)...
brltty-6.7/python3/Programs/./menu.c:912:5: branch_true: ...to here
brltty-6.7/python3/Programs/./menu.c:914:26: call_function: calling ‘newMenu’ from ‘newSubmenuMenuItem’
brltty-6.7/python3/Programs/./menu.c:914:26: return_function: returning to ‘newSubmenuMenuItem’ from ‘newMenu’
brltty-6.7/python3/Programs/./menu.c:914:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./menu.c:918:20: branch_true: ...to here
brltty-6.7/python3/Programs/./menu.c:918:20: call_function: calling ‘newMenuItem’ from ‘newSubmenuMenuItem’
brltty-6.7/python3/Programs/./menu.c:918:20: return_function: returning to ‘newSubmenuMenuItem’ from ‘newMenuItem’
brltty-6.7/python3/Programs/./menu.c:918:10: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./menu.c:921:21: branch_true: ...to here
brltty-6.7/python3/Programs/./menu.c:921:21: call_function: calling ‘newMenuItem’ from ‘newSubmenuMenuItem’
brltty-6.7/python3/Programs/./menu.c:921:21: return_function: returning to ‘newSubmenuMenuItem’ from ‘newMenuItem’
brltty-6.7/python3/Programs/./menu.c:921:12: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu.c:940:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu.c:940:7: call_function: calling ‘destroyMenu’ from ‘newSubmenuMenuItem’
#  189|   static void
#  190|   endMenuItem (MenuItem *item, int deallocating) {
#  191|->   if (item->methods->endItem) item->methods->endItem(item, deallocating);
#  192|   }
#  193|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def501]
brltty-6.7/python3/Programs/./menu.c:284:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
brltty-6.7/python3/Programs/./menu.c:895:1: enter_function: entry to ‘getComment_close’
brltty-6.7/python3/Programs/./menu.c:896:27: call_function: calling ‘getParentMenuItem’ from ‘getComment_close’
brltty-6.7/python3/Programs/./menu.c:896:27: return_function: returning to ‘getComment_close’ from ‘getParentMenuItem’
brltty-6.7/python3/Programs/./menu.c:896:10: call_function: calling ‘getMenuItemTitle’ from ‘getComment_close’
#  282|   const char *
#  283|   getMenuItemTitle (const MenuItem *item) {
#  284|->   return getLocalizedText(item->title);
#  285|   }
#  286|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def502]
brltty-6.7/python3/Programs/./menu.c:325:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/python3/Programs/./menu.c:308:1: enter_function: entry to ‘newMenuItem’
brltty-6.7/python3/Programs/./menu.c:323:22: call_function: calling ‘getMenuItem’ from ‘newMenuItem’
brltty-6.7/python3/Programs/./menu.c:323:22: return_function: returning to ‘newMenuItem’ from ‘getMenuItem’
brltty-6.7/python3/Programs/./menu.c:325:5: danger: dereference of NULL ‘getMenuItem(menu, *menu.items.count)’
#  323|       MenuItem *item = getMenuItem(menu, menu->items.count++);
#  324|   
#  325|->     item->menu = menu;
#  326|       item->setting = setting;
#  327|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def503]
brltty-6.7/python3/Programs/./menu.c:1023:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/python3/Programs/./menu.c:1081:1: enter_function: entry to ‘changeMenuSettingNext’
brltty-6.7/python3/Programs/./menu.c:1082:20: call_function: calling ‘getCurrentMenuItem’ from ‘changeMenuSettingNext’
brltty-6.7/python3/Programs/./menu.c:1082:20: return_function: returning to ‘changeMenuSettingNext’ from ‘getCurrentMenuItem’
brltty-6.7/python3/Programs/./menu.c:1084:7: call_function: inlined call to ‘activateMenuItem’ from ‘changeMenuSettingNext’
# 1021|   static int
# 1022|   activateMenuItem (MenuItem *item) {
# 1023|->   if (!item->methods->activateItem) return 0;
# 1024|     item->methods->activateItem(item);
# 1025|     return 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def504]
brltty-6.7/python3/Programs/./menu.c:1129:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*menu.activeItem’
brltty-6.7/python3/Programs/./menu.c:1125:1: enter_function: entry to ‘getCurrentSubmenu’
brltty-6.7/python3/Programs/./menu.c:1127:22: call_function: calling ‘getCurrentMenuItem’ from ‘getCurrentSubmenu’
brltty-6.7/python3/Programs/./menu.c:1127:22: return_function: returning to ‘getCurrentSubmenu’ from ‘getCurrentMenuItem’
brltty-6.7/python3/Programs/./menu.c:1129:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu.c:1130:10: branch_false: ...to here
brltty-6.7/python3/Programs/./menu.c:1130:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu.c:1131:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu.c:1127:22: call_function: calling ‘getCurrentMenuItem’ from ‘getCurrentSubmenu’
brltty-6.7/python3/Programs/./menu.c:1127:22: return_function: returning to ‘getCurrentSubmenu’ from ‘getCurrentMenuItem’
brltty-6.7/python3/Programs/./menu.c:1129:9: danger: dereference of NULL ‘getCurrentMenuItem(menu)’
# 1127|       MenuItem *item = getCurrentMenuItem(menu);
# 1128|   
# 1129|->     if (item->methods != &menuItemMethods_submenu) break;
# 1130|       if (!item->data.submenu->opened) break;
# 1131|       menu = item->data.submenu->menu;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def505]
brltty-6.7/python3/Programs/./menu.c:1129:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.7/python3/Programs/./menu.c:1125:1: enter_function: entry to ‘getCurrentSubmenu’
brltty-6.7/python3/Programs/./menu.c:1127:22: call_function: calling ‘getCurrentMenuItem’ from ‘getCurrentSubmenu’
brltty-6.7/python3/Programs/./menu.c:1127:22: return_function: returning to ‘getCurrentSubmenu’ from ‘getCurrentMenuItem’
brltty-6.7/python3/Programs/./menu.c:1129:9: danger: dereference of NULL ‘getCurrentMenuItem(menu)’
# 1127|       MenuItem *item = getCurrentMenuItem(menu);
# 1128|   
# 1129|->     if (item->methods != &menuItemMethods_submenu) break;
# 1130|       if (!item->data.submenu->opened) break;
# 1131|       menu = item->data.submenu->menu;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
brltty-6.7/python3/Programs/./menu_prefs.c:1551:26: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.7/python3/Programs/./menu_prefs.c:662:1: enter_function: entry to ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:672:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:676:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:676:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:680:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:680:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:684:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:684:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:689:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:689:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:694:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:694:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:699:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:699:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:708:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:709:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:710:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:715:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:716:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:727:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:728:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:739:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:740:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:754:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:755:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:761:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:765:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:765:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:770:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:770:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:771:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:776:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:777:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:783:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:784:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:791:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:792:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:798:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:803:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:803:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:804:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:810:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:811:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:818:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:819:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:825:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:830:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:831:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:832:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:839:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:840:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:846:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:850:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:850:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:855:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:855:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:856:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:861:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:872:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:872:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:877:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:877:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:882:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:882:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:883:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:888:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:889:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:894:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:907:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:907:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:912:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:912:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:924:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:924:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:929:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:929:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:934:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:934:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:938:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:938:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:948:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:948:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:953:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:953:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:958:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:958:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:970:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:970:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:971:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:976:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:981:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:981:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:982:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:987:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:988:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:993:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:994:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1000:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1001:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1006:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1007:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1020:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1021:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1027:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1028:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1034:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1038:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1038:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1039:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1045:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1046:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1052:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1053:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1065:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1066:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1073:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1074:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1081:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1082:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1086:35: call_function: calling ‘makeMidiInstrumentMenuStrings’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1086:35: return_function: returning to ‘makePreferencesMenu’ from ‘makeMidiInstrumentMenuStrings’
brltty-6.7/python3/Programs/./menu_prefs.c:1087:10: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1091:9: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1091:9: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1092:9: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1100:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1101:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1107:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1112:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1112:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1118:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1118:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1123:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1123:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1130:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1130:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1134:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1134:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1139:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1139:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1140:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1145:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1146:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1151:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1152:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1157:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1158:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1163:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1164:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1169:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1170:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1175:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1176:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1181:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1182:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1187:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1191:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1191:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1192:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1198:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1199:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1205:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1206:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1218:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1219:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1233:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1243:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1243:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1253:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1253:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1258:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1258:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1263:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1263:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1264:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1269:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1270:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1276:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1277:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1284:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1285:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1292:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1301:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1301:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1311:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1311:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1316:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1316:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1327:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1327:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1338:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1338:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1339:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1350:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1351:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1356:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1366:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1366:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1367:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1373:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1374:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1388:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1389:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1395:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1395:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1395:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1396:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1396:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1396:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1396:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1397:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1397:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1397:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1397:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1398:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1398:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1398:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1398:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1399:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1399:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1399:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1399:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1400:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1400:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1400:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1400:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1401:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1401:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1401:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1401:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1402:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1402:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1402:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1402:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1403:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1403:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1403:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1403:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1409:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1409:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1413:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1413:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1414:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1420:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1421:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1427:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1428:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1434:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1437:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1437:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1438:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1444:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1445:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1449:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1454:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1454:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1459:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1459:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1464:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1464:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1469:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1469:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1474:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1474:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1479:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1479:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1484:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1484:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1489:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1489:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1494:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1494:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1499:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1499:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1504:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1504:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1520:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1520:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1521:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1525:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1530:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1530:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1535:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1535:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1539:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1539:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1540:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1545:26: branch_true: following ‘true’ branch (when ‘category != 18’)...
brltty-6.7/python3/Programs/./menu_prefs.c:1546:37: branch_true: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1548:15: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1545:55: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1545:26: branch_true: following ‘true’ branch (when ‘category != 18’)...
brltty-6.7/python3/Programs/./menu_prefs.c:1546:37: branch_true: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1548:14: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1551:26: acquire_memory: allocated here
brltty-6.7/python3/Programs/./menu_prefs.c:1551:16: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
brltty-6.7/python3/Programs/./menu_prefs.c:1552:13: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1556:15: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1558:15: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1545:26: branch_true: following ‘true’ branch (when ‘category != 18’)...
brltty-6.7/python3/Programs/./menu_prefs.c:1546:37: branch_true: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1548:14: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1551:26: danger: ‘name’ leaks here; was allocated at [(344)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/343)
# 1549|               MenuString *name;
# 1550|   
# 1551|->             if (!(name = malloc(sizeof(*name)))) goto noItem;
# 1552|               memset(name, 0, sizeof(*name));
# 1553|               name->label = description;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
brltty-6.7/python3/Programs/./menu_prefs.c:1601:5: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.7/python3/Programs/./menu_prefs.c:662:1: enter_function: entry to ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:672:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:676:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:676:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:680:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:680:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:684:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:684:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:689:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:689:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:694:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:694:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:699:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:699:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:708:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:709:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:710:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:715:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:716:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:727:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:728:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:739:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:740:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:754:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:755:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:761:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:765:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:765:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:770:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:770:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:771:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:776:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:777:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:783:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:784:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:791:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:792:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:798:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:803:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:803:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:804:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:810:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:811:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:818:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:819:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:825:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:830:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:831:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:832:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:839:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:840:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:846:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:850:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:850:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:855:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:855:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:856:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:861:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:872:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:872:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:877:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:877:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:882:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:882:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:883:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:888:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:889:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:894:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:907:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:907:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:912:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:912:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:924:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:924:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:929:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:929:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:934:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:934:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:938:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:938:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:948:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:948:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:953:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:953:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:958:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:958:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:970:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:970:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:971:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:976:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:981:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:981:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:982:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:987:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:988:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:993:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:994:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1000:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1001:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1006:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1007:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1020:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1021:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1027:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1028:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1034:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1038:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1038:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1039:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1045:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1046:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1052:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1053:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1065:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1066:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1073:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1074:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1081:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1082:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1086:35: call_function: calling ‘makeMidiInstrumentMenuStrings’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1086:35: return_function: returning to ‘makePreferencesMenu’ from ‘makeMidiInstrumentMenuStrings’
brltty-6.7/python3/Programs/./menu_prefs.c:1087:10: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1091:9: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1091:9: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1092:9: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1100:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1101:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1107:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1112:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1112:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1118:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1118:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1123:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1123:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1130:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1130:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1134:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1134:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1139:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1139:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1140:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1145:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1146:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1151:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1152:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1157:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1158:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1163:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1164:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1169:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1170:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1175:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1176:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1181:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1182:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1187:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1191:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1191:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1192:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1198:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1199:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1205:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1206:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1218:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1219:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1233:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1243:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1243:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1253:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1253:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1258:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1258:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1263:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1263:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1264:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1269:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1270:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1276:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1277:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1284:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1285:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1292:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1301:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1301:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1311:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1311:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1316:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1316:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1327:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1327:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1338:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1338:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1339:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1350:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1351:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1356:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1366:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1366:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1367:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1373:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1374:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1388:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1389:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1395:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1395:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1395:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1396:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1396:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1396:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1396:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1397:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1397:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1397:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1397:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1398:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1398:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1398:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1398:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1399:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1399:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1399:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1399:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1400:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1400:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1400:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1400:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1401:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1401:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1401:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1401:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1402:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1402:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1402:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1402:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1403:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1403:7: call_function: calling ‘newStatusFieldMenuItem’ from ‘makePreferencesMenu’
brltty-6.7/python3/Programs/./menu_prefs.c:1403:7: return_function: returning to ‘makePreferencesMenu’ from ‘newStatusFieldMenuItem’
brltty-6.7/python3/Programs/./menu_prefs.c:1403:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1409:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1409:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1413:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1413:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1414:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1420:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1421:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1427:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1428:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1434:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1437:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1437:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1438:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1444:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1445:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1449:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1454:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1454:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1459:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1459:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1464:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1464:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1469:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1469:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1474:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1474:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1479:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1479:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1484:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1484:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1489:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1489:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1494:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1494:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1499:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1499:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1504:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1504:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1520:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1520:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1521:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1525:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1530:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1530:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1535:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1535:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1539:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1539:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1540:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1545:26: branch_true: following ‘true’ branch (when ‘category != 18’)...
brltty-6.7/python3/Programs/./menu_prefs.c:1546:37: branch_true: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1548:15: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1545:55: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1545:26: branch_true: following ‘true’ branch (when ‘category != 18’)...
brltty-6.7/python3/Programs/./menu_prefs.c:1546:37: branch_true: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1548:14: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1551:26: acquire_memory: allocated here
brltty-6.7/python3/Programs/./menu_prefs.c:1551:16: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
brltty-6.7/python3/Programs/./menu_prefs.c:1552:13: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1556:15: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1558:15: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1545:26: branch_false: following ‘false’ branch (when ‘category == 18’)...
brltty-6.7/python3/Programs/./menu_prefs.c:1578:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1578:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1579:5: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1583:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1589:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1589:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1595:7: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1595:7: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./menu_prefs.c:1601:23: branch_false: ...to here
brltty-6.7/python3/Programs/./menu_prefs.c:1601:5: danger: ‘name’ leaks here; was allocated at [(344)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/343)
# 1599|     {
# 1600|       NAME(strtext("Log Messages"));
# 1601|->     logMessagesMenu = newSubmenuMenuItem(rootMenu, &itemName);
# 1602|     }
# 1603|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def508]
brltty-6.7/python3/Programs/./message.c:250:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘((unsigned char*)&*mgp)[12]’
brltty-6.7/python3/Programs/./message.c:233:1: enter_function: entry to ‘message’
brltty-6.7/python3/Programs/./message.c:240:6: branch_true: following ‘true’ branch (when ‘mgp’ is non-NULL)...
brltty-6.7/python3/Programs/./message.c:241:5: branch_true: ...to here
brltty-6.7/python3/Programs/./message.c:247:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./message.c:248:7: branch_true: ...to here
brltty-6.7/python3/Programs/./message.c:249:7: call_function: calling ‘presentMessage’ from ‘message’
brltty-6.7/python3/Programs/./message.c:249:7: return_function: returning to ‘message’ from ‘presentMessage’
brltty-6.7/python3/Programs/./message.c:250:11: danger: use of uninitialized value ‘((unsigned char*)&*mgp)[12]’ here
#  248|         mgp->deallocate = 0;
#  249|         presentMessage(mgp);
#  250|->       if (mgp->presented) presented = 1;
#  251|       } else {
#  252|         mgp->deallocate = 1;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def509]
brltty-6.7/python3/Programs/./messages.c:136:19: warning[-Wanalyzer-null-argument]: use of NULL ‘localeSpecifier’ where non-null expected
brltty-6.7/python3/Programs/./messages.c:529:1: enter_function: entry to ‘getPluralTranslation’
brltty-6.7/python3/Programs/./messages.c:533:28: call_function: calling ‘findPluralTranslation’ from ‘getPluralTranslation’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  134|   static char *
#  135|   makeLocaleDirectoryPath (void) {
#  136|->   size_t length = strlen(localeSpecifier);
#  137|   
#  138|     char dialect[length + 1];

Error: GCC_ANALYZER_WARNING (CWE-457): [#def510]
brltty-6.7/python3/Programs/./unicode.c:64:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘**current_9(D)’
brltty-6.7/python3/Programs/./unicode.c:210:1: enter_function: entry to ‘composeCharacters’
brltty-6.7/python3/Programs/./unicode.c:215:6: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./unicode.c:217:9: branch_false: ...to here
brltty-6.7/python3/Programs/./unicode.c:253:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./unicode.c:256:7: branch_false: ...to here
brltty-6.7/python3/Programs/./unicode.c:269:12: branch_true: following ‘true’ branch (when ‘trg < trgEnd’)...
brltty-6.7/python3/Programs/./unicode.c:270:12: branch_true: ...to here
brltty-6.7/python3/Programs/./unicode.c:270:12: call_function: calling ‘nextBaseCharacter’ from ‘composeCharacters’
#   62|     do {
#   63|       if (*current == end) return 0;
#   64|->   } while (u_getCombiningClass(*(*current)++));
#   65|   
#   66|     return 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
brltty-6.7/python3/Programs/./update.c:267:5: warning[-Wanalyzer-malloc-leak]: leak of ‘newArrayets’
brltty-6.7/python3/Programs/./update.c:1342:1: enter_function: entry to ‘handleUpdateAlarm’
brltty-6.7/python3/Programs/./update.c:1346:3: call_function: calling ‘suspendUpdates’ from ‘handleUpdateAlarm’
brltty-6.7/python3/Programs/./update.c:1346:3: return_function: returning to ‘handleUpdateAlarm’ from ‘suspendUpdates’
brltty-6.7/python3/Programs/./update.c:1347:3: call_function: calling ‘setUpdateTime’ from ‘handleUpdateAlarm’
brltty-6.7/python3/Programs/./update.c:1347:3: return_function: returning to ‘handleUpdateAlarm’ from ‘setUpdateTime’
brltty-6.7/python3/Programs/./update.c:1354:5: call_function: calling ‘doUpdate’ from ‘handleUpdateAlarm’
#  265|   
#  266|       brd->contracted.offsets.array = newArrayets;
#  267|->     brd->contracted.offsets.size = newSize;
#  268|     }
#  269|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def512]
brltty-6.7/python3/Programs/./usb.c:461:40: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘descriptor.configuration.wTotalLength’
brltty-6.7/python3/Programs/./usb.c:1525:1: enter_function: entry to ‘usbChooseChannel’
brltty-6.7/python3/Programs/./usb.c:1547:34: call_function: calling ‘usbGetDriverCodes’ from ‘usbChooseChannel’
brltty-6.7/python3/Programs/./usb.c:1547:34: return_function: returning to ‘usbChooseChannel’ from ‘usbGetDriverCodes’
brltty-6.7/python3/Programs/./usb.c:1548:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./usb.c:1554:36: branch_false: ...to here
brltty-6.7/python3/Programs/./usb.c:1555:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./usb.c:1556:45: branch_true: ...to here
brltty-6.7/python3/Programs/./usb.c:1574:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./usb.c:1588:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./usb.c:1593:49: branch_false: ...to here
brltty-6.7/python3/Programs/./usb.c:1593:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./usb.c:1598:10: branch_false: ...to here
brltty-6.7/python3/Programs/./usb.c:1598:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./usb.c:1603:62: branch_false: ...to here
brltty-6.7/python3/Programs/./usb.c:1603:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./usb.c:1608:57: branch_false: ...to here
brltty-6.7/python3/Programs/./usb.c:1608:8: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./usb.c:1613:9: branch_false: ...to here
brltty-6.7/python3/Programs/./usb.c:1613:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./usb.c:1614:39: branch_true: ...to here
brltty-6.7/python3/Programs/./usb.c:1614:12: call_function: calling ‘usbConfigureDevice’ from ‘usbChooseChannel’
brltty-6.7/python3/Programs/./usb.c:1614:12: return_function: returning to ‘usbChooseChannel’ from ‘usbConfigureDevice’
brltty-6.7/python3/Programs/./usb.c:1614:10: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./usb.c:1619:12: branch_false: ...to here
brltty-6.7/python3/Programs/./usb.c:1619:12: call_function: calling ‘usbVerifyInterface’ from ‘usbChooseChannel’
#  459|   
#  460|         if (number < device->descriptor.bNumConfigurations) {
#  461|->         int length = getLittleEndian16(descriptor.configuration.wTotalLength);
#  462|           UsbDescriptor *descriptors;
#  463|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
brltty-6.7/python3/Programs/./usb.c:490:10: warning[-Wanalyzer-malloc-leak]: leak of ‘descriptors’
brltty-6.7/python3/Programs/./usb.c:1482:1: enter_function: entry to ‘usbVerifyInterface’
brltty-6.7/python3/Programs/./usb.c:1483:45: call_function: calling ‘usbInterfaceDescriptor’ from ‘usbVerifyInterface’
#  488|     }
#  489|   
#  490|->   return device->configuration;
#  491|   }
#  492|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
brltty-6.7/python3/Programs/./usb_linux.c:1347:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
brltty-6.7/python3/Programs/./usb_linux.c:1371:1: enter_function: entry to ‘usbAddHostDevice’
brltty-6.7/python3/Programs/./usb_linux.c:1375:6: branch_true: following ‘true’ branch (when ‘host’ is non-NULL)...
brltty-6.7/python3/Programs/./usb_linux.c:1376:28: branch_true: ...to here
brltty-6.7/python3/Programs/./usb_linux.c:1376:28: acquire_memory: allocated here
brltty-6.7/python3/Programs/./usb_linux.c:1376:8: branch_true: following ‘true’ branch...
brltty-6.7/python3/Programs/./usb_linux.c:1377:25: branch_true: ...to here
brltty-6.7/python3/Programs/./usb_linux.c:1379:12: call_function: calling ‘usbReadHostDeviceDescriptor’ from ‘usbAddHostDevice’
# 1345|   
# 1346|     if (file != -1) {
# 1347|->     int count = read(file, &host->usbDescriptor, UsbDescriptorSize_Device);
# 1348|   
# 1349|       if (count == -1) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def515]
brltty-6.7/python3/Programs/./xbrlapi.c:702:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘state’ where non-null expected
brltty-6.7/python3/Programs/./xbrlapi.c:1187:1: enter_function: entry to ‘main’
brltty-6.7/python3/Programs/./xbrlapi.c:1198:5: branch_false: following ‘false’ branch...
brltty-6.7/python3/Programs/./xbrlapi.c:1213:3: call_function: calling ‘tobrltty_init’ from ‘main’
brltty-6.7/python3/Programs/./xbrlapi.c:1213:3: return_function: returning to ‘main’ from ‘tobrltty_init’
brltty-6.7/python3/Programs/./xbrlapi.c:1227:3: call_function: calling ‘toX_f’ from ‘main’
#  700|   
#  701|       if (stream) {
#  702|->       fputs(state, stream);
#  703|         fclose(stream);
#  704|       }

Error: CPPCHECK_WARNING (CWE-562): [#def516]
brltty-6.7/python3/Programs/brlapi_client.c:619: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  617|       handle->altPacket = packet;
#  618|       handle->altSize = size;
#  619|->     handle->altRes = &res;
#  620|       sem_init(&sem, 0, 0);
#  621|       handle->altSem = &sem;

Error: CPPCHECK_WARNING (CWE-562): [#def517]
brltty-6.7/python3/Programs/brlapi_client.c:621: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  619|       handle->altRes = &res;
#  620|       sem_init(&sem, 0, 0);
#  621|->     handle->altSem = &sem;
#  622|     }
#  623|     pthread_mutex_unlock(&handle->read_mutex);

Error: CPPCHECK_WARNING (CWE-476): [#def518]
brltty-6.7/python3/Programs/brlapi_common.h:606: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  604|     }
#  605|     ret=strdup(path);
#  606|->   delim=strchr(ret,'+');
#  607|     if (delim)
#  608|       *delim = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def519]
brltty-6.7/python3/Programs/brlapi_server.c:2367: error[ctunullpointer]: Null pointer dereference: c
# 2365|     struct Subscription *s;
# 2366|   
# 2367|->   for (s=c->subscriptions.next; s!=&c->subscriptions; s=s->next) {
# 2368|       if (s->parameter == param
# 2369|   	&& s->subparam == subparam

Error: CPPCHECK_WARNING (CWE-476): [#def520]
brltty-6.7/python3/Programs/brlapi_server.c:2516: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2514|         paramState[param].local_subscriptions++;
# 2515|       s = malloc(sizeof(*s));
# 2516|->     s->parameter = param;
# 2517|       s->subparam = subparam;
# 2518|       s->flags = flags;

Error: CPPCHECK_WARNING (CWE-476): [#def521]
brltty-6.7/python3/Programs/brlapi_server.c:2517: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2515|       s = malloc(sizeof(*s));
# 2516|       s->parameter = param;
# 2517|->     s->subparam = subparam;
# 2518|       s->flags = flags;
# 2519|       s->next = c->subscriptions.next;

Error: CPPCHECK_WARNING (CWE-476): [#def522]
brltty-6.7/python3/Programs/brlapi_server.c:2518: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2516|       s->parameter = param;
# 2517|       s->subparam = subparam;
# 2518|->     s->flags = flags;
# 2519|       s->next = c->subscriptions.next;
# 2520|       s->prev = &c->subscriptions;

Error: CPPCHECK_WARNING (CWE-476): [#def523]
brltty-6.7/python3/Programs/brlapi_server.c:2519: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2517|       s->subparam = subparam;
# 2518|       s->flags = flags;
# 2519|->     s->next = c->subscriptions.next;
# 2520|       s->prev = &c->subscriptions;
# 2521|       s->next->prev = s;

Error: CPPCHECK_WARNING (CWE-476): [#def524]
brltty-6.7/python3/Programs/brlapi_server.c:2520: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2518|       s->flags = flags;
# 2519|       s->next = c->subscriptions.next;
# 2520|->     s->prev = &c->subscriptions;
# 2521|       s->next->prev = s;
# 2522|       s->prev->next = s;

Error: CPPCHECK_WARNING (CWE-476): [#def525]
brltty-6.7/python3/Programs/brlapi_server.c:2521: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2519|       s->next = c->subscriptions.next;
# 2520|       s->prev = &c->subscriptions;
# 2521|->     s->next->prev = s;
# 2522|       s->prev->next = s;
# 2523|       unlockMutex(&apiConnectionsMutex);

Error: CPPCHECK_WARNING (CWE-476): [#def526]
brltty-6.7/python3/Programs/brlapi_server.c:2522: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 2520|       s->prev = &c->subscriptions;
# 2521|       s->next->prev = s;
# 2522|->     s->prev->next = s;
# 2523|       unlockMutex(&apiConnectionsMutex);
# 2524|     } else if (flags & BRLAPI_PARAMF_UNSUBSCRIBE) {

Error: CPPCHECK_WARNING (CWE-401): [#def527]
brltty-6.7/python3/Programs/brlapi_server.c:4524: error[memleakOnRealloc]: Common realloc mistake: 'coreWindowText' nulled but not freed upon failure
# 4522|     displayDimensions[1] = htonl(brl->textRows);
# 4523|     displaySize = brl->textColumns * brl->textRows;
# 4524|->   coreWindowText = realloc(coreWindowText, displaySize * sizeof(*coreWindowText));
# 4525|     coreWindowDots = realloc(coreWindowDots, displaySize * sizeof(*coreWindowDots));
# 4526|     coreWindowCursor = 0;

Error: CPPCHECK_WARNING (CWE-401): [#def528]
brltty-6.7/python3/Programs/brlapi_server.c:4525: error[memleakOnRealloc]: Common realloc mistake: 'coreWindowDots' nulled but not freed upon failure
# 4523|     displaySize = brl->textColumns * brl->textRows;
# 4524|     coreWindowText = realloc(coreWindowText, displaySize * sizeof(*coreWindowText));
# 4525|->   coreWindowDots = realloc(coreWindowDots, displaySize * sizeof(*coreWindowDots));
# 4526|     coreWindowCursor = 0;
# 4527|     handleParamUpdate(NULL, NULL, BRLAPI_PARAM_DISPLAY_SIZE, 0, BRLAPI_PARAMF_GLOBAL, displayDimensions, sizeof(displayDimensions));

Error: CPPCHECK_WARNING (CWE-457): [#def529]
brltty-6.7/python3/Programs/brltty-lscmds.c:236: 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
#  234|       commands[index] = &commandTable[index];
#  235|     }
#  236|->   qsort(commands, count, sizeof(commands[0]), compareCommands);
#  237|   
#  238|     for (int index=0; index<count; index+=1) {

Error: CPPCHECK_WARNING (CWE-457): [#def530]
brltty-6.7/python3/Programs/brltty-ttb.c:402: warning[uninitvar]: Uninitialized variables: inputCharactersBuffer.character, inputCharactersBuffer.dots
#  400|   
#  401|     qsort(
#  402|->     inputCharactersBuffer, inputCharacterCount,
#  403|       sizeof(inputCharactersBuffer[0]),
#  404|       sortInputCharacterEntries

Error: CPPCHECK_WARNING (CWE-401): [#def531]
brltty-6.7/python3/Programs/clipboard.c:208: error[memleak]: Memory leak: cpb
#  206|     }
#  207|   
#  208|->   return NULL;
#  209|   }
#  210|   

Error: CPPCHECK_WARNING (CWE-457): [#def532]
brltty-6.7/python3/Programs/cmd_navigation.c:233: warning[uninitvar]: Uninitialized variable: text
#  231|     }
#  232|   
#  233|->   return !!rgxMatchTextCharacters(promptPatterns, text, length, NULL, NULL);
#  234|   }
#  235|   

Error: CPPCHECK_WARNING (CWE-457): [#def533]
brltty-6.7/python3/Programs/core.c:1133: warning[uninitvar]: Uninitialized variable: attributesBuffer
# 1131|       }
# 1132|   
# 1133|->     sayWideCharacters(&spk, textBuffer, attributesBuffer, length-1, sayOptions);
# 1134|     } else {
# 1135|       sayScreenCharacters(characters, count, sayOptions);

Error: CPPCHECK_WARNING (CWE-457): [#def534]
brltty-6.7/python3/Programs/core.c:1133: warning[uninitvar]: Uninitialized variable: textBuffer
# 1131|       }
# 1132|   
# 1133|->     sayWideCharacters(&spk, textBuffer, attributesBuffer, length-1, sayOptions);
# 1134|     } else {
# 1135|       sayScreenCharacters(characters, count, sayOptions);

Error: CPPCHECK_WARNING (CWE-252): [#def535]
brltty-6.7/python3/Programs/file.c:1098: error[leakReturnValNotUsed]: Return value of allocation function 'freopen' is not stored.
# 1096|     }
# 1097|   
# 1098|->   if (!freopen(nullDevice, (output? "a": "r"), stream)) {
# 1099|       if (errno != ENOENT) {
# 1100|         char action[0X40];

Error: CPPCHECK_WARNING (CWE-401): [#def536]
brltty-6.7/python3/Programs/hid_linux.c:92: error[memleak]: Memory leak: items
#   90|           items->count = size;
#   91|           memcpy(items->bytes, descriptor.value, size);
#   92|->         return (handle->hidItems = items);
#   93|         } else {
#   94|           logMallocError();

Error: CPPCHECK_WARNING (CWE-758): [#def537]
brltty-6.7/python3/Programs/notes_pcm.c:218: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  216|          * high-order (sign) bit is set.
#  217|          */
#  218|->       int32_t amplitude = currentValue ^ (currentValue >> 31);
#  219|   
#  220|         /* Convert the 31-bit amplitude from unsigned to signed. */

Error: CPPCHECK_WARNING (CWE-457): [#def538]
brltty-6.7/python3/Programs/serial_termios.c:222: error[uninitvar]: Uninitialized variable: size
#  220|   
#  221|     attributes->c_cflag &= ~CSIZE;
#  222|->   attributes->c_cflag |= size;
#  223|     return 1;
#  224|   }

Error: CPPCHECK_WARNING (CWE-457): [#def539]
brltty-6.7/python3/Programs/update.c:300: warning[uninitvar]: Uninitialized variable: inputText
#  298|     contractText(
#  299|       contractionTable, &brd->contracted.cache,
#  300|->     inputText, &inputLength,
#  301|       cells, &outputLength,
#  302|       offsetsArray, getCursorOffsetForContracting()

Error: CPPCHECK_WARNING (CWE-457): [#def540]
brltty-6.7/python3/Programs/update.c:723: warning[uninitvar]: Uninitialized variable: characters
#  721|     }
#  722|   
#  723|->   return writeBrailleCharacters(mode, characters, length);
#  724|   }
#  725|   

Error: CPPCHECK_WARNING (CWE-457): [#def541]
brltty-6.7/python3/Programs/usb_linux.c:1293: error[uninitvar]: Uninitialized variable: &length
# 1291|           char path[strlen(*format) + (2 * 0X10) + 1];
# 1292|   
# 1293|->         snprintf(path, sizeof(path), *format, &length, bus, device, minor);
# 1294|           path[length] = 0;
# 1295|   

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-184.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namebrltty-6.7-10.fc43
store-results-to/tmp/tmpkhvc50c0/brltty-6.7-10.fc43.tar.xz
time-created2025-04-25 12:20:14
time-finished2025-04-25 12:30:11
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpkhvc50c0/brltty-6.7-10.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpkhvc50c0/brltty-6.7-10.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9