Task #133045 - fixed.err

back to task #133045
download
Error: GCC_ANALYZER_WARNING (CWE-688):
xmodmap-1.0.11/handle.c:331:10: warning[-Wanalyzer-null-argument]: use of NULL ‘tmpname’ where non-null expected
xmodmap-1.0.11/handle.c:962:1: enter_function: entry to ‘get_keysym_list’
xmodmap-1.0.11/handle.c:975:8: branch_false: following ‘false’ branch (when ‘keysymlist’ is non-NULL)...
xmodmap-1.0.11/handle.c:975:8: branch_false: ...to here
xmodmap-1.0.11/handle.c:981:12: branch_true: following ‘true’ branch (when ‘len > 0’)...
xmodmap-1.0.11/handle.c:987:13: branch_true: ...to here
xmodmap-1.0.11/handle.c:997:14: call_function: calling ‘parse_keysym’ from ‘get_keysym_list’
#  329|   {
#  330|       *name = copy_to_scratch (line, n);
#  331|->     if (!strcmp(*name, "NoSymbol")) {
#  332|   	*keysym = NoSymbol;
#  333|   	return (True);

Error: GCC_ANALYZER_WARNING (CWE-476):
xmodmap-1.0.11/handle.c:336:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tmpname’
xmodmap-1.0.11/handle.c:962:1: enter_function: entry to ‘get_keysym_list’
xmodmap-1.0.11/handle.c:975:8: branch_false: following ‘false’ branch (when ‘keysymlist’ is non-NULL)...
xmodmap-1.0.11/handle.c:975:8: branch_false: ...to here
xmodmap-1.0.11/handle.c:981:12: branch_true: following ‘true’ branch (when ‘len > 0’)...
xmodmap-1.0.11/handle.c:987:13: branch_true: ...to here
xmodmap-1.0.11/handle.c:997:14: call_function: calling ‘parse_keysym’ from ‘get_keysym_list’
#  334|       }
#  335|       *keysym = XStringToKeysym (*name);
#  336|->     if (*keysym == NoSymbol && '0' <= **name && **name <= '9')
#  337|   	return parse_number(*name, keysym);
#  338|       return (*keysym != NoSymbol);