tk-9.0.0-4.fc43

List of Findings

Error: SHELLCHECK_WARNING (CWE-758): [#def1]
/usr/lib64/tkConfig.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> # tkConfig.sh --
#    2|   #
#    3|   # This shell script (for sh) is generated automatically by Tk's

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/lib64/tkConfig.sh:15:1: warning[SC2034]: TK_VERSION appears unused. Verify use (or export if used externally).
#   13|   
#   14|   # Tk's version number.
#   15|-> TK_VERSION='9.0'
#   16|   TK_MAJOR_VERSION='9'
#   17|   TK_MINOR_VERSION='0'

Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/lib64/tkConfig.sh:16:1: warning[SC2034]: TK_MAJOR_VERSION appears unused. Verify use (or export if used externally).
#   14|   # Tk's version number.
#   15|   TK_VERSION='9.0'
#   16|-> TK_MAJOR_VERSION='9'
#   17|   TK_MINOR_VERSION='0'
#   18|   TK_PATCH_LEVEL='.0'

Error: SHELLCHECK_WARNING (CWE-563): [#def4]
/usr/lib64/tkConfig.sh:17:1: warning[SC2034]: TK_MINOR_VERSION appears unused. Verify use (or export if used externally).
#   15|   TK_VERSION='9.0'
#   16|   TK_MAJOR_VERSION='9'
#   17|-> TK_MINOR_VERSION='0'
#   18|   TK_PATCH_LEVEL='.0'
#   19|   

Error: SHELLCHECK_WARNING (CWE-563): [#def5]
/usr/lib64/tkConfig.sh:18:1: warning[SC2034]: TK_PATCH_LEVEL appears unused. Verify use (or export if used externally).
#   16|   TK_MAJOR_VERSION='9'
#   17|   TK_MINOR_VERSION='0'
#   18|-> TK_PATCH_LEVEL='.0'
#   19|   
#   20|   # -D flags for use with the C compiler.

Error: SHELLCHECK_WARNING (CWE-563): [#def6]
/usr/lib64/tkConfig.sh:21:1: warning[SC2034]: TK_DEFS appears unused. Verify use (or export if used externally).
#   19|   
#   20|   # -D flags for use with the C compiler.
#   21|-> TK_DEFS='-DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"9.0\" -DPACKAGE_STRING=\"tk\ 9.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DTCL_CFGVAL_ENCODING=\"utf-8\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DHAVE_CAST_TO_UNION= [...]
#   22|   
#   23|   # Flag, 1: we built a shared lib, 0 we didn't
/usr/lib64/tkConfig.sh:21:1: note: trimmed 1 message(s) with length over 512

Error: SHELLCHECK_WARNING (CWE-563): [#def7]
/usr/lib64/tkConfig.sh:24:1: warning[SC2034]: TK_SHARED_BUILD appears unused. Verify use (or export if used externally).
#   22|   
#   23|   # Flag, 1: we built a shared lib, 0 we didn't
#   24|-> TK_SHARED_BUILD=1
#   25|   
#   26|   # TK_DBGX used to be used to distinguish debug vs. non-debug builds.

Error: SHELLCHECK_WARNING (CWE-563): [#def8]
/usr/lib64/tkConfig.sh:28:1: warning[SC2034]: TK_DBGX appears unused. Verify use (or export if used externally).
#   26|   # TK_DBGX used to be used to distinguish debug vs. non-debug builds.
#   27|   # This was a righteous pain so the core doesn't do that any more.
#   28|-> TK_DBGX=
#   29|   
#   30|   # The name of the Tk library (may be either a .a file or a shared library):

Error: SHELLCHECK_WARNING (CWE-563): [#def9]
/usr/lib64/tkConfig.sh:31:1: warning[SC2034]: TK_LIB_FILE appears unused. Verify use (or export if used externally).
#   29|   
#   30|   # The name of the Tk library (may be either a .a file or a shared library):
#   31|-> TK_LIB_FILE='libtcl9tk9.0.so'
#   32|   
#   33|   # Additional libraries to use when linking Tk.

Error: SHELLCHECK_WARNING (CWE-563): [#def10]
/usr/lib64/tkConfig.sh:34:1: warning[SC2034]: TK_LIBS appears unused. Verify use (or export if used externally).
#   32|   
#   33|   # Additional libraries to use when linking Tk.
#   34|-> TK_LIBS='-lX11 -lXft -lfontconfig -lfontconfig  -ldl -lz  -lpthread -lm -ltommath'
#   35|   
#   36|   # Top-level directory in which Tk's platform-independent files are

Error: SHELLCHECK_WARNING (CWE-563): [#def11]
/usr/lib64/tkConfig.sh:38:1: warning[SC2034]: TK_PREFIX appears unused. Verify use (or export if used externally).
#   36|   # Top-level directory in which Tk's platform-independent files are
#   37|   # installed.
#   38|-> TK_PREFIX='/usr'
#   39|   
#   40|   # Top-level directory in which Tk's platform-specific files (e.g.

Error: SHELLCHECK_WARNING (CWE-563): [#def12]
/usr/lib64/tkConfig.sh:42:1: warning[SC2034]: TK_EXEC_PREFIX appears unused. Verify use (or export if used externally).
#   40|   # Top-level directory in which Tk's platform-specific files (e.g.
#   41|   # executables) are installed.
#   42|-> TK_EXEC_PREFIX='/usr'
#   43|   
#   44|   # -I switch(es) to use to make all of the X11 include files accessible:

Error: SHELLCHECK_WARNING (CWE-563): [#def13]
/usr/lib64/tkConfig.sh:45:1: warning[SC2034]: TK_XINCLUDES appears unused. Verify use (or export if used externally).
#   43|   
#   44|   # -I switch(es) to use to make all of the X11 include files accessible:
#   45|-> TK_XINCLUDES=''
#   46|   
#   47|   # Linker switch(es) to use to link with the X11 library archive.

Error: SHELLCHECK_WARNING (CWE-563): [#def14]
/usr/lib64/tkConfig.sh:48:1: warning[SC2034]: TK_XLIBSW appears unused. Verify use (or export if used externally).
#   46|   
#   47|   # Linker switch(es) to use to link with the X11 library archive.
#   48|-> TK_XLIBSW='-lX11'
#   49|   
#   50|   # -l flag to pass to the linker to pick up the Tk library

Error: SHELLCHECK_WARNING (CWE-563): [#def15]
/usr/lib64/tkConfig.sh:51:1: warning[SC2034]: TK_LIB_FLAG appears unused. Verify use (or export if used externally).
#   49|   
#   50|   # -l flag to pass to the linker to pick up the Tk library
#   51|-> TK_LIB_FLAG='-ltcl9tk9.0'
#   52|   
#   53|   # String to pass to linker to pick up the Tk library from its

Error: SHELLCHECK_WARNING (CWE-563): [#def16]
/usr/lib64/tkConfig.sh:55:1: warning[SC2034]: TK_BUILD_LIB_SPEC appears unused. Verify use (or export if used externally).
#   53|   # String to pass to linker to pick up the Tk library from its
#   54|   # build directory.
#   55|-> TK_BUILD_LIB_SPEC='-L/usr/lib64 -ltcl9tk9.0'
#   56|   
#   57|   # String to pass to linker to pick up the Tk library from its

Error: SHELLCHECK_WARNING (CWE-563): [#def17]
/usr/lib64/tkConfig.sh:59:1: warning[SC2034]: TK_LIB_SPEC appears unused. Verify use (or export if used externally).
#   57|   # String to pass to linker to pick up the Tk library from its
#   58|   # installed directory.
#   59|-> TK_LIB_SPEC='-L/usr/lib64 -ltcl9tk9.0'
#   60|   
#   61|   # String to pass to the compiler so that an extension can

Error: SHELLCHECK_WARNING (CWE-563): [#def18]
/usr/lib64/tkConfig.sh:63:1: warning[SC2034]: TK_INCLUDE_SPEC appears unused. Verify use (or export if used externally).
#   61|   # String to pass to the compiler so that an extension can
#   62|   # find installed Tk headers.
#   63|-> TK_INCLUDE_SPEC='-I/usr/include'
#   64|   
#   65|   # Location of the top-level source directory from which Tk was built.

Error: SHELLCHECK_WARNING (CWE-563): [#def19]
/usr/lib64/tkConfig.sh:71:1: warning[SC2034]: TK_SRC_DIR appears unused. Verify use (or export if used externally).
#   69|   # points to the location of the sources, not the location where Tk was
#   70|   # compiled.
#   71|-> TK_SRC_DIR='/usr/include/tk-private'
#   72|   
#   73|   # Needed if you want to make a 'fat' shared library library

Error: SHELLCHECK_WARNING (CWE-563): [#def20]
/usr/lib64/tkConfig.sh:75:1: warning[SC2034]: TK_CC_SEARCH_FLAGS appears unused. Verify use (or export if used externally).
#   73|   # Needed if you want to make a 'fat' shared library library
#   74|   # containing tk objects or link a different wish.
#   75|-> TK_CC_SEARCH_FLAGS=''
#   76|   TK_LD_SEARCH_FLAGS=''
#   77|   

Error: SHELLCHECK_WARNING (CWE-563): [#def21]
/usr/lib64/tkConfig.sh:76:1: warning[SC2034]: TK_LD_SEARCH_FLAGS appears unused. Verify use (or export if used externally).
#   74|   # containing tk objects or link a different wish.
#   75|   TK_CC_SEARCH_FLAGS=''
#   76|-> TK_LD_SEARCH_FLAGS=''
#   77|   
#   78|   # The name of the Tk stub library (.a):

Error: SHELLCHECK_WARNING (CWE-563): [#def22]
/usr/lib64/tkConfig.sh:79:1: warning[SC2034]: TK_STUB_LIB_FILE appears unused. Verify use (or export if used externally).
#   77|   
#   78|   # The name of the Tk stub library (.a):
#   79|-> TK_STUB_LIB_FILE='libtkstub.a'
#   80|   
#   81|   # -l flag to pass to the linker to pick up the Tk stub library

Error: SHELLCHECK_WARNING (CWE-563): [#def23]
/usr/lib64/tkConfig.sh:82:1: warning[SC2034]: TK_STUB_LIB_FLAG appears unused. Verify use (or export if used externally).
#   80|   
#   81|   # -l flag to pass to the linker to pick up the Tk stub library
#   82|-> TK_STUB_LIB_FLAG='-ltkstub'
#   83|   
#   84|   # String to pass to linker to pick up the Tk stub library from its

Error: SHELLCHECK_WARNING (CWE-563): [#def24]
/usr/lib64/tkConfig.sh:86:1: warning[SC2034]: TK_BUILD_STUB_LIB_SPEC appears unused. Verify use (or export if used externally).
#   84|   # String to pass to linker to pick up the Tk stub library from its
#   85|   # build directory.
#   86|-> TK_BUILD_STUB_LIB_SPEC='-L/usr/lib64 -ltkstub'
#   87|   
#   88|   # String to pass to linker to pick up the Tk stub library from its

Error: SHELLCHECK_WARNING (CWE-563): [#def25]
/usr/lib64/tkConfig.sh:90:1: warning[SC2034]: TK_STUB_LIB_SPEC appears unused. Verify use (or export if used externally).
#   88|   # String to pass to linker to pick up the Tk stub library from its
#   89|   # installed directory.
#   90|-> TK_STUB_LIB_SPEC='-L/usr/lib64 -ltkstub'
#   91|   
#   92|   # Path to the Tk stub library in the build directory.

Error: SHELLCHECK_WARNING (CWE-563): [#def26]
/usr/lib64/tkConfig.sh:93:1: warning[SC2034]: TK_BUILD_STUB_LIB_PATH appears unused. Verify use (or export if used externally).
#   91|   
#   92|   # Path to the Tk stub library in the build directory.
#   93|-> TK_BUILD_STUB_LIB_PATH='/usr/lib64/libtkstub.a'
#   94|   
#   95|   # Path to the Tk stub library in the install directory.

Error: SHELLCHECK_WARNING (CWE-563): [#def27]
/usr/lib64/tkConfig.sh:96:1: warning[SC2034]: TK_STUB_LIB_PATH appears unused. Verify use (or export if used externally).
#   94|   
#   95|   # Path to the Tk stub library in the install directory.
#   96|-> TK_STUB_LIB_PATH='/usr/lib64/libtkstub.a'
#   97|   
#   98|   # Top-level directory in which Tk's demo files are installed.

Error: SHELLCHECK_WARNING (CWE-563): [#def28]
/usr/lib64/tkConfig.sh:99:1: warning[SC2034]: TK_DEMO_DIR appears unused. Verify use (or export if used externally).
#   97|   
#   98|   # Top-level directory in which Tk's demo files are installed.
#   99|-> TK_DEMO_DIR='/usr/lib/tk9.0/demos'

Error: SHELLCHECK_WARNING (CWE-569): [#def29]
/usr/share/tk9.0/demos/browse:28:13: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   26|   
#   27|   set browseScript [file join [pwd] $argv0]
#   28|-> proc browse {dir file} {
#   29|       global env browseScript
#   30|       if {[string compare $dir "."] != 0} {set file $dir/$file}

Error: SHELLCHECK_WARNING (CWE-569): [#def30]
/usr/share/tk9.0/demos/browse:28:22: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   26|   
#   27|   set browseScript [file join [pwd] $argv0]
#   28|-> proc browse {dir file} {
#   29|       global env browseScript
#   30|       if {[string compare $dir "."] != 0} {set file $dir/$file}

Error: SHELLCHECK_WARNING (CWE-569): [#def31]
/usr/share/tk9.0/demos/browse:28:24: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   26|   
#   27|   set browseScript [file join [pwd] $argv0]
#   28|-> proc browse {dir file} {
#   29|       global env browseScript
#   30|       if {[string compare $dir "."] != 0} {set file $dir/$file}

Error: SHELLCHECK_WARNING (CWE-569): [#def32]
/usr/share/tk9.0/demos/browse:30:9: error[SC1035]: You need a space after the [ and before the ].
#   28|   proc browse {dir file} {
#   29|       global env browseScript
#   30|->     if {[string compare $dir "."] != 0} {set file $dir/$file}
#   31|       switch [file type $file] {
#   32|   	directory {

Error: SHELLCHECK_WARNING: [#def33]
/usr/share/tk9.0/demos/browse:30:9: error[SC1054]: You need a space after the '{'.
#   28|   proc browse {dir file} {
#   29|       global env browseScript
#   30|->     if {[string compare $dir "."] != 0} {set file $dir/$file}
#   31|       switch [file type $file] {
#   32|   	directory {

Error: SHELLCHECK_WARNING (CWE-398): [#def34]
/usr/share/tk9.0/demos/browse:30:9: error[SC1073]: Couldn't parse this test expression. Fix to allow more checks.
#   28|   proc browse {dir file} {
#   29|       global env browseScript
#   30|->     if {[string compare $dir "."] != 0} {set file $dir/$file}
#   31|       switch [file type $file] {
#   32|   	directory {

Error: SHELLCHECK_WARNING (CWE-398): [#def35]
/usr/share/tk9.0/demos/browse:30:17: error[SC1072]: Expected test to end here (don't wrap commands in []/[[]]). Fix any mentioned problems and try again.
#   28|   proc browse {dir file} {
#   29|       global env browseScript
#   30|->     if {[string compare $dir "."] != 0} {set file $dir/$file}
#   31|       switch [file type $file] {
#   32|   	directory {

Error: SHELLCHECK_WARNING (CWE-561): [#def36]
/usr/share/tk9.0/demos/hello:3:1: warning[SC2093]: Remove "exec " if script should continue after this command.
#    1|   #!/usr/bin/sh
#    2|   # the next line restarts using wish \
#    3|-> exec wish9.0 "$0" ${1+"$@"}
#    4|   
#    5|   # hello --

Error: SHELLCHECK_WARNING (CWE-569): [#def37]
/usr/share/tk9.0/demos/hello:15:45: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   13|   # around the button.
#   14|   
#   15|-> button .hello -text "Hello, world" -command {
#   16|       puts stdout "Hello, world"; destroy .
#   17|   }

Error: SHELLCHECK_WARNING (CWE-398): [#def38]
/usr/share/tk9.0/demos/hello:17:1: error[SC1089]: Parsing stopped here. Is this keyword correctly matched up?
#   15|   button .hello -text "Hello, world" -command {
#   16|       puts stdout "Hello, world"; destroy .
#   17|-> }
#   18|   pack .hello
#   19|   

Error: SHELLCHECK_WARNING (CWE-561): [#def39]
/usr/share/tk9.0/demos/ixset:3:1: warning[SC2093]: Remove "exec " if script should continue after this command.
#    1|   #!/usr/bin/sh
#    2|   # the next line restarts using wish \
#    3|-> exec wish9.0 "$0" ${1+"$@"}
#    4|   
#    5|   # ixset --

Error: SHELLCHECK_WARNING (CWE-569): [#def40]
/usr/share/tk9.0/demos/ixset:18:14: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   16|   #
#   17|   
#   18|-> proc quit {} {
#   19|       destroy .
#   20|   }

Error: SHELLCHECK_WARNING (CWE-398): [#def41]
/usr/share/tk9.0/demos/ixset:20:1: error[SC1089]: Parsing stopped here. Is this keyword correctly matched up?
#   18|   proc quit {} {
#   19|       destroy .
#   20|-> }
#   21|   
#   22|   proc ok {} {

Error: SHELLCHECK_WARNING (CWE-561): [#def42]
/usr/share/tk9.0/demos/rmt:3:1: warning[SC2093]: Remove "exec " if script should continue after this command.
#    1|   #!/usr/bin/sh
#    2|   # the next line restarts using wish \
#    3|-> exec wish9.0 "$0" ${1+"$@"}
#    4|   
#    5|   # rmt --

Error: SHELLCHECK_WARNING (CWE-456): [#def43]
/usr/share/tk9.0/demos/rmt:20:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#   18|   # the commands locally.
#   19|   
#   20|-> set app "local"
#   21|   
#   22|   # The global variable below keeps track of whether we're in the

Error: SHELLCHECK_WARNING (CWE-456): [#def44]
/usr/share/tk9.0/demos/rmt:25:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#   23|   # middle of executing a command entered via the text.
#   24|   
#   25|-> set executing 0
#   26|   
#   27|   # The global variable below keeps track of the last command executed,

Error: SHELLCHECK_WARNING (CWE-456): [#def45]
/usr/share/tk9.0/demos/rmt:30:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#   28|   # so it can be re-executed in response to !! commands.
#   29|   
#   30|-> set lastCommand ""
#   31|   
#   32|   # Create menu bar.  Arrange to recreate all the information in the

Error: SHELLCHECK_WARNING (CWE-398): [#def46]
/usr/share/tk9.0/demos/rmt:35:13: warning[SC2240]: The dot command does not support arguments in sh/dash. Set them as variables.
#   33|   # applications sub-menu whenever it is cascaded to.
#   34|   
#   35|-> . configure -menu [menu .menu]
#   36|   menu .menu.file
#   37|   menu .menu.file.apps  -postcommand fillAppsMenu

Error: SHELLCHECK_WARNING (CWE-569): [#def47]
/usr/share/tk9.0/demos/rmt:56:13: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   54|   # earlier in the text and select and insert;  just can't delete).
#   55|   
#   56|-> bindtags .t {.t Text . all}
#   57|   bind .t <Return> {
#   58|       .t mark set insert {end - 1c}

Error: SHELLCHECK_WARNING (CWE-569): [#def48]
/usr/share/tk9.0/demos/rmt:56:27: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   54|   # earlier in the text and select and insert;  just can't delete).
#   55|   
#   56|-> bindtags .t {.t Text . all}
#   57|   bind .t <Return> {
#   58|       .t mark set insert {end - 1c}

Error: SHELLCHECK_WARNING (CWE-569): [#def49]
/usr/share/tk9.0/demos/rmt:57:18: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   55|   
#   56|   bindtags .t {.t Text . all}
#   57|-> bind .t <Return> {
#   58|       .t mark set insert {end - 1c}
#   59|       .t insert insert \n

Error: SHELLCHECK_WARNING (CWE-569): [#def50]
/usr/share/tk9.0/demos/rmt:58:24: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   56|   bindtags .t {.t Text . all}
#   57|   bind .t <Return> {
#   58|->     .t mark set insert {end - 1c}
#   59|       .t insert insert \n
#   60|       invoke

Error: SHELLCHECK_WARNING (CWE-569): [#def51]
/usr/share/tk9.0/demos/rmt:58:33: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   56|   bindtags .t {.t Text . all}
#   57|   bind .t <Return> {
#   58|->     .t mark set insert {end - 1c}
#   59|       .t insert insert \n
#   60|       invoke

Error: SHELLCHECK_WARNING: [#def52]
/usr/share/tk9.0/demos/rmt:59:22: warning[SC1012]: \n is just literal 'n' here. For line feed, use a quoted, literal line feed instead.
#   57|   bind .t <Return> {
#   58|       .t mark set insert {end - 1c}
#   59|->     .t insert insert \n
#   60|       invoke
#   61|       break

Error: SHELLCHECK_WARNING (CWE-398): [#def53]
/usr/share/tk9.0/demos/rmt:61:5: error[SC2105]: break is only valid in loops.
#   59|       .t insert insert \n
#   60|       invoke
#   61|->     break
#   62|   }
#   63|   bind .t <Delete> {

Error: SHELLCHECK_WARNING (CWE-398): [#def54]
/usr/share/tk9.0/demos/rmt:62:1: error[SC1089]: Parsing stopped here. Is this keyword correctly matched up?
#   60|       invoke
#   61|       break
#   62|-> }
#   63|   bind .t <Delete> {
#   64|       catch {.t tag remove sel sel.first promptEnd}

Error: SHELLCHECK_WARNING (CWE-561): [#def55]
/usr/share/tk9.0/demos/rolodex:3:1: warning[SC2093]: Remove "exec " if script should continue after this command.
#    1|   #!/usr/bin/sh
#    2|   # the next line restarts using wish \
#    3|-> exec wish9.0 "$0" ${1+"$@"}
#    4|   
#    5|   # rolodex --

Error: SHELLCHECK_WARNING (CWE-569): [#def56]
/usr/share/tk9.0/demos/rolodex:13:30: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   11|   package require tk
#   12|   
#   13|-> foreach i [winfo children .] {
#   14|       catch {destroy $i}
#   15|   }

Error: SHELLCHECK_WARNING (CWE-569): [#def57]
/usr/share/tk9.0/demos/rolodex:14:11: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   12|   
#   13|   foreach i [winfo children .] {
#   14|->     catch {destroy $i}
#   15|   }
#   16|   

Error: SHELLCHECK_WARNING (CWE-457): [#def58]
/usr/share/tk9.0/demos/rolodex:14:20: warning[SC2154]: i is referenced but not assigned.
#   12|   
#   13|   foreach i [winfo children .] {
#   14|->     catch {destroy $i}
#   15|   }
#   16|   

Error: SHELLCHECK_WARNING (CWE-569): [#def59]
/usr/share/tk9.0/demos/rolodex:14:22: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   12|   
#   13|   foreach i [winfo children .] {
#   14|->     catch {destroy $i}
#   15|   }
#   16|   

Error: SHELLCHECK_WARNING (CWE-398): [#def60]
/usr/share/tk9.0/demos/rolodex:15:1: error[SC1089]: Parsing stopped here. Is this keyword correctly matched up?
#   13|   foreach i [winfo children .] {
#   14|       catch {destroy $i}
#   15|-> }
#   16|   
#   17|   set version 1.2

Error: SHELLCHECK_WARNING (CWE-561): [#def61]
/usr/share/tk9.0/demos/tcolor:3:1: warning[SC2093]: Remove "exec " if script should continue after this command.
#    1|   #!/usr/bin/sh
#    2|   # the next line restarts using wish \
#    3|-> exec wish9.0 "$0" ${1+"$@"}
#    4|   
#    5|   # tcolor --

Error: SHELLCHECK_WARNING (CWE-456): [#def62]
/usr/share/tk9.0/demos/tcolor:34:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#   32|   # name -			Name for new color, typed into entry.
#   33|   
#   34|-> set colorSpace hsb
#   35|   set red 65535
#   36|   set green 0

Error: SHELLCHECK_WARNING (CWE-456): [#def63]
/usr/share/tk9.0/demos/tcolor:35:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#   33|   
#   34|   set colorSpace hsb
#   35|-> set red 65535
#   36|   set green 0
#   37|   set blue 0

Error: SHELLCHECK_WARNING (CWE-456): [#def64]
/usr/share/tk9.0/demos/tcolor:36:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#   34|   set colorSpace hsb
#   35|   set red 65535
#   36|-> set green 0
#   37|   set blue 0
#   38|   set color #ffff00000000

Error: SHELLCHECK_WARNING (CWE-456): [#def65]
/usr/share/tk9.0/demos/tcolor:37:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#   35|   set red 65535
#   36|   set green 0
#   37|-> set blue 0
#   38|   set color #ffff00000000
#   39|   set updating 0

Error: SHELLCHECK_WARNING (CWE-456): [#def66]
/usr/share/tk9.0/demos/tcolor:39:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#   37|   set blue 0
#   38|   set color #ffff00000000
#   39|-> set updating 0
#   40|   set autoUpdate 1
#   41|   set name ""

Error: SHELLCHECK_WARNING (CWE-456): [#def67]
/usr/share/tk9.0/demos/tcolor:40:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#   38|   set color #ffff00000000
#   39|   set updating 0
#   40|-> set autoUpdate 1
#   41|   set name ""
#   42|   

Error: SHELLCHECK_WARNING (CWE-456): [#def68]
/usr/share/tk9.0/demos/tcolor:41:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#   39|   set updating 0
#   40|   set autoUpdate 1
#   41|-> set name ""
#   42|   
#   43|   # Create the menu bar at the top of the window.

Error: SHELLCHECK_WARNING (CWE-398): [#def69]
/usr/share/tk9.0/demos/tcolor:45:13: warning[SC2240]: The dot command does not support arguments in sh/dash. Set them as variables.
#   43|   # Create the menu bar at the top of the window.
#   44|   
#   45|-> . configure -menu [menu .menu]
#   46|   menu .menu.file
#   47|   .menu add cascade  -menu .menu.file  -label File  -underline 0

Error: SHELLCHECK_WARNING (CWE-569): [#def70]
/usr/share/tk9.0/demos/tcolor:49:35: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   47|   .menu add cascade  -menu .menu.file  -label File  -underline 0
#   48|   .menu.file add radio -label "RGB color space" -variable colorSpace \
#   49|-> 	-value rgb -underline 0 -command {changeColorSpace rgb}
#   50|   .menu.file add radio -label "CMY color space" -variable colorSpace \
#   51|   	-value cmy -underline 0 -command {changeColorSpace cmy}

Error: SHELLCHECK_WARNING (CWE-569): [#def71]
/usr/share/tk9.0/demos/tcolor:49:56: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   47|   .menu add cascade  -menu .menu.file  -label File  -underline 0
#   48|   .menu.file add radio -label "RGB color space" -variable colorSpace \
#   49|-> 	-value rgb -underline 0 -command {changeColorSpace rgb}
#   50|   .menu.file add radio -label "CMY color space" -variable colorSpace \
#   51|   	-value cmy -underline 0 -command {changeColorSpace cmy}

Error: SHELLCHECK_WARNING (CWE-569): [#def72]
/usr/share/tk9.0/demos/tcolor:51:35: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   49|   	-value rgb -underline 0 -command {changeColorSpace rgb}
#   50|   .menu.file add radio -label "CMY color space" -variable colorSpace \
#   51|-> 	-value cmy -underline 0 -command {changeColorSpace cmy}
#   52|   .menu.file add radio -label "HSB color space" -variable colorSpace \
#   53|   	-value hsb -underline 0 -command {changeColorSpace hsb}

Error: SHELLCHECK_WARNING (CWE-569): [#def73]
/usr/share/tk9.0/demos/tcolor:51:56: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   49|   	-value rgb -underline 0 -command {changeColorSpace rgb}
#   50|   .menu.file add radio -label "CMY color space" -variable colorSpace \
#   51|-> 	-value cmy -underline 0 -command {changeColorSpace cmy}
#   52|   .menu.file add radio -label "HSB color space" -variable colorSpace \
#   53|   	-value hsb -underline 0 -command {changeColorSpace hsb}

Error: SHELLCHECK_WARNING (CWE-569): [#def74]
/usr/share/tk9.0/demos/tcolor:53:35: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   51|   	-value cmy -underline 0 -command {changeColorSpace cmy}
#   52|   .menu.file add radio -label "HSB color space" -variable colorSpace \
#   53|-> 	-value hsb -underline 0 -command {changeColorSpace hsb}
#   54|   .menu.file add separator
#   55|   .menu.file add radio -label "Automatic updates" -variable autoUpdate \

Error: SHELLCHECK_WARNING (CWE-569): [#def75]
/usr/share/tk9.0/demos/tcolor:53:56: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   51|   	-value cmy -underline 0 -command {changeColorSpace cmy}
#   52|   .menu.file add radio -label "HSB color space" -variable colorSpace \
#   53|-> 	-value hsb -underline 0 -command {changeColorSpace hsb}
#   54|   .menu.file add separator
#   55|   .menu.file add radio -label "Automatic updates" -variable autoUpdate \

Error: SHELLCHECK_WARNING (CWE-569): [#def76]
/usr/share/tk9.0/demos/tcolor:60:68: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   58|   	-value 0 -underline 0
#   59|   .menu.file add separator
#   60|-> .menu.file add command -label "Exit program" -underline 0 -command {exit}
#   61|   
#   62|   # Create the command entry window at the bottom of the window, along

Error: SHELLCHECK_WARNING (CWE-569): [#def77]
/usr/share/tk9.0/demos/tcolor:60:73: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   58|   	-value 0 -underline 0
#   59|   .menu.file add separator
#   60|-> .menu.file add command -label "Exit program" -underline 0 -command {exit}
#   61|   
#   62|   # Create the command entry window at the bottom of the window, along

Error: SHELLCHECK_WARNING (CWE-569): [#def78]
/usr/share/tk9.0/demos/tcolor:65:44: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   63|   # with the update button.
#   64|   
#   65|-> labelframe .command -text "Command:" -padx {1m 0}
#   66|   entry .command.e -textvariable command
#   67|   button .command.update -text Update -command doUpdate

Error: SHELLCHECK_WARNING (CWE-569): [#def79]
/usr/share/tk9.0/demos/tcolor:65:49: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   63|   # with the update button.
#   64|   
#   65|-> labelframe .command -text "Command:" -padx {1m 0}
#   66|   entry .command.e -textvariable command
#   67|   button .command.update -text Update -command doUpdate

Error: SHELLCHECK_WARNING (CWE-569): [#def80]
/usr/share/tk9.0/demos/tcolor:68:50: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   66|   entry .command.e -textvariable command
#   67|   button .command.update -text Update -command doUpdate
#   68|-> pack .command.update -side right -pady .1c -padx {.25c 0}
#   69|   pack .command.e -expand yes -fill x -ipadx 0.25c
#   70|   

Error: SHELLCHECK_WARNING (CWE-569): [#def81]
/usr/share/tk9.0/demos/tcolor:68:57: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   66|   entry .command.e -textvariable command
#   67|   button .command.update -text Update -command doUpdate
#   68|-> pack .command.update -side right -pady .1c -padx {.25c 0}
#   69|   pack .command.e -expand yes -fill x -ipadx 0.25c
#   70|   

Error: SHELLCHECK_WARNING (CWE-569): [#def82]
/usr/share/tk9.0/demos/tcolor:75:64: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   73|   # if an rgb.txt file can be found.
#   74|   
#   75|-> grid .command -sticky nsew -row 2 -columnspan 3 -padx 1m -pady {0 1m}
#   76|   
#   77|   grid columnconfigure . {1 2} -weight 1

Error: SHELLCHECK_WARNING (CWE-569): [#def83]
/usr/share/tk9.0/demos/tcolor:75:69: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   73|   # if an rgb.txt file can be found.
#   74|   
#   75|-> grid .command -sticky nsew -row 2 -columnspan 3 -padx 1m -pady {0 1m}
#   76|   
#   77|   grid columnconfigure . {1 2} -weight 1

Error: SHELLCHECK_WARNING (CWE-569): [#def84]
/usr/share/tk9.0/demos/tcolor:77:24: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   75|   grid .command -sticky nsew -row 2 -columnspan 3 -padx 1m -pady {0 1m}
#   76|   
#   77|-> grid columnconfigure . {1 2} -weight 1
#   78|   grid rowconfigure . 0 -weight 1
#   79|   foreach i {

Error: SHELLCHECK_WARNING (CWE-569): [#def85]
/usr/share/tk9.0/demos/tcolor:77:28: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   75|   grid .command -sticky nsew -row 2 -columnspan 3 -padx 1m -pady {0 1m}
#   76|   
#   77|-> grid columnconfigure . {1 2} -weight 1
#   78|   grid rowconfigure . 0 -weight 1
#   79|   foreach i {

Error: SHELLCHECK_WARNING (CWE-569): [#def86]
/usr/share/tk9.0/demos/tcolor:79:11: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   77|   grid columnconfigure . {1 2} -weight 1
#   78|   grid rowconfigure . 0 -weight 1
#   79|-> foreach i {
#   80|       /usr/local/lib/X11/rgb.txt /usr/lib/X11/rgb.txt
#   81|       /X11/R5/lib/X11/rgb.txt /X11/R4/lib/rgb/rgb.txt

Error: SHELLCHECK_WARNING (CWE-398): [#def87]
/usr/share/tk9.0/demos/tcolor:83:1: error[SC1089]: Parsing stopped here. Is this keyword correctly matched up?
#   81|       /X11/R5/lib/X11/rgb.txt /X11/R4/lib/rgb/rgb.txt
#   82|       /usr/openwin/lib/X11/rgb.txt
#   83|-> } {
#   84|       if {![file readable $i]} {
#   85|   	continue;

Error: SHELLCHECK_WARNING (CWE-569): [#def88]
/usr/share/tk9.0/demos/timer:11:36: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#    9|   
#   10|   label .counter -text 0.00 -relief raised -width 10 -padx 2m -pady 1m
#   11|-> button .start -text Start -command {
#   12|       if {$stopped} {
#   13|   	set stopped 0

Error: SHELLCHECK_WARNING (CWE-398): [#def89]
/usr/share/tk9.0/demos/timer:12:5: error[SC1073]: Couldn't parse this if expression. Fix to allow more checks.
#   10|   label .counter -text 0.00 -relief raised -width 10 -padx 2m -pady 1m
#   11|   button .start -text Start -command {
#   12|->     if {$stopped} {
#   13|   	set stopped 0
#   14|   	set startMoment [clock clicks -milliseconds]

Error: SHELLCHECK_WARNING: [#def90]
/usr/share/tk9.0/demos/timer:12:9: error[SC1054]: You need a space after the '{'.
#   10|   label .counter -text 0.00 -relief raised -width 10 -padx 2m -pady 1m
#   11|   button .start -text Start -command {
#   12|->     if {$stopped} {
#   13|   	set stopped 0
#   14|   	set startMoment [clock clicks -milliseconds]

Error: SHELLCHECK_WARNING (CWE-569): [#def91]
/usr/share/tk9.0/demos/timer:12:17: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   10|   label .counter -text 0.00 -relief raised -width 10 -padx 2m -pady 1m
#   11|   button .start -text Start -command {
#   12|->     if {$stopped} {
#   13|   	set stopped 0
#   14|   	set startMoment [clock clicks -milliseconds]

Error: SHELLCHECK_WARNING (CWE-569): [#def92]
/usr/share/tk9.0/demos/timer:12:19: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   10|   label .counter -text 0.00 -relief raised -width 10 -padx 2m -pady 1m
#   11|   button .start -text Start -command {
#   12|->     if {$stopped} {
#   13|   	set stopped 0
#   14|   	set startMoment [clock clicks -milliseconds]

Error: SHELLCHECK_WARNING: [#def93]
/usr/share/tk9.0/demos/timer:19:1: error[SC1050]: Expected 'then'.
#   17|   	.start configure -state disabled
#   18|       }
#   19|-> }
#   20|   button .stop -text Stop -state disabled -command {
#   21|       set stopped 1

Error: SHELLCHECK_WARNING (CWE-398): [#def94]
/usr/share/tk9.0/demos/timer:19:2: error[SC1072]: Unexpected keyword/token. Fix any mentioned problems and try again.
#   17|   	.start configure -state disabled
#   18|       }
#   19|-> }
#   20|   button .stop -text Stop -state disabled -command {
#   21|       set stopped 1

Error: SHELLCHECK_WARNING (CWE-569): [#def95]
/usr/share/tk9.0/demos/widget:16:9: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#   14|   package require msgcat
#   15|   
#   16|-> destroy {*}[winfo children .]
#   17|   set tk_demoDirectory [file join [pwd] [file dirname [info script]]]
#   18|   ::msgcat::mcload $tk_demoDirectory

Error: SHELLCHECK_WARNING (CWE-569): [#def96]
/usr/share/tk9.0/demos/widget:16:11: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#   14|   package require msgcat
#   15|   
#   16|-> destroy {*}[winfo children .]
#   17|   set tk_demoDirectory [file join [pwd] [file dirname [info script]]]
#   18|   ::msgcat::mcload $tk_demoDirectory

Error: SHELLCHECK_WARNING (CWE-569): [#def97]
/usr/share/tk9.0/demos/widget:21:5: error[SC1035]: You need a space after the [ and before the ].
#   19|   namespace import ::msgcat::mc
#   20|   wm title . [mc "Widget Demonstration"]
#   21|-> if {[tk windowingsystem] eq "x11"} {
#   22|       # This won't work everywhere, but there's no other way in core Tk at the
#   23|       # moment to display a coloured icon.

Error: SHELLCHECK_WARNING: [#def98]
/usr/share/tk9.0/demos/widget:21:5: error[SC1054]: You need a space after the '{'.
#   19|   namespace import ::msgcat::mc
#   20|   wm title . [mc "Widget Demonstration"]
#   21|-> if {[tk windowingsystem] eq "x11"} {
#   22|       # This won't work everywhere, but there's no other way in core Tk at the
#   23|       # moment to display a coloured icon.

Error: SHELLCHECK_WARNING (CWE-398): [#def99]
/usr/share/tk9.0/demos/widget:21:5: error[SC1073]: Couldn't parse this test expression. Fix to allow more checks.
#   19|   namespace import ::msgcat::mc
#   20|   wm title . [mc "Widget Demonstration"]
#   21|-> if {[tk windowingsystem] eq "x11"} {
#   22|       # This won't work everywhere, but there's no other way in core Tk at the
#   23|       # moment to display a coloured icon.

Error: SHELLCHECK_WARNING (CWE-398): [#def100]
/usr/share/tk9.0/demos/widget:21:9: error[SC1072]: Expected test to end here (don't wrap commands in []/[[]]). Fix any mentioned problems and try again.
#   19|   namespace import ::msgcat::mc
#   20|   wm title . [mc "Widget Demonstration"]
#   21|-> if {[tk windowingsystem] eq "x11"} {
#   22|       # This won't work everywhere, but there's no other way in core Tk at the
#   23|       # moment to display a coloured icon.

Error: CPPCHECK_WARNING (CWE-628): [#def101]
tk9.0.0/generic/nanosvgrast.h:806: warning[invalidFunctionArg]: Invalid fmodf() argument nr 2. The value is 0 but the valid values are '!0.0'.
#  804|   				allDashLen *= 2.0f;
#  805|   			/* Find location inside pattern */
#  806|-> 			dashOffset = fmodf(shape->strokeDashOffset, allDashLen);
#  807|   			if (dashOffset < 0.0f)
#  808|   				dashOffset += allDashLen;

Error: CPPCHECK_WARNING (CWE-476): [#def102]
tk9.0.0/generic/tkBind.c:135: error[ctunullpointer]: Null pointer dereference: elem
#  133|   
#  134|   /* We need this array for bookkeeping the last matching modifier mask per pattern. */
#  135|-> TK_ARRAY_DEFINE(PSModMaskArr, unsigned);
#  136|   
#  137|   typedef struct PSEntry {

Error: CPPCHECK_WARNING (CWE-476): [#def103]
tk9.0.0/generic/tkBind.c:184: error[ctunullpointer]: Null pointer dereference: elem
#  182|   
#  183|   /* Defining the whole PromArr_* stuff (array of PSList entries) */
#  184|-> TK_ARRAY_DEFINE(PromArr, PSList);
#  185|   
#  186|   typedef struct Tk_BindingTable_ {

Error: CPPCHECK_WARNING (CWE-758): [#def104]
tk9.0.0/generic/tkCanvas.c:2516: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 2514|   
# 2515|       for (i = 0; i < 32; ++i) {
# 2516|-> 	if (mask & 1 << i)
# 2517|   	    break;
# 2518|       }

Error: CPPCHECK_WARNING (CWE-758): [#def105]
tk9.0.0/generic/tkCanvas.c:2527: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 2525|   
# 2526|   	for ( ; i < 32; ++i) {
# 2527|-> 	    if ((mask & 1 << i) == 0)
# 2528|   		break;
# 2529|   	    else

Error: CPPCHECK_WARNING (CWE-823): [#def106]
tk9.0.0/generic/tkImgGIF.c:2196: error[arrayIndexOutOfBounds]: Array 'statePtr->mapa[256][3]' accessed at index statePtr->mapa[256][0], which is out of bounds.
# 2194|   
# 2195|       for (; x <= MAXCOLORMAPSIZE; x++) {
# 2196|-> 	if ((statePtr->mapa[x][CM_RED] == red) &&
# 2197|   		(statePtr->mapa[x][CM_GREEN] == green) &&
# 2198|   		(statePtr->mapa[x][CM_BLUE] == blue)) {

Error: CPPCHECK_WARNING (CWE-476): [#def107]
tk9.0.0/generic/tkText.c:3134: warning[nullPointer]: Possible null pointer dereference: textPtr
# 3132|   
# 3133|       if (sharedTextPtr == NULL) {
# 3134|-> 	sharedTextPtr = textPtr->sharedTextPtr;
# 3135|       }
# 3136|   

Error: CPPCHECK_WARNING (CWE-476): [#def108]
tk9.0.0/generic/tkText.c:3720: warning[nullPointer]: Possible null pointer dereference: textPtr
# 3718|   
# 3719|       if (sharedTextPtr == NULL) {
# 3720|-> 	sharedTextPtr = textPtr->sharedTextPtr;
# 3721|       }
# 3722|   

Error: CPPCHECK_WARNING (CWE-909): [#def109]
tk9.0.0/generic/tkTextDisp.c:3342: error[uninitStructMember]: Uninitialized struct member: index.byteIndex
# 3340|   			 */
# 3341|   
# 3342|-> 			textPtr->dInfoPtr->metricIndex = index;
# 3343|   			textPtr->dInfoPtr->metricEpoch =
# 3344|   				textPtr->sharedTextPtr->stateEpoch;

Error: CPPCHECK_WARNING (CWE-909): [#def110]
tk9.0.0/generic/tkTextDisp.c:3342: error[uninitStructMember]: Uninitialized struct member: index.linePtr
# 3340|   			 */
# 3341|   
# 3342|-> 			textPtr->dInfoPtr->metricIndex = index;
# 3343|   			textPtr->dInfoPtr->metricEpoch =
# 3344|   				textPtr->sharedTextPtr->stateEpoch;

Error: CPPCHECK_WARNING (CWE-909): [#def111]
tk9.0.0/generic/tkTextDisp.c:3342: error[uninitStructMember]: Uninitialized struct member: index.textPtr
# 3340|   			 */
# 3341|   
# 3342|-> 			textPtr->dInfoPtr->metricIndex = index;
# 3343|   			textPtr->dInfoPtr->metricEpoch =
# 3344|   				textPtr->sharedTextPtr->stateEpoch;

Error: CPPCHECK_WARNING (CWE-909): [#def112]
tk9.0.0/generic/tkTextDisp.c:3342: error[uninitStructMember]: Uninitialized struct member: index.tree
# 3340|   			 */
# 3341|   
# 3342|-> 			textPtr->dInfoPtr->metricIndex = index;
# 3343|   			textPtr->dInfoPtr->metricEpoch =
# 3344|   				textPtr->sharedTextPtr->stateEpoch;

Error: CPPCHECK_WARNING (CWE-476): [#def113]
tk9.0.0/generic/tkTextIndex.c:753: warning[nullPointer]: Possible null pointer dereference: textPtr
#  751|   
#  752|       if (sharedPtr == NULL) {
#  753|-> 	sharedPtr = textPtr->sharedTextPtr;
#  754|       }
#  755|   

Error: CPPCHECK_WARNING (CWE-476): [#def114]
tk9.0.0/generic/tkUndo.c:396: warning[nullPointer]: Possible null pointer dereference: prevelem
#  394|   	}
#  395|   	CLANG_ASSERT(prevelem);
#  396|-> 	prevelem->next = NULL;
#  397|   	while (elem != NULL) {
#  398|   	    prevelem = elem;

Error: CPPCHECK_WARNING (CWE-476): [#def115]
tk9.0.0/generic/tkVisual.c:307: warning[nullPointer]: Possible null pointer dereference: bestPtr
#  305|       }
#  306|       CLANG_ASSERT(bestPtr);
#  307|->     *depthPtr = bestPtr->depth;
#  308|       visual = bestPtr->visual;
#  309|       XFree(visInfoList);

Error: CPPCHECK_WARNING (CWE-476): [#def116]
tk9.0.0/generic/tkVisual.c:308: warning[nullPointer]: Possible null pointer dereference: bestPtr
#  306|       CLANG_ASSERT(bestPtr);
#  307|       *depthPtr = bestPtr->depth;
#  308|->     visual = bestPtr->visual;
#  309|       XFree(visInfoList);
#  310|   

Error: CPPCHECK_WARNING (CWE-476): [#def117]
tk9.0.0/generic/tkWindow.c:759: warning[nullPointer]: Possible null pointer dereference: name
#  757|        */
#  758|   
#  759|->     if (isupper(UCHAR(name[0]))) {
#  760|   	Tcl_SetObjResult(interp, Tcl_ObjPrintf(
#  761|   		"window name starts with an upper-case letter: \"%s\"",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
tk9.0.0/unix/../generic/nanosvgrast.h:244:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*r.curpage’
tk9.0.0/unix/../generic/tkImgSVGnano.c:566:1: enter_function: entry to ‘RasterizeSVG’
tk9.0.0/unix/../generic/tkImgSVGnano.c:586:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkImgSVGnano.c:594:10: branch_false: ...to here
tk9.0.0/unix/../generic/tkImgSVGnano.c:595:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkImgSVGnano.c:602:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkImgSVGnano.c:607:5: branch_false: ...to here
tk9.0.0/unix/../generic/tkImgSVGnano.c:607:5: call_function: calling ‘nsvgRasterize’ from ‘RasterizeSVG’
#  242|   		r->curpage = nsvg__nextPage(r, r->curpage);
#  243|   	}
#  244|-> 	buf = &r->curpage->mem[r->curpage->size];
#  245|   	r->curpage->size += size;
#  246|   	return buf;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
tk9.0.0/unix/../generic/tkButton.c:1326:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘errorResult’
tk9.0.0/unix/../generic/tkButton.c:1060:21: branch_true: following ‘true’ branch (when ‘error != 2’)...
tk9.0.0/unix/../generic/tkButton.c:1061:12: branch_true: ...to here
tk9.0.0/unix/../generic/tkButton.c:1061:12: branch_true: following ‘true’ branch (when ‘error == 0’)...
tk9.0.0/unix/../generic/tkButton.c:1066:17: branch_true: ...to here
tk9.0.0/unix/../generic/tkButton.c:1324:8: branch_true: following ‘true’ branch (when ‘error != 0’)...
tk9.0.0/unix/../generic/tkButton.c:1325:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkButton.c:1326:9: danger: dereference of NULL ‘errorResult’
# 1324|       if (error) {
# 1325|   	Tcl_SetObjResult(interp, errorResult);
# 1326|-> 	Tcl_DecrRefCount(errorResult);
# 1327|   	return TCL_ERROR;
# 1328|       } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
tk9.0.0/unix/../generic/tkCanvLine.c:734:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘coordPtr’
tk9.0.0/unix/../generic/tkCanvLine.c:1804:1: enter_function: entry to ‘ScaleLine’
tk9.0.0/unix/../generic/tkCanvLine.c:1827:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkCanvLine.c:1828:16: branch_true: ...to here
tk9.0.0/unix/../generic/tkCanvLine.c:1832:9: release_memory: ‘0’ is NULL
tk9.0.0/unix/../generic/tkCanvLine.c:1834:47: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkCanvLine.c:1839:9: branch_false: ...to here
tk9.0.0/unix/../generic/tkCanvLine.c:1842:5: call_function: calling ‘ComputeLineBbox’ from ‘ScaleLine’
#  732|   	    }
#  733|   	}
#  734|-> 	tsoffset->xoffset = (int) (coordPtr[0] + 0.5);
#  735|   	tsoffset->yoffset = (int) (coordPtr[1] + 0.5);
#  736|       } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
tk9.0.0/unix/../generic/tkCanvPoly.c:1744:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rest’
tk9.0.0/unix/../generic/tkCanvPoly.c:1722:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkCanvPoly.c:1734:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkCanvPoly.c:1736:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkCanvPoly.c:1742:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkCanvPoly.c:1744:9: danger: dereference of NULL ‘rest’
# 1742|   	p = string+1;
# 1743|   	rest = strchr((char *)p, ',');
# 1744|-> 	*rest = '\0';
# 1745|   	if (Tcl_GetDouble(NULL, p, &x) != TCL_OK) {
# 1746|   	    *rest = ',';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
tk9.0.0/unix/../generic/tkConfig.c:1580:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1578:20: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1579:24: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1579:24: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1580:50: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1580:25: danger: dereference of NULL ‘internalPtr’
# 1578|   		if (optionPtr->specPtr->flags & TYPE_MASK) {
# 1579|   		    if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(char)) {
# 1580|-> 			*((char *)internalPtr) = *((char *)ptr);
# 1581|   		    } else if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(short)) {
# 1582|   			*((short *)internalPtr) = *((short *)ptr);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
tk9.0.0/unix/../generic/tkConfig.c:1582:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1578:20: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1579:24: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1579:24: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1581:31: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1581:31: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1582:51: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1582:25: danger: dereference of NULL ‘internalPtr’
# 1580|   			*((char *)internalPtr) = *((char *)ptr);
# 1581|   		    } else if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(short)) {
# 1582|-> 			*((short *)internalPtr) = *((short *)ptr);
# 1583|   		    } else {
# 1584|   			Tcl_Panic("Invalid flags for %s", "TK_OPTION_BOOLEAN");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
tk9.0.0/unix/../generic/tkConfig.c:1587:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1578:20: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1587:45: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1587:21: danger: dereference of NULL ‘internalPtr’
# 1585|   		    }
# 1586|   		} else {
# 1587|-> 		    *((int *)internalPtr) = *((int *)ptr);
# 1588|   		}
# 1589|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def125]
tk9.0.0/unix/../generic/tkConfig.c:1594:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1591:20: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1592:24: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1592:24: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1594:54: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1594:29: danger: dereference of NULL ‘internalPtr’
# 1592|   		    if ((optionPtr->specPtr->flags & TYPE_MASK) == TYPE_MASK) {
# 1593|   			if (sizeof(long) > sizeof(int)) {
# 1594|-> 			    *((long *)internalPtr) = *((long *)ptr);
# 1595|   			} else {
# 1596|   			    *((long long *)internalPtr) = *((long long *)ptr);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
tk9.0.0/unix/../generic/tkConfig.c:1602:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1591:20: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1602:45: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1602:21: danger: dereference of NULL ‘internalPtr’
# 1600|   		    }
# 1601|   		} else {
# 1602|-> 		    *((int *)internalPtr) = *((int *)ptr);
# 1603|   		}
# 1604|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
tk9.0.0/unix/../generic/tkConfig.c:1606:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1606:17: danger: dereference of NULL ‘internalPtr’
# 1604|   		break;
# 1605|   	    case TK_OPTION_INDEX:
# 1606|-> 		*((int *)internalPtr) = *((int *)ptr);
# 1607|   		break;
# 1608|   	    case TK_OPTION_DOUBLE:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
tk9.0.0/unix/../generic/tkConfig.c:1609:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1609:17: danger: dereference of NULL ‘internalPtr’
# 1607|   		break;
# 1608|   	    case TK_OPTION_DOUBLE:
# 1609|-> 		*((double *)internalPtr) = *((double *)ptr);
# 1610|   		break;
# 1611|   	    case TK_OPTION_STRING:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
tk9.0.0/unix/../generic/tkConfig.c:1612:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1612:17: danger: dereference of NULL ‘internalPtr’
# 1610|   		break;
# 1611|   	    case TK_OPTION_STRING:
# 1612|-> 		*((char **)internalPtr) = *((char **)ptr);
# 1613|   		break;
# 1614|   	    case TK_OPTION_STRING_TABLE:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
tk9.0.0/unix/../generic/tkConfig.c:1617:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1615:20: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1616:24: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1616:24: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1617:50: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1617:25: danger: dereference of NULL ‘internalPtr’
# 1615|   		if (optionPtr->specPtr->flags & TYPE_MASK) {
# 1616|   		    if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(char)) {
# 1617|-> 			*((char *)internalPtr) = *((char *)ptr);
# 1618|   		    } else if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(short)) {
# 1619|   			*((short *)internalPtr) = *((short *)ptr);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
tk9.0.0/unix/../generic/tkConfig.c:1619:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1615:20: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1616:24: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1616:24: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1618:31: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1618:31: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1619:51: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1619:25: danger: dereference of NULL ‘internalPtr’
# 1617|   			*((char *)internalPtr) = *((char *)ptr);
# 1618|   		    } else if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(short)) {
# 1619|-> 			*((short *)internalPtr) = *((short *)ptr);
# 1620|   		    } else {
# 1621|   			Tcl_Panic("Invalid flags for %s", "TK_OPTION_STRING_TABLE");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def132]
tk9.0.0/unix/../generic/tkConfig.c:1624:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1615:20: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1624:45: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1624:21: danger: dereference of NULL ‘internalPtr’
# 1622|   		    }
# 1623|   		} else {
# 1624|-> 		    *((int *)internalPtr) = *((int *)ptr);
# 1625|   		}
# 1626|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def133]
tk9.0.0/unix/../generic/tkConfig.c:1628:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1628:17: danger: dereference of NULL ‘internalPtr’
# 1626|   		break;
# 1627|   	    case TK_OPTION_COLOR:
# 1628|-> 		*((XColor **)internalPtr) = *((XColor **)ptr);
# 1629|   		break;
# 1630|   	    case TK_OPTION_FONT:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def134]
tk9.0.0/unix/../generic/tkConfig.c:1631:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1631:17: danger: dereference of NULL ‘internalPtr’
# 1629|   		break;
# 1630|   	    case TK_OPTION_FONT:
# 1631|-> 		*((Tk_Font *)internalPtr) = *((Tk_Font *)ptr);
# 1632|   		break;
# 1633|   	    case TK_OPTION_STYLE:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
tk9.0.0/unix/../generic/tkConfig.c:1634:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1634:17: danger: dereference of NULL ‘internalPtr’
# 1632|   		break;
# 1633|   	    case TK_OPTION_STYLE:
# 1634|-> 		*((Tk_Style *)internalPtr) = *((Tk_Style *)ptr);
# 1635|   		break;
# 1636|   	    case TK_OPTION_BITMAP:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
tk9.0.0/unix/../generic/tkConfig.c:1637:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1637:17: danger: dereference of NULL ‘internalPtr’
# 1635|   		break;
# 1636|   	    case TK_OPTION_BITMAP:
# 1637|-> 		*((Pixmap *)internalPtr) = *((Pixmap *)ptr);
# 1638|   		break;
# 1639|   	    case TK_OPTION_BORDER:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
tk9.0.0/unix/../generic/tkConfig.c:1640:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1640:17: danger: dereference of NULL ‘internalPtr’
# 1638|   		break;
# 1639|   	    case TK_OPTION_BORDER:
# 1640|-> 		*((Tk_3DBorder *)internalPtr) = *((Tk_3DBorder *)ptr);
# 1641|   		break;
# 1642|   	    case TK_OPTION_RELIEF:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def138]
tk9.0.0/unix/../generic/tkConfig.c:1645:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1643:20: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1644:24: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1644:24: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1645:50: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1645:25: danger: dereference of NULL ‘internalPtr’
# 1643|   		if (optionPtr->specPtr->flags & TYPE_MASK) {
# 1644|   		    if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(char)) {
# 1645|-> 			*((char *)internalPtr) = *((char *)ptr);
# 1646|   		    } else if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(short)) {
# 1647|   			*((short *)internalPtr) = *((short *)ptr);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
tk9.0.0/unix/../generic/tkConfig.c:1647:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1643:20: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1644:24: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1644:24: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1646:31: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1646:31: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1647:51: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1647:25: danger: dereference of NULL ‘internalPtr’
# 1645|   			*((char *)internalPtr) = *((char *)ptr);
# 1646|   		    } else if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(short)) {
# 1647|-> 			*((short *)internalPtr) = *((short *)ptr);
# 1648|   		    } else {
# 1649|   			Tcl_Panic("Invalid flags for %s", "TK_OPTION_RELIEF");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
tk9.0.0/unix/../generic/tkConfig.c:1652:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1643:20: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1652:45: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1652:21: danger: dereference of NULL ‘internalPtr’
# 1650|   		    }
# 1651|   		} else {
# 1652|-> 		    *((int *)internalPtr) = *((int *)ptr);
# 1653|   		}
# 1654|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
tk9.0.0/unix/../generic/tkConfig.c:1656:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1656:17: danger: dereference of NULL ‘internalPtr’
# 1654|   		break;
# 1655|   	    case TK_OPTION_CURSOR:
# 1656|-> 		*((Tk_Cursor *) internalPtr) = *((Tk_Cursor *) ptr);
# 1657|   		Tk_DefineCursor(savePtr->tkwin, *((Tk_Cursor *) internalPtr));
# 1658|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
tk9.0.0/unix/../generic/tkConfig.c:1662:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1660:20: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1661:24: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1661:24: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1662:50: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1662:25: danger: dereference of NULL ‘internalPtr’
# 1660|   		if (optionPtr->specPtr->flags & TYPE_MASK) {
# 1661|   		    if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(char)) {
# 1662|-> 			*((char *)internalPtr) = *((char *)ptr);
# 1663|   		    } else if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(short)) {
# 1664|   			*((short *)internalPtr) = *((short *)ptr);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def143]
tk9.0.0/unix/../generic/tkConfig.c:1664:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1660:20: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1661:24: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1661:24: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1663:31: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1663:31: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1664:51: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1664:25: danger: dereference of NULL ‘internalPtr’
# 1662|   			*((char *)internalPtr) = *((char *)ptr);
# 1663|   		    } else if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(short)) {
# 1664|-> 			*((short *)internalPtr) = *((short *)ptr);
# 1665|   		    } else {
# 1666|   			Tcl_Panic("Invalid flags for %s", "TK_OPTION_JUSTIFY");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
tk9.0.0/unix/../generic/tkConfig.c:1669:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1660:20: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1669:45: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1669:21: danger: dereference of NULL ‘internalPtr’
# 1667|   		    }
# 1668|   		} else {
# 1669|-> 		    *((int *)internalPtr) = *((int *)ptr);
# 1670|   		}
# 1671|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
tk9.0.0/unix/../generic/tkConfig.c:1675:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1673:20: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1674:24: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1674:24: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1675:50: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1675:25: danger: dereference of NULL ‘internalPtr’
# 1673|   		if (optionPtr->specPtr->flags & TYPE_MASK) {
# 1674|   		    if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(char)) {
# 1675|-> 			*((char *)internalPtr) = *((char *)ptr);
# 1676|   		    } else if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(short)) {
# 1677|   			*((short *)internalPtr) = *((short *)ptr);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
tk9.0.0/unix/../generic/tkConfig.c:1677:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1673:20: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1674:24: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1674:24: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1676:31: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1676:31: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1677:51: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1677:25: danger: dereference of NULL ‘internalPtr’
# 1675|   			*((char *)internalPtr) = *((char *)ptr);
# 1676|   		    } else if ((optionPtr->specPtr->flags & TYPE_MASK) == TK_OPTION_VAR(short)) {
# 1677|-> 			*((short *)internalPtr) = *((short *)ptr);
# 1678|   		    } else {
# 1679|   			Tcl_Panic("Invalid flags for %s", "TK_OPTION_ANCHOR");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
tk9.0.0/unix/../generic/tkConfig.c:1682:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1673:20: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1682:45: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1682:21: danger: dereference of NULL ‘internalPtr’
# 1680|   		    }
# 1681|   		} else {
# 1682|-> 		    *((int *)internalPtr) = *((int *)ptr);
# 1683|   		}
# 1684|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
tk9.0.0/unix/../generic/tkConfig.c:1686:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1686:17: danger: dereference of NULL ‘internalPtr’
# 1684|   		break;
# 1685|   	    case TK_OPTION_PIXELS:
# 1686|-> 		*((int *)internalPtr) = *((int *)ptr);
# 1687|   		break;
# 1688|   	    case TK_OPTION_WINDOW:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
tk9.0.0/unix/../generic/tkConfig.c:1689:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1560:12: branch_false: following ‘false’ branch (when ‘newPtr’ is NULL)...
tk9.0.0/unix/../generic/tkConfig.c:1568:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1568:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1572:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1572:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1573:19: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1689:17: danger: dereference of NULL ‘internalPtr’
# 1687|   		break;
# 1688|   	    case TK_OPTION_WINDOW:
# 1689|-> 		*((Tk_Window *)internalPtr) = *((Tk_Window *)ptr);
# 1690|   		break;
# 1691|   	    case TK_OPTION_CUSTOM: {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
tk9.0.0/unix/../generic/tkConfig.c:1852:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1514:1: enter_function: entry to ‘Tk_RestoreSavedOptions’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1547:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1552:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1558:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1558:13: call_function: calling ‘FreeResources’ from ‘Tk_RestoreSavedOptions’
# 1850|       case TK_OPTION_STRING:
# 1851|   	if (internalFormExists) {
# 1852|-> 	    if (*((char **)internalPtr) != NULL) {
# 1853|   		ckfree(*((char **)internalPtr));
# 1854|   		*((char **)internalPtr) = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
tk9.0.0/unix/../generic/tkConfig.c:1860:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1514:1: enter_function: entry to ‘Tk_RestoreSavedOptions’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1547:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1552:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1558:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1558:13: call_function: calling ‘FreeResources’ from ‘Tk_RestoreSavedOptions’
# 1858|       case TK_OPTION_COLOR:
# 1859|   	if (internalFormExists) {
# 1860|-> 	    if (*((XColor **)internalPtr) != NULL) {
# 1861|   		Tk_FreeColor(*((XColor **)internalPtr));
# 1862|   		*((XColor **)internalPtr) = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def152]
tk9.0.0/unix/../generic/tkConfig.c:1870:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1514:1: enter_function: entry to ‘Tk_RestoreSavedOptions’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1547:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1552:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1558:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1558:13: call_function: calling ‘FreeResources’ from ‘Tk_RestoreSavedOptions’
# 1868|       case TK_OPTION_FONT:
# 1869|   	if (internalFormExists) {
# 1870|-> 	    Tk_FreeFont(*((Tk_Font *)internalPtr));
# 1871|   	    *((Tk_Font *)internalPtr) = NULL;
# 1872|   	} else if (objPtr != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
tk9.0.0/unix/../generic/tkConfig.c:1878:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1514:1: enter_function: entry to ‘Tk_RestoreSavedOptions’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1547:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1552:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1558:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1558:13: call_function: calling ‘FreeResources’ from ‘Tk_RestoreSavedOptions’
# 1876|       case TK_OPTION_STYLE:
# 1877|   	if (internalFormExists) {
# 1878|-> 	    Tk_FreeStyle(*((Tk_Style *)internalPtr));
# 1879|   	    *((Tk_Style *)internalPtr) = NULL;
# 1880|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
tk9.0.0/unix/../generic/tkConfig.c:1884:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1514:1: enter_function: entry to ‘Tk_RestoreSavedOptions’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1547:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1552:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1558:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1558:13: call_function: calling ‘FreeResources’ from ‘Tk_RestoreSavedOptions’
# 1882|       case TK_OPTION_BITMAP:
# 1883|   	if (internalFormExists) {
# 1884|-> 	    if (*((Pixmap *)internalPtr) != None) {
# 1885|   		Tk_FreeBitmap(Tk_Display(tkwin), *((Pixmap *)internalPtr));
# 1886|   		*((Pixmap *)internalPtr) = None;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
tk9.0.0/unix/../generic/tkConfig.c:1894:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1514:1: enter_function: entry to ‘Tk_RestoreSavedOptions’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1547:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1552:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1558:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1558:13: call_function: calling ‘FreeResources’ from ‘Tk_RestoreSavedOptions’
# 1892|       case TK_OPTION_BORDER:
# 1893|   	if (internalFormExists) {
# 1894|-> 	    if (*((Tk_3DBorder *)internalPtr) != NULL) {
# 1895|   		Tk_Free3DBorder(*((Tk_3DBorder *)internalPtr));
# 1896|   		*((Tk_3DBorder *)internalPtr) = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def156]
tk9.0.0/unix/../generic/tkConfig.c:1904:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘internalPtr’
tk9.0.0/unix/../generic/tkConfig.c:1514:1: enter_function: entry to ‘Tk_RestoreSavedOptions’
tk9.0.0/unix/../generic/tkConfig.c:1533:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1538:14: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1538:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
tk9.0.0/unix/../generic/tkConfig.c:1539:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1547:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1552:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1552:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1557:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1557:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkConfig.c:1558:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkConfig.c:1558:13: call_function: calling ‘FreeResources’ from ‘Tk_RestoreSavedOptions’
# 1902|       case TK_OPTION_CURSOR:
# 1903|   	if (internalFormExists) {
# 1904|-> 	    if (*((Tk_Cursor *) internalPtr) != NULL) {
# 1905|   		Tk_FreeCursor(Tk_Display(tkwin), *((Tk_Cursor *) internalPtr));
# 1906|   		*((Tk_Cursor *) internalPtr) = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
tk9.0.0/unix/../generic/tkConsole.c:751:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cmd’
tk9.0.0/unix/../generic/tkConsole.c:706:8: branch_false: following ‘false’ branch (when ‘objc > 1’)...
tk9.0.0/unix/../generic/tkConsole.c:710:9: branch_false: ...to here
tk9.0.0/unix/../generic/tkConsole.c:710:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkConsole.c:715:13: branch_false: ...to here
tk9.0.0/unix/../generic/tkConsole.c:751:5: danger: dereference of NULL ‘cmd’
#  749|       }
#  750|   
#  751|->     Tcl_IncrRefCount(cmd);
#  752|       if (consoleInterp && !Tcl_InterpDeleted(consoleInterp)) {
#  753|   	Tcl_Preserve(consoleInterp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
tk9.0.0/unix/../generic/tkListbox.c:1705:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘errorResult’
tk9.0.0/unix/../generic/tkListbox.c:1574:21: branch_true: following ‘true’ branch (when ‘error != 2’)...
tk9.0.0/unix/../generic/tkListbox.c:1575:12: branch_true: ...to here
tk9.0.0/unix/../generic/tkListbox.c:1575:12: branch_true: following ‘true’ branch (when ‘error == 0’)...
tk9.0.0/unix/../generic/tkListbox.c:1580:17: branch_true: ...to here
tk9.0.0/unix/../generic/tkListbox.c:1703:8: branch_true: following ‘true’ branch (when ‘error != 0’)...
tk9.0.0/unix/../generic/tkListbox.c:1704:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkListbox.c:1705:9: danger: dereference of NULL ‘errorResult’
# 1703|       if (error) {
# 1704|   	Tcl_SetObjResult(interp, errorResult);
# 1705|-> 	Tcl_DecrRefCount(errorResult);
# 1706|   	return TCL_ERROR;
# 1707|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
tk9.0.0/unix/../generic/tkMenubutton.c:646:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘errorResult’
tk9.0.0/unix/../generic/tkMenubutton.c:505:21: branch_true: following ‘true’ branch (when ‘error != 2’)...
tk9.0.0/unix/../generic/tkMenubutton.c:506:12: branch_true: ...to here
tk9.0.0/unix/../generic/tkMenubutton.c:506:12: branch_true: following ‘true’ branch (when ‘error == 0’)...
tk9.0.0/unix/../generic/tkMenubutton.c:511:17: branch_true: ...to here
tk9.0.0/unix/../generic/tkMenubutton.c:644:8: branch_true: following ‘true’ branch (when ‘error != 0’)...
tk9.0.0/unix/../generic/tkMenubutton.c:645:9: branch_true: ...to here
tk9.0.0/unix/../generic/tkMenubutton.c:646:9: danger: dereference of NULL ‘errorResult’
#  644|       if (error) {
#  645|   	Tcl_SetObjResult(interp, errorResult);
#  646|-> 	Tcl_DecrRefCount(errorResult);
#  647|   	return TCL_ERROR;
#  648|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
tk9.0.0/unix/../generic/tkText.c:5976:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pattern’
tk9.0.0/unix/../generic/tkText.c:5771:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkText.c:5792:18: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5796:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkText.c:5808:9: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5808:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkText.c:5830:9: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5848:22: branch_true: following ‘true’ branch (when ‘passes != 2’)...
tk9.0.0/unix/../generic/tkText.c:5850:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkText.c:5853:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkText.c:5868:20: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5871:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkText.c:5881:24: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5887:12: branch_false: following ‘false’ branch (when ‘alreadySearchOffset < 0’)...
tk9.0.0/unix/../generic/tkText.c:5900:24: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5944:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkText.c:5946:39: branch_true: ...to here
tk9.0.0/unix/../generic/tkText.c:5954:20: branch_true: following ‘true’ branch (when ‘firstNewLine == -1’)...
tk9.0.0/unix/../generic/tkText.c:5955:25: branch_true: ...to here
tk9.0.0/unix/../generic/tkText.c:5969:24: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkText.c:5976:52: branch_true: ...to here
tk9.0.0/unix/../generic/tkText.c:5976:36: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkText.c:5976:36: branch_true: ...to here
tk9.0.0/unix/../generic/tkText.c:5976:36: danger: dereference of NULL ‘pattern’
# 5974|   			 */
# 5975|   
# 5976|-> 			const char c = matchLength ? pattern[0] : '\0';
# 5977|   
# 5978|   			if (alreadySearchOffset >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def161]
tk9.0.0/unix/../generic/tkText.c:5993:29: warning[-Wanalyzer-null-argument]: use of NULL ‘pattern’ where non-null expected
tk9.0.0/unix/../generic/tkText.c:5771:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkText.c:5792:18: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5796:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkText.c:5808:9: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5808:8: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkText.c:5830:9: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5848:22: branch_true: following ‘true’ branch (when ‘passes != 2’)...
tk9.0.0/unix/../generic/tkText.c:5850:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkText.c:5853:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkText.c:5868:20: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5871:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkText.c:5881:24: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5887:12: branch_false: following ‘false’ branch (when ‘alreadySearchOffset < 0’)...
tk9.0.0/unix/../generic/tkText.c:5900:24: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5944:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkText.c:5946:39: branch_true: ...to here
tk9.0.0/unix/../generic/tkText.c:5954:20: branch_true: following ‘true’ branch (when ‘firstNewLine == -1’)...
tk9.0.0/unix/../generic/tkText.c:5955:25: branch_true: ...to here
tk9.0.0/unix/../generic/tkText.c:5969:24: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkText.c:5993:29: branch_false: ...to here
tk9.0.0/unix/../generic/tkText.c:5993:29: danger: argument 2 (‘pattern’) NULL where non-null expected
#argument 2 of ‘__builtin_strstr’ must be non-null
# 5991|   			break;
# 5992|   		    } else {
# 5993|-> 			p = strstr(startOfLine + firstOffset, pattern);
# 5994|   		    }
# 5995|   		    if (p == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def162]
tk9.0.0/unix/../generic/tkTextBTree.c:4314:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘halfwayLinePtr’
tk9.0.0/unix/../generic/tkTextBTree.c:4122:13: branch_true: following ‘true’ branch (when ‘nodePtr’ is non-NULL)...
tk9.0.0/unix/../generic/tkTextBTree.c:4134:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4197:16: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkTextBTree.c:4211:17: branch_true: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4211:16: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkTextBTree.c:4227:17: branch_false: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4270:24: branch_false: following ‘false’ branch (when ‘i > firstChildren’)...
tk9.0.0/unix/../generic/tkTextBTree.c:4297:16: branch_false: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4297:16: branch_false: following ‘false’ branch (when ‘totalChildren > 12’)...
tk9.0.0/unix/../generic/tkTextBTree.c:4312:16: branch_false: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4312:16: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkTextBTree.c:4314:46: branch_true: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4314:46: danger: dereference of NULL ‘halfwayLinePtr’
# 4312|   	    if (nodePtr->level == 0) {
# 4313|   		CLANG_ASSERT(halfwayLinePtr);
# 4314|-> 		otherPtr->children.linePtr = halfwayLinePtr->nextPtr;
# 4315|   		halfwayLinePtr->nextPtr = NULL;
# 4316|   	    } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def163]
tk9.0.0/unix/../generic/tkTextBTree.c:4318:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘halfwayNodePtr’
tk9.0.0/unix/../generic/tkTextBTree.c:4122:13: branch_true: following ‘true’ branch (when ‘nodePtr’ is non-NULL)...
tk9.0.0/unix/../generic/tkTextBTree.c:4134:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4197:16: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/tkTextBTree.c:4211:17: branch_true: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4211:16: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkTextBTree.c:4227:17: branch_false: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4286:24: branch_false: following ‘false’ branch (when ‘i > firstChildren’)...
tk9.0.0/unix/../generic/tkTextBTree.c:4297:16: branch_false: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4297:16: branch_false: following ‘false’ branch (when ‘totalChildren > 12’)...
tk9.0.0/unix/../generic/tkTextBTree.c:4312:16: branch_false: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4312:16: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkTextBTree.c:4318:46: branch_false: ...to here
tk9.0.0/unix/../generic/tkTextBTree.c:4318:46: danger: dereference of NULL ‘halfwayNodePtr’
# 4316|   	    } else {
# 4317|   		CLANG_ASSERT(halfwayNodePtr);
# 4318|-> 		otherPtr->children.nodePtr = halfwayNodePtr->nextPtr;
# 4319|   		halfwayNodePtr->nextPtr = NULL;
# 4320|   	    }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def164]
tk9.0.0/unix/../generic/tkTextTag.c:1001:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hPtr’
tk9.0.0/unix/../generic/tkTextTag.c:923:8: branch_true: following ‘true’ branch (when the strings are equal)...
tk9.0.0/unix/../generic/tkTextTag.c:924:13: branch_true: ...to here
tk9.0.0/unix/../generic/tkTextTag.c:924:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkTextTag.c:930:12: branch_false: ...to here
tk9.0.0/unix/../generic/tkTextTag.c:996:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
tk9.0.0/unix/../generic/tkTextTag.c:1001:9: branch_false: ...to here
tk9.0.0/unix/../generic/tkTextTag.c:1001:9: danger: dereference of NULL ‘hPtr’
#  999|       } else {
# 1000|   	CLANG_ASSERT(hPtr);
# 1001|-> 	Tcl_SetHashValue(hPtr, tagPtr);
# 1002|       }
# 1003|       tagPtr->optionTable =

Error: GCC_ANALYZER_WARNING (CWE-476): [#def165]
tk9.0.0/unix/../generic/tkUndo.c:396:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prevelem’
tk9.0.0/unix/../generic/tkUndo.c:388:16: branch_false: following ‘false’ branch (when ‘elem’ is NULL)...
tk9.0.0/unix/../generic/tkUndo.c:396:9: branch_false: ...to here
tk9.0.0/unix/../generic/tkUndo.c:396:9: danger: dereference of NULL ‘prevelem’
#  394|   	}
#  395|   	CLANG_ASSERT(prevelem);
#  396|-> 	prevelem->next = NULL;
#  397|   	while (elem != NULL) {
#  398|   	    prevelem = elem;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
tk9.0.0/unix/../generic/tkVisual.c:307:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bestPtr’
tk9.0.0/unix/../generic/tkVisual.c:123:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkVisual.c:126:9: branch_false: ...to here
tk9.0.0/unix/../generic/tkVisual.c:127:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkVisual.c:147:23: branch_false: ...to here
tk9.0.0/unix/../generic/tkVisual.c:240:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
tk9.0.0/unix/../generic/tkVisual.c:263:17: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/tkVisual.c:307:17: branch_false: ...to here
tk9.0.0/unix/../generic/tkVisual.c:307:17: danger: dereference of NULL ‘bestPtr’
#  305|       }
#  306|       CLANG_ASSERT(bestPtr);
#  307|->     *depthPtr = bestPtr->depth;
#  308|       visual = bestPtr->visual;
#  309|       XFree(visInfoList);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def167]
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:500:9: warning[-Wanalyzer-null-argument]: use of NULL ‘upperBdColorPtr’ where non-null expected
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:435:8: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:435:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:435:12: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:437:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:435:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:438:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:435:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:450:16: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:469:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:473:22: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:481:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:484:9: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkClamTheme.c:500:9: danger: argument 1 (‘upperBdColorPtr’) NULL where non-null expected
#argument 1 of ‘__builtin_memcpy’ must be non-null
#  498|   	assert(bgColorPtr);
#  499|   
#  500|-> 	memcpy(upperBdColorPtr, upperBdColorStr, 6);
#  501|   	memcpy(lowerBdColorPtr, lowerBdColorStr, 6);
#  502|   	memcpy(bgColorPtr, bgColorStr, 6);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def168]
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:673:9: warning[-Wanalyzer-null-argument]: use of NULL ‘shadeColorPtr’ where non-null expected
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:602:8: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:602:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:602:12: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:604:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:602:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:605:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:602:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:617:16: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:638:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:642:22: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:650:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:653:9: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkDefaultTheme.c:673:9: danger: argument 1 (‘shadeColorPtr’) NULL where non-null expected
#argument 1 of ‘__builtin_memcpy’ must be non-null
#  671|   	assert(indicatorColorPtr);
#  672|   
#  673|-> 	memcpy(shadeColorPtr, shadeColorStr, 6);
#  674|   	memcpy(highlightColorPtr, indicatorColorStr, 6);
#  675|   	memcpy(borderColorPtr, borderColorStr, 6);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def169]
tk9.0.0/unix/../generic/ttk/ttkElements.c:853:13: warning[-Wanalyzer-null-argument]: use of NULL ‘bgColorPtr’ where non-null expected
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:8: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:791:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:792:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:803:16: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:824:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:828:22: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:837:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:840:9: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:846:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:847:26: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:853:13: danger: argument 1 (‘bgColorPtr’) NULL where non-null expected
#argument 1 of ‘__builtin_memcpy’ must be non-null
#  851|   	    assert(fgColorPtr);
#  852|   
#  853|-> 	    memcpy(bgColorPtr, bgColorStr, 6);
#  854|   	    memcpy(fgColorPtr, fgColorStr, 6);
#  855|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def170]
tk9.0.0/unix/../generic/ttk/ttkElements.c:854:13: warning[-Wanalyzer-null-argument]: use of NULL ‘fgColorPtr’ where non-null expected
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:8: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:791:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:792:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:803:16: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:824:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:828:22: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:837:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:840:9: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:846:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:847:26: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:854:13: danger: argument 1 (‘fgColorPtr’) NULL where non-null expected
#argument 1 of ‘__builtin_memcpy’ must be non-null
#  852|   
#  853|   	    memcpy(bgColorPtr, bgColorStr, 6);
#  854|-> 	    memcpy(fgColorPtr, fgColorStr, 6);
#  855|   	} else {
#  856|   	    bgColorPtr =     strstr(svgDataCopy, "ffffff");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def171]
tk9.0.0/unix/../generic/ttk/ttkElements.c:862:13: warning[-Wanalyzer-null-argument]: use of NULL ‘bgColorPtr’ where non-null expected
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:8: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:791:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:792:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:803:16: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:824:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:828:22: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:837:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:840:9: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:846:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:856:30: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:862:13: danger: argument 1 (‘bgColorPtr’) NULL where non-null expected
#argument 1 of ‘__builtin_memcpy’ must be non-null
#  860|   	    assert(borderColorPtr);
#  861|   
#  862|-> 	    memcpy(bgColorPtr, bgColorStr, 6);
#  863|   	    memcpy(borderColorPtr, borderColorStr, 6);
#  864|   	}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def172]
tk9.0.0/unix/../generic/ttk/ttkElements.c:863:13: warning[-Wanalyzer-null-argument]: use of NULL ‘borderColorPtr’ where non-null expected
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:8: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:791:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:792:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:789:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:803:16: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:824:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:828:22: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:837:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:840:9: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:846:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:856:30: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:863:13: danger: argument 1 (‘borderColorPtr’) NULL where non-null expected
#argument 1 of ‘__builtin_memcpy’ must be non-null
#  861|   
#  862|   	    memcpy(bgColorPtr, bgColorStr, 6);
#  863|-> 	    memcpy(borderColorPtr, borderColorStr, 6);
#  864|   	}
#  865|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def173]
tk9.0.0/unix/../generic/ttk/ttkElements.c:1495:9: warning[-Wanalyzer-null-argument]: use of NULL ‘innerColorPtr’ where non-null expected
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:8: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1429:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1430:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1442:8: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1473:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1479:31: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1480:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1483:9: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1495:9: danger: argument 1 (‘innerColorPtr’) NULL where non-null expected
#argument 1 of ‘__builtin_memcpy’ must be non-null
# 1493|   	assert(outerColorPtr);
# 1494|   	assert(borderColorPtr);
# 1495|-> 	memcpy(innerColorPtr, innerColorStr, 6);
# 1496|   	memcpy(outerColorPtr, outerColorStr, 6);
# 1497|   	memcpy(borderColorPtr, borderColorStr, 6);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def174]
tk9.0.0/unix/../generic/ttk/ttkElements.c:1496:9: warning[-Wanalyzer-null-argument]: use of NULL ‘outerColorPtr’ where non-null expected
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:8: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1429:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1430:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1442:8: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1473:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1479:31: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1480:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1483:9: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1496:9: danger: argument 1 (‘outerColorPtr’) NULL where non-null expected
#argument 1 of ‘__builtin_memcpy’ must be non-null
# 1494|   	assert(borderColorPtr);
# 1495|   	memcpy(innerColorPtr, innerColorStr, 6);
# 1496|-> 	memcpy(outerColorPtr, outerColorStr, 6);
# 1497|   	memcpy(borderColorPtr, borderColorStr, 6);
# 1498|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def175]
tk9.0.0/unix/../generic/ttk/ttkElements.c:1497:9: warning[-Wanalyzer-null-argument]: use of NULL ‘borderColorPtr’ where non-null expected
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:8: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: following ‘false’ branch (when ‘<unknown> >= 0’)...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1429:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1430:12: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1427:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1442:8: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1473:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1479:31: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1480:12: branch_false: following ‘false’ branch...
tk9.0.0/unix/../generic/ttk/ttkElements.c:1483:9: branch_false: ...to here
tk9.0.0/unix/../generic/ttk/ttkElements.c:1497:9: danger: argument 1 (‘borderColorPtr’) NULL where non-null expected
#argument 1 of ‘__builtin_memcpy’ must be non-null
# 1495|   	memcpy(innerColorPtr, innerColorStr, 6);
# 1496|   	memcpy(outerColorPtr, outerColorStr, 6);
# 1497|-> 	memcpy(borderColorPtr, borderColorStr, 6);
# 1498|   
# 1499|   	/*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def176]
tk9.0.0/unix/../generic/ttk/ttkTreeview.c:3843:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
tk9.0.0/unix/../generic/ttk/ttkTreeview.c:3842:8: branch_true: following ‘true’ branch...
tk9.0.0/unix/../generic/ttk/ttkTreeview.c:3843:9: branch_true: ...to here
tk9.0.0/unix/../generic/ttk/ttkTreeview.c:3843:9: danger: dereference of NULL ‘FindColumn(0, tv,  elemPtr)’
# 3841|       }
# 3842|       if (add || toggle) {
# 3843|-> 	Tcl_ListObjAppendElement(NULL, listPtr, elemColumn->idObj);
# 3844|   	anyChange = 1;
# 3845|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
tk9.0.0/unix/../unix/tkUnixSelect.c:1339:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘selPtr’
tk9.0.0/unix/../unix/tkUnixSelect.c:794:1: enter_function: entry to ‘ConvertSelection’
tk9.0.0/unix/../unix/tkUnixSelect.c:839:55: branch_true: following ‘true’ branch (when ‘infoPtr’ is non-NULL)...
tk9.0.0/unix/../unix/tkUnixSelect.c:841:13: branch_true: ...to here
tk9.0.0/unix/../unix/tkUnixSelect.c:845:8: branch_false: following ‘false’ branch (when ‘infoPtr’ is non-NULL)...
tk9.0.0/unix/../unix/tkUnixSelect.c:848:5: branch_false: ...to here
tk9.0.0/unix/../unix/tkUnixSelect.c:898:17: branch_true: following ‘true’ branch...
tk9.0.0/unix/../unix/tkUnixSelect.c:906:18: branch_true: ...to here
tk9.0.0/unix/../unix/tkUnixSelect.c:919:12: branch_true: following ‘true’ branch (when ‘selPtr’ is NULL)...
tk9.0.0/unix/../unix/tkUnixSelect.c:926:24: branch_true: ...to here
tk9.0.0/unix/../unix/tkUnixSelect.c:928:16: branch_false: following ‘false’ branch...
tk9.0.0/unix/../unix/tkUnixSelect.c:954:13: branch_false: ...to here
tk9.0.0/unix/../unix/tkUnixSelect.c:954:12: branch_true: following ‘true’ branch...
tk9.0.0/unix/../unix/tkUnixSelect.c:960:13: branch_true: ...to here
tk9.0.0/unix/../unix/tkUnixSelect.c:962:25: call_function: calling ‘SelectionSize’ from ‘ConvertSelection’
# 1337|   
# 1338|       do {
# 1339|-> 	chunkSize = selPtr->proc(selPtr->clientData, size, (char *) buffer,
# 1340|   		TK_SEL_BYTES_AT_ONCE);
# 1341|   	if (ip.selPtr == NULL) {

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-40.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-nametk-9.0.0-4.fc43
store-results-to/tmp/tmp_tmle3xd/tk-9.0.0-4.fc43.tar.xz
time-created2025-04-25 15:50:16
time-finished2025-04-25 15:52:44
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp_tmle3xd/tk-9.0.0-4.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp_tmle3xd/tk-9.0.0-4.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9