Task #497 - guile30-3.0.9-1.fc41/scan-results.err
back to task #497download
Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/guile-readline/readline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/lib/localcharset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-563): guile30-3.0.9-build/guile-3.0.9/lib/localcharset.c: scope_hint: In function 'environ_locale_charset' guile30-3.0.9-build/guile-3.0.9/lib/localcharset.c:1167:25: warning[-Wunused-variable]: unused variable 'aliases' # 1167 | const char *codeset, *aliases; # | ^~~~~~~ # 1165| { # 1166| static char buf[2 + 10 + 1]; # 1167|-> const char *codeset, *aliases; # 1168| const char *locale = NULL; # 1169| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/lib/localcharset.c:1262: error[legacyUninitvar]: Uninitialized variable: codeset # 1260| the empty string as denoting "the locale's character encoding", # 1261| thus GNU libiconv would call this function a second time. */ # 1262|-> if (codeset[0] == '\0') # 1263| codeset = "ASCII"; # 1264| # endif Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/lib/localcharset.c:1262:13: warning[core.NullDereference]: Array access (from variable 'codeset') results in an undefined pointer dereference # 1260| the empty string as denoting "the locale's character encoding", # 1261| thus GNU libiconv would call this function a second time. */ # 1262|-> if (codeset[0] == '\0') # 1263| codeset = "ASCII"; # 1264| # endif Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/lib/nproc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/lib/nstrftime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:71:10: warning[-Wanalyzer-malloc-leak]: leak of 'iconv_open("UTF-8", from_codeset)' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:66:7: note: in expansion of macro 'STRCASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:162:7: note: in expansion of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h: scope_hint: In function 'iconveh_open' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:35:29: note: in definition of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:66:7: note: in expansion of macro 'STRCASEEQ' # 69| { # 70| cd1 = iconv_open ("UTF-8", from_codeset); # 71|-> if (cd1 == (iconv_t)(-1)) # 72| { # 73| int saved_errno = errno; Error: GCC_ANALYZER_WARNING (CWE-401): guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:92:10: warning[-Wanalyzer-malloc-leak]: leak of 'iconv_open(to_codeset, "UTF-8")' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:66:7: note: in expansion of macro 'STRCASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:162:7: note: in expansion of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h: scope_hint: In function 'iconveh_open' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:35:29: note: in definition of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:66:7: note: in expansion of macro 'STRCASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:81:7: note: in expansion of macro 'STRCASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:81:7: note: in expansion of macro 'STRCASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:162:7: note: in expansion of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h: scope_hint: In function 'iconveh_open' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:35:29: note: in definition of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:81:7: note: in expansion of macro 'STRCASEEQ' # 90| { # 91| cd2 = iconv_open (to_codeset, "UTF-8"); # 92|-> if (cd2 == (iconv_t)(-1)) # 93| { # 94| int saved_errno = errno; Error: GCC_ANALYZER_WARNING (CWE-401): guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c: scope_hint: In function 'str_cd_iconveh' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:373:7: warning[-Wanalyzer-malloc-leak]: leak of 'str_cd_iconveh(src, & cd, handler)' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:66:7: note: in expansion of macro 'STRCASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:162:7: note: in expansion of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h: scope_hint: In function 'str_cd_iconveh' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:35:29: note: in definition of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:148:7: note: in expansion of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h: scope_hint: In function 'str_cd_iconveh' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:35:29: note: in definition of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:134:7: note: in expansion of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h: scope_hint: In function 'str_cd_iconveh' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:35:29: note: in definition of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:120:7: note: in expansion of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h: scope_hint: In function 'str_cd_iconveh' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:35:59: note: in definition of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:106:7: note: in expansion of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h: scope_hint: In function 'str_cd_iconveh' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:35:59: note: in definition of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:92:7: note: in expansion of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h: scope_hint: In function 'str_cd_iconveh' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:35:59: note: in definition of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:66:7: note: in expansion of macro 'STRCASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:81:7: note: in expansion of macro 'STRCASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:81:7: note: in expansion of macro 'STRCASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:162:7: note: in expansion of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h: scope_hint: In function 'str_cd_iconveh' guile30-3.0.9-build/guile-3.0.9/lib/c-strcaseeq.h:35:29: note: in definition of macro 'CASEEQ' guile30-3.0.9-build/guile-3.0.9/lib/striconveh.c:81:7: note: in expansion of macro 'STRCASEEQ' # 371| size_t last_length = (size_t)(-1); /* only needed if offsets != NULL */ # 372| # 373|-> if (*resultp != NULL && *lengthp >= sizeof (tmpbuf)) # 374| { # 375| initial_result = *resultp; Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c: scope_hint: In function 'set_tz' guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c:67:47: warning[-Wanalyzer-malloc-leak]: leak of 'tzalloc(getenv("TZ"))' guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c:27: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c:29: included_from: Included from here. # 65| tzalloc (char const *name) # 66| { # 67|-> size_t name_size = name ? strlen (name) + 1 : 0; # 68| size_t abbr_size = name_size < ABBR_SIZE_MIN ? ABBR_SIZE_MIN : name_size + 1; # 69| timezone_t tz = malloc (FLEXSIZEOF (struct tm_zone, abbrs, abbr_size)); Error: GCC_ANALYZER_WARNING (CWE-401): guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c:68:64: warning[-Wanalyzer-malloc-leak]: leak of 'tzalloc(getenv("TZ"))' # 66| { # 67| size_t name_size = name ? strlen (name) + 1 : 0; # 68|-> size_t abbr_size = name_size < ABBR_SIZE_MIN ? ABBR_SIZE_MIN : name_size + 1; # 69| timezone_t tz = malloc (FLEXSIZEOF (struct tm_zone, abbrs, abbr_size)); # 70| if (tz) Error: GCC_ANALYZER_WARNING (CWE-401): guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c: scope_hint: In function 'mktime_z' guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c:210:11: warning[-Wanalyzer-malloc-leak]: leak of 'set_tz(tz)' # 208| char *env_tz = getenv_TZ (); # 209| if (env_tz # 210|-> ? tz->tz_is_set && strcmp (tz->abbrs, env_tz) == 0 # 211| : !tz->tz_is_set) # 212| return local_tz; Error: GCC_ANALYZER_WARNING (CWE-401): guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c:211:12: warning[-Wanalyzer-malloc-leak]: leak of 'set_tz(tz)' # 209| if (env_tz # 210| ? tz->tz_is_set && strcmp (tz->abbrs, env_tz) == 0 # 211|-> : !tz->tz_is_set) # 212| return local_tz; # 213| else Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c:222:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'old_tz' # 220| int saved_errno = errno; # 221| tzfree (old_tz); # 222|-> errno = saved_errno; # 223| return NULL; # 224| } Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c:276:37: warning[unix.Malloc]: Potential leak of memory pointed to by 'old_tz' # 274| { # 275| bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); # 276|-> if (revert_tz (old_tz) && abbr_saved) # 277| return tm; # 278| } Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/lib/time_rz.c:308:37: warning[unix.Malloc]: Potential leak of memory pointed to by 'old_tz' # 306| ok = ok && save_abbr (tz, &tm_1); # 307| #endif # 308|-> if (revert_tz (old_tz) && ok) # 309| { # 310| *tm = tm_1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:59: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 57| #define FUNC_NAME s_scm_sloppy_assq # 58| { # 59|-> for (; scm_is_pair (alist); alist = SCM_CDR (alist)) # 60| { # 61| SCM tmp = SCM_CAR (alist); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:61: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 59| for (; scm_is_pair (alist); alist = SCM_CDR (alist)) # 60| { # 61|-> SCM tmp = SCM_CAR (alist); # 62| if (scm_is_pair (tmp) && scm_is_eq (SCM_CAR (tmp), key)) # 63| return tmp; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:62: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 60| { # 61| SCM tmp = SCM_CAR (alist); # 62|-> if (scm_is_pair (tmp) && scm_is_eq (SCM_CAR (tmp), key)) # 63| return tmp; # 64| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:79: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 77| /* In Guile, `assv' is the same as `assq' for keys of all types except # 78| numbers. */ # 79|-> if (!SCM_NUMP (key)) # 80| return scm_sloppy_assq (key, alist); # 81| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:82: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 80| return scm_sloppy_assq (key, alist); # 81| # 82|-> for (; scm_is_pair (alist); alist = SCM_CDR (alist)) # 83| { # 84| SCM tmp = SCM_CAR (alist); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:84: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 82| for (; scm_is_pair (alist); alist = SCM_CDR (alist)) # 83| { # 84|-> SCM tmp = SCM_CAR (alist); # 85| if (scm_is_pair (tmp) # 86| && scm_is_true (scm_eqv_p (SCM_CAR (tmp), key))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:86: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 84| SCM tmp = SCM_CAR (alist); # 85| if (scm_is_pair (tmp) # 86|-> && scm_is_true (scm_eqv_p (SCM_CAR (tmp), key))) # 87| return tmp; # 88| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:101: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 99| { # 100| /* Immediate values can be checked using `eq?'. */ # 101|-> if (SCM_IMP (key)) # 102| return scm_sloppy_assq (key, alist); # 103| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:104: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 102| return scm_sloppy_assq (key, alist); # 103| # 104|-> for (; scm_is_pair (alist); alist = SCM_CDR (alist)) # 105| { # 106| SCM tmp = SCM_CAR (alist); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:106: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 104| for (; scm_is_pair (alist); alist = SCM_CDR (alist)) # 105| { # 106|-> SCM tmp = SCM_CAR (alist); # 107| if (scm_is_pair (tmp) # 108| && scm_is_true (scm_equal_p (SCM_CAR (tmp), key))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:108: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 106| SCM tmp = SCM_CAR (alist); # 107| if (scm_is_pair (tmp) # 108|-> && scm_is_true (scm_equal_p (SCM_CAR (tmp), key))) # 109| return tmp; # 110| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:132: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 130| { # 131| SCM ls = alist; # 132|-> for(; scm_is_pair (ls); ls = SCM_CDR (ls)) # 133| { # 134| SCM tmp = SCM_CAR (ls); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:134: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 132| for(; scm_is_pair (ls); ls = SCM_CDR (ls)) # 133| { # 134|-> SCM tmp = SCM_CAR (ls); # 135| SCM_ASSERT_TYPE (scm_is_pair (tmp), alist, SCM_ARG2, FUNC_NAME, # 136| "association list"); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:137: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 135| SCM_ASSERT_TYPE (scm_is_pair (tmp), alist, SCM_ARG2, FUNC_NAME, # 136| "association list"); # 137|-> if (scm_is_eq (SCM_CAR (tmp), key)) # 138| return tmp; # 139| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:140: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 138| return tmp; # 139| } # 140|-> SCM_ASSERT_TYPE (SCM_NULL_OR_NIL_P (ls), alist, SCM_ARG2, FUNC_NAME, # 141| "association list"); # 142| return SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:156: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 154| /* In Guile, `assv' is the same as `assq' for keys of all types except # 155| numbers. */ # 156|-> if (!SCM_NUMP (key)) # 157| return scm_assq (key, alist); # 158| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:159: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 157| return scm_assq (key, alist); # 158| # 159|-> for(; scm_is_pair (ls); ls = SCM_CDR (ls)) # 160| { # 161| SCM tmp = SCM_CAR (ls); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:161: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 159| for(; scm_is_pair (ls); ls = SCM_CDR (ls)) # 160| { # 161|-> SCM tmp = SCM_CAR (ls); # 162| SCM_ASSERT_TYPE (scm_is_pair (tmp), alist, SCM_ARG2, FUNC_NAME, # 163| "association list"); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:164: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 162| SCM_ASSERT_TYPE (scm_is_pair (tmp), alist, SCM_ARG2, FUNC_NAME, # 163| "association list"); # 164|-> if (scm_is_true (scm_eqv_p (SCM_CAR (tmp), key))) # 165| return tmp; # 166| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:167: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 165| return tmp; # 166| } # 167|-> SCM_ASSERT_TYPE (SCM_NULL_OR_NIL_P (ls), alist, SCM_ARG2, FUNC_NAME, # 168| "association list"); # 169| return SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:182: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 180| # 181| /* Immediate values can be checked using `eq?'. */ # 182|-> if (SCM_IMP (key)) # 183| return scm_assq (key, alist); # 184| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:185: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 183| return scm_assq (key, alist); # 184| # 185|-> for(; scm_is_pair (ls); ls = SCM_CDR (ls)) # 186| { # 187| SCM tmp = SCM_CAR (ls); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:187: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 185| for(; scm_is_pair (ls); ls = SCM_CDR (ls)) # 186| { # 187|-> SCM tmp = SCM_CAR (ls); # 188| SCM_ASSERT_TYPE (scm_is_pair (tmp), alist, SCM_ARG2, FUNC_NAME, # 189| "association list"); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:190: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 188| SCM_ASSERT_TYPE (scm_is_pair (tmp), alist, SCM_ARG2, FUNC_NAME, # 189| "association list"); # 190|-> if (scm_is_true (scm_equal_p (SCM_CAR (tmp), key))) # 191| return tmp; # 192| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:193: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 191| return tmp; # 192| } # 193|-> SCM_ASSERT_TYPE (SCM_NULL_OR_NIL_P (ls), alist, SCM_ARG2, FUNC_NAME, # 194| "association list"); # 195| return SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:233: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 231| if (scm_is_pair (handle)) # 232| { # 233|-> return SCM_CDR (handle); # 234| } # 235| return SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:250: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 248| if (scm_is_pair (handle)) # 249| { # 250|-> return SCM_CDR (handle); # 251| } # 252| return SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/alist.c:267: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 265| if (scm_is_pair (handle)) # 266| { # 267|-> return SCM_CDR (handle); # 268| } # 269| return SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:81: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 79| float real, imag; # 80| # 81|-> if (!SCM_BYTEVECTOR_P (bv)) # 82| abort (); # 83| c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:83: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 81| if (!SCM_BYTEVECTOR_P (bv)) # 82| abort (); # 83|-> c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); # 84| pos *= 2 * sizeof (float); # 85| if (pos + 2 * sizeof (float) - 1 >= SCM_BYTEVECTOR_LENGTH (bv)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:85: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 83| c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); # 84| pos *= 2 * sizeof (float); # 85|-> if (pos + 2 * sizeof (float) - 1 >= SCM_BYTEVECTOR_LENGTH (bv)) # 86| abort (); # 87| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:99: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 97| double real, imag; # 98| # 99|-> if (!SCM_BYTEVECTOR_P (bv)) # 100| abort (); # 101| c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:101: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 99| if (!SCM_BYTEVECTOR_P (bv)) # 100| abort (); # 101|-> c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); # 102| pos *= 2 * sizeof (double); # 103| if (pos + 2 * sizeof (double) - 1 >= SCM_BYTEVECTOR_LENGTH (bv)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:103: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 101| c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); # 102| pos *= 2 * sizeof (double); # 103|-> if (pos + 2 * sizeof (double) - 1 >= SCM_BYTEVECTOR_LENGTH (bv)) # 104| abort (); # 105| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:117: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 115| float real, imag; # 116| # 117|-> if (!SCM_BYTEVECTOR_P (bv)) # 118| abort (); # 119| c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:119: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 117| if (!SCM_BYTEVECTOR_P (bv)) # 118| abort (); # 119|-> c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); # 120| pos *= 2 * sizeof (float); # 121| if (pos + 2 * sizeof (float) - 1 >= SCM_BYTEVECTOR_LENGTH (bv)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:121: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 119| c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); # 120| pos *= 2 * sizeof (float); # 121|-> if (pos + 2 * sizeof (float) - 1 >= SCM_BYTEVECTOR_LENGTH (bv)) # 122| abort (); # 123| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:136: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 134| double real, imag; # 135| # 136|-> if (!SCM_BYTEVECTOR_P (bv)) # 137| abort (); # 138| c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:138: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 136| if (!SCM_BYTEVECTOR_P (bv)) # 137| abort (); # 138|-> c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); # 139| pos *= 2 * sizeof (double); # 140| if (pos + 2 * sizeof (double) - 1 >= SCM_BYTEVECTOR_LENGTH (bv)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:140: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 138| c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); # 139| pos *= 2 * sizeof (double); # 140|-> if (pos + 2 * sizeof (double) - 1 >= SCM_BYTEVECTOR_LENGTH (bv)) # 141| abort (); # 142| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:180: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 178| bitvector_set_x (SCM bv, size_t idx, SCM val) # 179| { # 180|-> if (scm_is_true (val)) # 181| scm_c_bitvector_set_bit_x (bv, idx); # 182| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:189: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 187| scm_array_get_handle (SCM array, scm_t_array_handle *h) # 188| { # 189|-> if (!SCM_HEAP_OBJECT_P (array)) # 190| scm_wrong_type_arg_msg (NULL, 0, array, "array"); # 191| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:194: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 192| h->array = array; # 193| # 194|-> switch (SCM_TYP7 (array)) # 195| { # 196| case scm_tc7_string: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:207: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 205| SCM_ARRAY_ELEMENT_TYPE_SCM, # 206| scm_c_vector_ref, scm_c_vector_set_x, # 207|-> SCM_I_VECTOR_WELTS (array), # 208| SCM_I_IS_MUTABLE_VECTOR (array)); # 209| break; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:208: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 206| scm_c_vector_ref, scm_c_vector_set_x, # 207| SCM_I_VECTOR_WELTS (array), # 208|-> SCM_I_IS_MUTABLE_VECTOR (array)); # 209| break; # 210| case scm_tc7_bitvector: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:225: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 223| scm_t_vector_set vset; # 224| # 225|-> element_type = SCM_BYTEVECTOR_ELEMENT_TYPE (array); # 226| length = SCM_BYTEVECTOR_TYPED_LENGTH (array); # 227| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:226: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 224| # 225| element_type = SCM_BYTEVECTOR_ELEMENT_TYPE (array); # 226|-> length = SCM_BYTEVECTOR_TYPED_LENGTH (array); # 227| # 228| switch (element_type) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:260: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 258| # 259| initialize_vector_handle (h, length, element_type, vref, vset, # 260|-> SCM_BYTEVECTOR_CONTENTS (array), # 261| SCM_MUTABLE_BYTEVECTOR_P (array)); # 262| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:261: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 259| initialize_vector_handle (h, length, element_type, vref, vset, # 260| SCM_BYTEVECTOR_CONTENTS (array), # 261|-> SCM_MUTABLE_BYTEVECTOR_P (array)); # 262| } # 263| break; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:265: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 263| break; # 264| case scm_tc7_array: # 265|-> scm_array_get_handle (SCM_I_ARRAY_V (array), h); # 266| h->array = array; # 267| h->base = SCM_I_ARRAY_BASE (array); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:267: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 265| scm_array_get_handle (SCM_I_ARRAY_V (array), h); # 266| h->array = array; # 267|-> h->base = SCM_I_ARRAY_BASE (array); # 268| h->ndims = SCM_I_ARRAY_NDIM (array); # 269| h->dims = SCM_I_ARRAY_DIMS (array); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:268: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 266| h->array = array; # 267| h->base = SCM_I_ARRAY_BASE (array); # 268|-> h->ndims = SCM_I_ARRAY_NDIM (array); # 269| h->dims = SCM_I_ARRAY_DIMS (array); # 270| break; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:269: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 267| h->base = SCM_I_ARRAY_BASE (array); # 268| h->ndims = SCM_I_ARRAY_NDIM (array); # 269|-> h->dims = SCM_I_ARRAY_DIMS (array); # 270| break; # 271| default: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:285: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 283| while (k > 0 && scm_is_pair (indices)) # 284| { # 285|-> i = scm_to_signed_integer (SCM_CAR (indices), s->lbnd, s->ubnd); # 286| pos += (i - s->lbnd) * s->inc; # 287| k--; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:289: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 287| k--; # 288| s++; # 289|-> indices = SCM_CDR (indices); # 290| } # 291| if (k > 0 || !scm_is_null (indices)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.c:291: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 289| indices = SCM_CDR (indices); # 290| } # 291|-> if (k > 0 || !scm_is_null (indices)) # 292| scm_misc_error (NULL, "wrong number of indices, expecting ~a", # 293| scm_list_1 (scm_from_size_t (scm_array_handle_rank (h)))); Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:60: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 58| { # 59| SCM a = scm_i_make_array (1); # 60|-> SCM_I_ARRAY_SET_BASE (a, 0); # 61| SCM_I_ARRAY_DIMS (a)->lbnd = 0; # 62| SCM_I_ARRAY_DIMS (a)->ubnd = scm_c_array_length (v) - 1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:61: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 59| SCM a = scm_i_make_array (1); # 60| SCM_I_ARRAY_SET_BASE (a, 0); # 61|-> SCM_I_ARRAY_DIMS (a)->lbnd = 0; # 62| SCM_I_ARRAY_DIMS (a)->ubnd = scm_c_array_length (v) - 1; # 63| SCM_I_ARRAY_DIMS (a)->inc = inc; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:62: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 60| SCM_I_ARRAY_SET_BASE (a, 0); # 61| SCM_I_ARRAY_DIMS (a)->lbnd = 0; # 62|-> SCM_I_ARRAY_DIMS (a)->ubnd = scm_c_array_length (v) - 1; # 63| SCM_I_ARRAY_DIMS (a)->inc = inc; # 64| SCM_I_ARRAY_SET_V (a, v); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:63: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 61| SCM_I_ARRAY_DIMS (a)->lbnd = 0; # 62| SCM_I_ARRAY_DIMS (a)->ubnd = scm_c_array_length (v) - 1; # 63|-> SCM_I_ARRAY_DIMS (a)->inc = inc; # 64| SCM_I_ARRAY_SET_V (a, v); # 65| return a; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:64: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 62| SCM_I_ARRAY_DIMS (a)->ubnd = scm_c_array_length (v) - 1; # 63| SCM_I_ARRAY_DIMS (a)->inc = inc; # 64|-> SCM_I_ARRAY_SET_V (a, v); # 65| return a; # 66| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:72: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 70| cindk (SCM ra, ssize_t *ve, int kend) # 71| { # 72|-> if (SCM_I_ARRAYP (ra)) # 73| { # 74| int k; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:75: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 73| { # 74| int k; # 75|-> size_t i = SCM_I_ARRAY_BASE (ra); # 76| for (k = 0; k < kend; ++k) # 77| i += (ve[k] - SCM_I_ARRAY_DIMS (ra)[k].lbnd) * SCM_I_ARRAY_DIMS (ra)[k].inc; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:77: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 75| size_t i = SCM_I_ARRAY_BASE (ra); # 76| for (k = 0; k < kend; ++k) # 77|-> i += (ve[k] - SCM_I_ARRAY_DIMS (ra)[k].lbnd) * SCM_I_ARRAY_DIMS (ra)[k].inc; # 78| return i; # 79| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:111: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 109| # 110| /* Prepare reference argument. */ # 111|-> if (SCM_I_ARRAYP (ra0)) # 112| { # 113| kmax = SCM_I_ARRAY_NDIM (ra0)-1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:113: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 111| if (SCM_I_ARRAYP (ra0)) # 112| { # 113|-> kmax = SCM_I_ARRAY_NDIM (ra0)-1; # 114| inc = kmax < 0 ? 0 : SCM_I_ARRAY_DIMS (ra0)[kmax].inc; # 115| va0 = make1array (SCM_I_ARRAY_V (ra0), inc); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:114: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 112| { # 113| kmax = SCM_I_ARRAY_NDIM (ra0)-1; # 114|-> inc = kmax < 0 ? 0 : SCM_I_ARRAY_DIMS (ra0)[kmax].inc; # 115| va0 = make1array (SCM_I_ARRAY_V (ra0), inc); # 116| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:115: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 113| kmax = SCM_I_ARRAY_NDIM (ra0)-1; # 114| inc = kmax < 0 ? 0 : SCM_I_ARRAY_DIMS (ra0)[kmax].inc; # 115|-> va0 = make1array (SCM_I_ARRAY_V (ra0), inc); # 116| # 117| /* Find unroll depth */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:120: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 118| for (kroll = MAX (0, kmax); kroll > 0; --kroll) # 119| { # 120|-> inc *= (UBND (ra0, kroll) - LBND (ra0, kroll) + 1); # 121| if (inc != SCM_I_ARRAY_DIMS (ra0)[kroll-1].inc) # 122| break; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:121: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 119| { # 120| inc *= (UBND (ra0, kroll) - LBND (ra0, kroll) + 1); # 121|-> if (inc != SCM_I_ARRAY_DIMS (ra0)[kroll-1].inc) # 122| break; # 123| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:134: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 132| lva = SCM_EOL; # 133| plva = &lva; # 134|-> for (z = lra; !scm_is_null (z); z = SCM_CDR (z)) # 135| { # 136| SCM va1, ra1 = SCM_CAR (z); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:136: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 134| for (z = lra; !scm_is_null (z); z = SCM_CDR (z)) # 135| { # 136|-> SCM va1, ra1 = SCM_CAR (z); # 137| if (SCM_I_ARRAYP (ra1)) # 138| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:137: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 135| { # 136| SCM va1, ra1 = SCM_CAR (z); # 137|-> if (SCM_I_ARRAYP (ra1)) # 138| { # 139| if (kmax != SCM_I_ARRAY_NDIM (ra1) - 1) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:139: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 137| if (SCM_I_ARRAYP (ra1)) # 138| { # 139|-> if (kmax != SCM_I_ARRAY_NDIM (ra1) - 1) # 140| scm_misc_error (what, "array shape mismatch: ~S", scm_list_1 (ra0)); # 141| inc = kmax < 0 ? 0 : SCM_I_ARRAY_DIMS (ra1)[kmax].inc; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:141: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 139| if (kmax != SCM_I_ARRAY_NDIM (ra1) - 1) # 140| scm_misc_error (what, "array shape mismatch: ~S", scm_list_1 (ra0)); # 141|-> inc = kmax < 0 ? 0 : SCM_I_ARRAY_DIMS (ra1)[kmax].inc; # 142| va1 = make1array (SCM_I_ARRAY_V (ra1), inc); # 143| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:142: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 140| scm_misc_error (what, "array shape mismatch: ~S", scm_list_1 (ra0)); # 141| inc = kmax < 0 ? 0 : SCM_I_ARRAY_DIMS (ra1)[kmax].inc; # 142|-> va1 = make1array (SCM_I_ARRAY_V (ra1), inc); # 143| # 144| /* Check unroll depth. */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:147: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 145| for (k = kmax; k > kroll; --k) # 146| { # 147|-> ssize_t l0 = LBND (ra0, k), u0 = UBND (ra0, k); # 148| if (l0 < LBND (ra1, k) || u0 > UBND (ra1, k)) # 149| scm_misc_error (what, "array shape mismatch: ~S", scm_list_1 (ra0)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:148: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 146| { # 147| ssize_t l0 = LBND (ra0, k), u0 = UBND (ra0, k); # 148|-> if (l0 < LBND (ra1, k) || u0 > UBND (ra1, k)) # 149| scm_misc_error (what, "array shape mismatch: ~S", scm_list_1 (ra0)); # 150| inc *= (u0 - l0 + 1); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:151: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 149| scm_misc_error (what, "array shape mismatch: ~S", scm_list_1 (ra0)); # 150| inc *= (u0 - l0 + 1); # 151|-> if (inc != SCM_I_ARRAY_DIMS (ra1)[k-1].inc) # 152| { # 153| kroll = k; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:160: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 158| /* Check matching of not-unrolled axes. */ # 159| for (; k>=0; --k) # 160|-> if (LBND (ra0, k) < LBND (ra1, k) || UBND (ra0, k) > UBND (ra1, k)) # 161| scm_misc_error (what, "array shape mismatch: ~S", scm_list_1 (ra0)); # 162| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:169: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 167| va1 = make1array (ra1, 1); # 168| # 169|-> if (LBND (ra0, 0) < 0 /* LBND (va1, 0) */ || UBND (ra0, 0) > UBND (va1, 0)) # 170| scm_misc_error (what, "array shape mismatch: ~S", scm_list_1 (ra0)); # 171| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:173: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 171| } # 172| *plva = scm_cons (va1, SCM_EOL); # 173|-> plva = SCM_CDRLOC (*plva); # 174| } # 175| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:178: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 176| /* Check emptiness of not-unrolled axes. */ # 177| for (k = 0; k < kroll; ++k) # 178|-> if (0 == (UBND (ra0, k) - LBND (ra0, k) + 1)) # 179| return 1; # 180| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:183: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 181| /* Set unrolled size. */ # 182| for (len = 1; k <= kmax; ++k) # 183|-> len *= (UBND (ra0, k) - LBND (ra0, k) + 1); # 184| UBND (va0, 0) = len - 1; # 185| for (z = lva; !scm_is_null (z); z = SCM_CDR (z)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:184: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 182| for (len = 1; k <= kmax; ++k) # 183| len *= (UBND (ra0, k) - LBND (ra0, k) + 1); # 184|-> UBND (va0, 0) = len - 1; # 185| for (z = lva; !scm_is_null (z); z = SCM_CDR (z)) # 186| UBND (SCM_CAR (z), 0) = len - 1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:185: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 183| len *= (UBND (ra0, k) - LBND (ra0, k) + 1); # 184| UBND (va0, 0) = len - 1; # 185|-> for (z = lva; !scm_is_null (z); z = SCM_CDR (z)) # 186| UBND (SCM_CAR (z), 0) = len - 1; # 187| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:186: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 184| UBND (va0, 0) = len - 1; # 185| for (z = lva; !scm_is_null (z); z = SCM_CDR (z)) # 186|-> UBND (SCM_CAR (z), 0) = len - 1; # 187| # 188| /* Set starting indices and go. */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:191: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 189| vi = scm_gc_malloc_pointerless (sizeof(ssize_t) * kroll, vi_gc_hint); # 190| for (k = 0; k < kroll; ++k) # 191|-> vi[k] = LBND (ra0, k); # 192| do # 193| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:197: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 195| { # 196| SCM y = lra; # 197|-> SCM_I_ARRAY_SET_BASE (va0, cindk (ra0, vi, kroll)); # 198| for (z = lva; !scm_is_null (z); z = SCM_CDR (z), y = SCM_CDR (y)) # 199| SCM_I_ARRAY_SET_BASE (SCM_CAR (z), cindk (SCM_CAR (y), vi, kroll)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:198: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 196| SCM y = lra; # 197| SCM_I_ARRAY_SET_BASE (va0, cindk (ra0, vi, kroll)); # 198|-> for (z = lva; !scm_is_null (z); z = SCM_CDR (z), y = SCM_CDR (y)) # 199| SCM_I_ARRAY_SET_BASE (SCM_CAR (z), cindk (SCM_CAR (y), vi, kroll)); # 200| if (! (SCM_UNBNDP (data) ? cproc (va0, lva) : cproc (va0, data, lva))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:199: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 197| SCM_I_ARRAY_SET_BASE (va0, cindk (ra0, vi, kroll)); # 198| for (z = lva; !scm_is_null (z); z = SCM_CDR (z), y = SCM_CDR (y)) # 199|-> SCM_I_ARRAY_SET_BASE (SCM_CAR (z), cindk (SCM_CAR (y), vi, kroll)); # 200| if (! (SCM_UNBNDP (data) ? cproc (va0, lva) : cproc (va0, data, lva))) # 201| return 0; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:200: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 198| for (z = lva; !scm_is_null (z); z = SCM_CDR (z), y = SCM_CDR (y)) # 199| SCM_I_ARRAY_SET_BASE (SCM_CAR (z), cindk (SCM_CAR (y), vi, kroll)); # 200|-> if (! (SCM_UNBNDP (data) ? cproc (va0, lva) : cproc (va0, data, lva))) # 201| return 0; # 202| --k; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:204: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 202| --k; # 203| } # 204|-> else if (vi[k] < UBND (ra0, k)) # 205| { # 206| ++vi[k]; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:211: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 209| else # 210| { # 211|-> vi[k] = LBND (ra0, k) - 1; # 212| --k; # 213| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:226: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 224| rafill (SCM dst, SCM fill) # 225| { # 226|-> size_t n = SCM_I_ARRAY_DIMS (dst)->ubnd + 1; # 227| size_t i = SCM_I_ARRAY_BASE (dst); # 228| ssize_t inc = SCM_I_ARRAY_DIMS (dst)->inc; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:227: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 225| { # 226| size_t n = SCM_I_ARRAY_DIMS (dst)->ubnd + 1; # 227|-> size_t i = SCM_I_ARRAY_BASE (dst); # 228| ssize_t inc = SCM_I_ARRAY_DIMS (dst)->inc; # 229| scm_t_array_handle h; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:228: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 226| size_t n = SCM_I_ARRAY_DIMS (dst)->ubnd + 1; # 227| size_t i = SCM_I_ARRAY_BASE (dst); # 228|-> ssize_t inc = SCM_I_ARRAY_DIMS (dst)->inc; # 229| scm_t_array_handle h; # 230| dst = SCM_I_ARRAY_V (dst); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:230: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 228| ssize_t inc = SCM_I_ARRAY_DIMS (dst)->inc; # 229| scm_t_array_handle h; # 230|-> dst = SCM_I_ARRAY_V (dst); # 231| scm_array_get_handle (dst, &h); # 232| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:258: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 256| ssize_t inc_s, inc_d; # 257| scm_t_array_handle h_s, h_d; # 258|-> dst = SCM_CAR (dst); # 259| i_s = SCM_I_ARRAY_BASE (src); # 260| i_d = SCM_I_ARRAY_BASE (dst); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:259: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 257| scm_t_array_handle h_s, h_d; # 258| dst = SCM_CAR (dst); # 259|-> i_s = SCM_I_ARRAY_BASE (src); # 260| i_d = SCM_I_ARRAY_BASE (dst); # 261| n = (SCM_I_ARRAY_DIMS (src)->ubnd + 1); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:260: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 258| dst = SCM_CAR (dst); # 259| i_s = SCM_I_ARRAY_BASE (src); # 260|-> i_d = SCM_I_ARRAY_BASE (dst); # 261| n = (SCM_I_ARRAY_DIMS (src)->ubnd + 1); # 262| inc_s = SCM_I_ARRAY_DIMS (src)->inc; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:261: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 259| i_s = SCM_I_ARRAY_BASE (src); # 260| i_d = SCM_I_ARRAY_BASE (dst); # 261|-> n = (SCM_I_ARRAY_DIMS (src)->ubnd + 1); # 262| inc_s = SCM_I_ARRAY_DIMS (src)->inc; # 263| inc_d = SCM_I_ARRAY_DIMS (dst)->inc; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:262: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 260| i_d = SCM_I_ARRAY_BASE (dst); # 261| n = (SCM_I_ARRAY_DIMS (src)->ubnd + 1); # 262|-> inc_s = SCM_I_ARRAY_DIMS (src)->inc; # 263| inc_d = SCM_I_ARRAY_DIMS (dst)->inc; # 264| src = SCM_I_ARRAY_V (src); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:263: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 261| n = (SCM_I_ARRAY_DIMS (src)->ubnd + 1); # 262| inc_s = SCM_I_ARRAY_DIMS (src)->inc; # 263|-> inc_d = SCM_I_ARRAY_DIMS (dst)->inc; # 264| src = SCM_I_ARRAY_V (src); # 265| dst = SCM_I_ARRAY_V (dst); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:264: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 262| inc_s = SCM_I_ARRAY_DIMS (src)->inc; # 263| inc_d = SCM_I_ARRAY_DIMS (dst)->inc; # 264|-> src = SCM_I_ARRAY_V (src); # 265| dst = SCM_I_ARRAY_V (dst); # 266| scm_array_get_handle (src, &h_s); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:265: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 263| inc_d = SCM_I_ARRAY_DIMS (dst)->inc; # 264| src = SCM_I_ARRAY_V (src); # 265|-> dst = SCM_I_ARRAY_V (dst); # 266| scm_array_get_handle (src, &h_s); # 267| scm_array_get_handle (dst, &h_d); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:310: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 308| ramap (SCM ra0, SCM proc, SCM ras) # 309| { # 310|-> size_t i0 = SCM_I_ARRAY_BASE (ra0); # 311| ssize_t inc0 = SCM_I_ARRAY_DIMS (ra0)->inc; # 312| size_t n = SCM_I_ARRAY_DIMS (ra0)->ubnd + 1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:311: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 309| { # 310| size_t i0 = SCM_I_ARRAY_BASE (ra0); # 311|-> ssize_t inc0 = SCM_I_ARRAY_DIMS (ra0)->inc; # 312| size_t n = SCM_I_ARRAY_DIMS (ra0)->ubnd + 1; # 313| scm_t_array_handle h0; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:312: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 310| size_t i0 = SCM_I_ARRAY_BASE (ra0); # 311| ssize_t inc0 = SCM_I_ARRAY_DIMS (ra0)->inc; # 312|-> size_t n = SCM_I_ARRAY_DIMS (ra0)->ubnd + 1; # 313| scm_t_array_handle h0; # 314| ra0 = SCM_I_ARRAY_V (ra0); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:314: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 312| size_t n = SCM_I_ARRAY_DIMS (ra0)->ubnd + 1; # 313| scm_t_array_handle h0; # 314|-> ra0 = SCM_I_ARRAY_V (ra0); # 315| scm_array_get_handle (ra0, &h0); # 316| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:317: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 315| scm_array_get_handle (ra0, &h0); # 316| # 317|-> if (scm_is_null (ras)) # 318| for (; n--; i0 += inc0) # 319| h0.vset (h0.vector, i0, scm_call_0 (proc)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:322: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 320| else # 321| { # 322|-> SCM ra1 = SCM_CAR (ras); # 323| size_t i1 = SCM_I_ARRAY_BASE (ra1); # 324| ssize_t inc1 = SCM_I_ARRAY_DIMS (ra1)->inc; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:323: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 321| { # 322| SCM ra1 = SCM_CAR (ras); # 323|-> size_t i1 = SCM_I_ARRAY_BASE (ra1); # 324| ssize_t inc1 = SCM_I_ARRAY_DIMS (ra1)->inc; # 325| scm_t_array_handle h1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:324: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 322| SCM ra1 = SCM_CAR (ras); # 323| size_t i1 = SCM_I_ARRAY_BASE (ra1); # 324|-> ssize_t inc1 = SCM_I_ARRAY_DIMS (ra1)->inc; # 325| scm_t_array_handle h1; # 326| ra1 = SCM_I_ARRAY_V (ra1); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:326: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 324| ssize_t inc1 = SCM_I_ARRAY_DIMS (ra1)->inc; # 325| scm_t_array_handle h1; # 326|-> ra1 = SCM_I_ARRAY_V (ra1); # 327| scm_array_get_handle (ra1, &h1); # 328| ras = SCM_CDR (ras); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:328: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 326| ra1 = SCM_I_ARRAY_V (ra1); # 327| scm_array_get_handle (ra1, &h1); # 328|-> ras = SCM_CDR (ras); # 329| if (scm_is_null (ras)) # 330| for (; n--; i0 += inc0, i1 += inc1) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:329: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 327| scm_array_get_handle (ra1, &h1); # 328| ras = SCM_CDR (ras); # 329|-> if (scm_is_null (ras)) # 330| for (; n--; i0 += inc0, i1 += inc1) # 331| h0.vset (h0.vector, i0, scm_call_1 (proc, h1.vref (h1.vector, i1))); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:334: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 332| else # 333| { # 334|-> SCM ra2 = SCM_CAR (ras); # 335| size_t i2 = SCM_I_ARRAY_BASE (ra2); # 336| ssize_t inc2 = SCM_I_ARRAY_DIMS (ra2)->inc; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:335: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 333| { # 334| SCM ra2 = SCM_CAR (ras); # 335|-> size_t i2 = SCM_I_ARRAY_BASE (ra2); # 336| ssize_t inc2 = SCM_I_ARRAY_DIMS (ra2)->inc; # 337| scm_t_array_handle h2; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:336: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 334| SCM ra2 = SCM_CAR (ras); # 335| size_t i2 = SCM_I_ARRAY_BASE (ra2); # 336|-> ssize_t inc2 = SCM_I_ARRAY_DIMS (ra2)->inc; # 337| scm_t_array_handle h2; # 338| ra2 = SCM_I_ARRAY_V (ra2); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:338: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 336| ssize_t inc2 = SCM_I_ARRAY_DIMS (ra2)->inc; # 337| scm_t_array_handle h2; # 338|-> ra2 = SCM_I_ARRAY_V (ra2); # 339| scm_array_get_handle (ra2, &h2); # 340| ras = SCM_CDR (ras); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:340: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 338| ra2 = SCM_I_ARRAY_V (ra2); # 339| scm_array_get_handle (ra2, &h2); # 340|-> ras = SCM_CDR (ras); # 341| if (scm_is_null (ras)) # 342| for (; n--; i0 += inc0, i1 += inc1, i2 += inc2) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:341: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 339| scm_array_get_handle (ra2, &h2); # 340| ras = SCM_CDR (ras); # 341|-> if (scm_is_null (ras)) # 342| for (; n--; i0 += inc0, i1 += inc1, i2 += inc2) # 343| h0.vset (h0.vector, i0, scm_call_2 (proc, h1.vref (h1.vector, i1), h2.vref (h2.vector, i2))); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:357: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 355| { # 356| *p = scm_cons (SCM_UNSPECIFIED, SCM_EOL); # 357|-> sa[k] = SCM_CARLOC (*p); # 358| p = SCM_CDRLOC (*p); # 359| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:358: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 356| *p = scm_cons (SCM_UNSPECIFIED, SCM_EOL); # 357| sa[k] = SCM_CARLOC (*p); # 358|-> p = SCM_CDRLOC (*p); # 359| } # 360| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:400: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 398| #define FUNC_NAME s_scm_array_map_x # 399| { # 400|-> SCM_VALIDATE_PROC (2, proc); # 401| SCM_VALIDATE_REST_ARGUMENT (lra); # 402| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:412: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 410| rafe (SCM ra0, SCM proc, SCM ras) # 411| { # 412|-> size_t i0 = SCM_I_ARRAY_BASE (ra0); # 413| ssize_t inc0 = SCM_I_ARRAY_DIMS (ra0)->inc; # 414| size_t n = SCM_I_ARRAY_DIMS (ra0)->ubnd + 1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:413: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 411| { # 412| size_t i0 = SCM_I_ARRAY_BASE (ra0); # 413|-> ssize_t inc0 = SCM_I_ARRAY_DIMS (ra0)->inc; # 414| size_t n = SCM_I_ARRAY_DIMS (ra0)->ubnd + 1; # 415| scm_t_array_handle h0; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:414: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 412| size_t i0 = SCM_I_ARRAY_BASE (ra0); # 413| ssize_t inc0 = SCM_I_ARRAY_DIMS (ra0)->inc; # 414|-> size_t n = SCM_I_ARRAY_DIMS (ra0)->ubnd + 1; # 415| scm_t_array_handle h0; # 416| ra0 = SCM_I_ARRAY_V (ra0); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:416: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 414| size_t n = SCM_I_ARRAY_DIMS (ra0)->ubnd + 1; # 415| scm_t_array_handle h0; # 416|-> ra0 = SCM_I_ARRAY_V (ra0); # 417| scm_array_get_handle (ra0, &h0); # 418| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:419: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 417| scm_array_get_handle (ra0, &h0); # 418| # 419|-> if (scm_is_null (ras)) # 420| for (; n--; i0 += inc0) # 421| scm_call_1 (proc, h0.vref (h0.vector, i0)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:433: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 431| { # 432| *p = scm_cons (SCM_UNSPECIFIED, SCM_EOL); # 433|-> sa[k] = SCM_CARLOC (*p); # 434| p = SCM_CDRLOC (*p); # 435| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:434: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 432| *p = scm_cons (SCM_UNSPECIFIED, SCM_EOL); # 433| sa[k] = SCM_CARLOC (*p); # 434|-> p = SCM_CDRLOC (*p); # 435| } # 436| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:461: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 459| #define FUNC_NAME s_scm_array_for_each # 460| { # 461|-> SCM_VALIDATE_PROC (1, proc); # 462| SCM_VALIDATE_REST_ARGUMENT (lra); # 463| scm_ramapc (rafe, proc, ra0, lra, FUNC_NAME); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:487: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 485| { # 486| scm_t_array_handle h; # 487|-> int k, kmax = SCM_I_ARRAY_NDIM (ra) - 1; # 488| SCM args = SCM_EOL; # 489| SCM *p = &args; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:496: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 494| for (k = 0; k <= kmax; k++) # 495| { # 496|-> vi[k] = SCM_I_ARRAY_DIMS (ra)[k].lbnd; # 497| if (vi[k] > SCM_I_ARRAY_DIMS (ra)[k].ubnd) # 498| return; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:497: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 495| { # 496| vi[k] = SCM_I_ARRAY_DIMS (ra)[k].lbnd; # 497|-> if (vi[k] > SCM_I_ARRAY_DIMS (ra)[k].ubnd) # 498| return; # 499| *p = scm_cons (scm_from_ssize_t (vi[k]), SCM_EOL); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:500: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 498| return; # 499| *p = scm_cons (scm_from_ssize_t (vi[k]), SCM_EOL); # 500|-> si[k] = SCM_CARLOC (*p); # 501| p = SCM_CDRLOC (*p); # 502| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:501: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 499| *p = scm_cons (scm_from_ssize_t (vi[k]), SCM_EOL); # 500| si[k] = SCM_CARLOC (*p); # 501|-> p = SCM_CDRLOC (*p); # 502| } # 503| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:511: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 509| { # 510| size_t i; # 511|-> vi[kmax] = SCM_I_ARRAY_DIMS (ra)[kmax].lbnd; # 512| i = cindk (ra, vi, kmax+1); # 513| for (; vi[kmax] <= SCM_I_ARRAY_DIMS (ra)[kmax].ubnd; ++vi[kmax]) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:513: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 511| vi[kmax] = SCM_I_ARRAY_DIMS (ra)[kmax].lbnd; # 512| i = cindk (ra, vi, kmax+1); # 513|-> for (; vi[kmax] <= SCM_I_ARRAY_DIMS (ra)[kmax].ubnd; ++vi[kmax]) # 514| { # 515| *(si[kmax]) = scm_from_ssize_t (vi[kmax]); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:517: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 515| *(si[kmax]) = scm_from_ssize_t (vi[kmax]); # 516| h.vset (h.vector, i, scm_apply_0 (proc, args)); # 517|-> i += SCM_I_ARRAY_DIMS (ra)[kmax].inc; # 518| } # 519| k--; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:521: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 519| k--; # 520| } # 521|-> else if (vi[k] < SCM_I_ARRAY_DIMS (ra)[k].ubnd) # 522| { # 523| *(si[k]) = scm_from_ssize_t (++vi[k]); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:528: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 526| else # 527| { # 528|-> vi[k] = SCM_I_ARRAY_DIMS (ra)[k].lbnd - 1; # 529| k--; # 530| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:557: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 555| #define FUNC_NAME s_scm_array_index_map_x # 556| { # 557|-> SCM_VALIDATE_PROC (2, proc); # 558| # 559| switch (scm_c_array_rank (ra)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:582: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 580| { # 581| if (dim == scm_array_handle_rank (hx)) # 582|-> return scm_is_true (scm_equal_p (scm_array_handle_ref (hx, posx), # 583| scm_array_handle_ref (hy, posy))); # 584| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:631: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 629| res = scm_from_bool (hx.ndims == hy.ndims && t1 == t2); # 630| # 631|-> if (scm_is_true (res)) # 632| res = scm_from_bool (array_compare (&hx, &hy, 0, 0, 0)); # 633| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:649: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 647| #define FUNC_NAME s_scm_i_array_equal_p # 648| { # 649|-> if (SCM_UNBNDP (ra0) || SCM_UNBNDP (ra1)) # 650| return SCM_BOOL_T; # 651| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:652: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 650| return SCM_BOOL_T; # 651| # 652|-> while (!scm_is_null (rest)) # 653| { # 654| if (scm_is_false (scm_array_equal_p (ra0, ra1))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:654: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 652| while (!scm_is_null (rest)) # 653| { # 654|-> if (scm_is_false (scm_array_equal_p (ra0, ra1))) # 655| return SCM_BOOL_F; # 656| ra0 = ra1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:669: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 667| scm_i_array_rebase (SCM a, size_t base) # 668| { # 669|-> size_t ndim = SCM_I_ARRAY_NDIM (a); # 670| SCM b = scm_i_raw_array (ndim); # 671| SCM_I_ARRAY_SET_V (b, SCM_I_ARRAY_V (a)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:671: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 669| size_t ndim = SCM_I_ARRAY_NDIM (a); # 670| SCM b = scm_i_raw_array (ndim); # 671|-> SCM_I_ARRAY_SET_V (b, SCM_I_ARRAY_V (a)); # 672| /* FIXME do check base */ # 673| SCM_I_ARRAY_SET_BASE (b, base); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:673: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 671| SCM_I_ARRAY_SET_V (b, SCM_I_ARRAY_V (a)); # 672| /* FIXME do check base */ # 673|-> SCM_I_ARRAY_SET_BASE (b, base); # 674| memcpy (SCM_I_ARRAY_DIMS (b), SCM_I_ARRAY_DIMS (a), sizeof (scm_t_array_dim)*ndim); # 675| return b; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:674: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 672| /* FIXME do check base */ # 673| SCM_I_ARRAY_SET_BASE (b, base); # 674|-> memcpy (SCM_I_ARRAY_DIMS (b), SCM_I_ARRAY_DIMS (a), sizeof (scm_t_array_dim)*ndim); # 675| return b; # 676| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:814: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 812| { # 813| ai[n] = scm_i_make_array(rank[n]-frank); # 814|-> SCM_I_ARRAY_SET_V (ai[n], scm_shared_array_root(args_[n])); # 815| /* FIXME scm_array_handle_base (ah+n) should be in Guile */ # 816| SCM_I_ARRAY_SET_BASE (ai[n], ah[n].base); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:816: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 814| SCM_I_ARRAY_SET_V (ai[n], scm_shared_array_root(args_[n])); # 815| /* FIXME scm_array_handle_base (ah+n) should be in Guile */ # 816|-> SCM_I_ARRAY_SET_BASE (ai[n], ah[n].base); # 817| ais = SCM_I_ARRAY_DIMS(ai[n]); # 818| for (k=frank; k!=rank[n]; ++k) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:817: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 815| /* FIXME scm_array_handle_base (ah+n) should be in Guile */ # 816| SCM_I_ARRAY_SET_BASE (ai[n], ah[n].base); # 817|-> ais = SCM_I_ARRAY_DIMS(ai[n]); # 818| for (k=frank; k!=rank[n]; ++k) # 819| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:829: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 827| { # 828| *p = scm_cons (SCM_UNSPECIFIED, SCM_EOL); # 829|-> dargs[n] = SCM_CARLOC (*p); # 830| p = SCM_CDRLOC (*p); # 831| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:830: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 828| *p = scm_cons (SCM_UNSPECIFIED, SCM_EOL); # 829| dargs[n] = SCM_CARLOC (*p); # 830|-> p = SCM_CDRLOC (*p); # 831| } # 832| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/array-map.c:859: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 857| /* rank loop. */ # 858| for (n=0; n!=N; ++n) # 859|-> base[n] = SCM_I_ARRAY_BASE(ai[n]); # 860| for (;;) # 861| { Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:67: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 65| scm_is_array (SCM obj) # 66| { # 67|-> if (!SCM_HEAP_OBJECT_P (obj)) # 68| return 0; # 69| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:70: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 68| return 0; # 69| # 70|-> switch (SCM_TYP7 (obj)) # 71| { # 72| case scm_tc7_string: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:112: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 110| # 111| scm_array_get_handle (obj, &h); # 112|-> ret = scm_is_eq (scm_array_handle_element_type (&h), type); # 113| scm_array_handle_release (&h); # 114| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:247: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 245| if (!scm_is_pair (args)) # 246| SCM_WRONG_NUM_ARGS (); # 247|-> ind = scm_to_long (SCM_CAR (args)); # 248| args = SCM_CDR (args); # 249| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:248: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 246| SCM_WRONG_NUM_ARGS (); # 247| ind = scm_to_long (SCM_CAR (args)); # 248|-> args = SCM_CDR (args); # 249| # 250| if (ind < s[k].lbnd || ind > s[k].ubnd) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:347: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 345| #define FUNC_NAME s_scm_i_array_ref # 346| { # 347|-> if (SCM_UNBNDP (idx0)) # 348| return scm_array_ref (v, SCM_EOL); # 349| else if (SCM_UNBNDP (idx1)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:349: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 347| if (SCM_UNBNDP (idx0)) # 348| return scm_array_ref (v, SCM_EOL); # 349|-> else if (SCM_UNBNDP (idx1)) # 350| return scm_c_array_ref_1 (v, scm_to_ssize_t (idx0)); # 351| else if (scm_is_null (idxN)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:351: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 349| else if (SCM_UNBNDP (idx1)) # 350| return scm_c_array_ref_1 (v, scm_to_ssize_t (idx0)); # 351|-> else if (scm_is_null (idxN)) # 352| return scm_c_array_ref_2 (v, scm_to_ssize_t (idx0), scm_to_ssize_t (idx1)); # 353| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:365: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 363| #define FUNC_NAME s_scm_i_array_set_x # 364| { # 365|-> if (SCM_UNBNDP (idx0)) # 366| scm_array_set_x (v, obj, SCM_EOL); # 367| else if (SCM_UNBNDP (idx1)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:367: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 365| if (SCM_UNBNDP (idx0)) # 366| scm_array_set_x (v, obj, SCM_EOL); # 367|-> else if (SCM_UNBNDP (idx1)) # 368| scm_c_array_set_1_x (v, obj, scm_to_ssize_t (idx0)); # 369| else if (scm_is_null (idxN)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:369: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 367| else if (SCM_UNBNDP (idx1)) # 368| scm_c_array_set_1_x (v, obj, scm_to_ssize_t (idx0)); # 369|-> else if (scm_is_null (idxN)) # 370| scm_c_array_set_2_x (v, obj, scm_to_ssize_t (idx0), scm_to_ssize_t (idx1)); # 371| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:426: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 424| scm_c_array_rank (SCM array) # 425| { # 426|-> if (SCM_I_ARRAYP (array)) # 427| return SCM_I_ARRAY_NDIM (array); # 428| else if (scm_is_array (array)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:427: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 425| { # 426| if (SCM_I_ARRAYP (array)) # 427|-> return SCM_I_ARRAY_NDIM (array); # 428| else if (scm_is_array (array)) # 429| return 1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:449: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 447| #define FUNC_NAME s_scm_shared_array_root # 448| { # 449|-> if (SCM_I_ARRAYP (ra)) # 450| return SCM_I_ARRAY_V (ra); # 451| else if (scm_is_array (ra)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:450: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 448| { # 449| if (SCM_I_ARRAYP (ra)) # 450|-> return SCM_I_ARRAY_V (ra); # 451| else if (scm_is_array (ra)) # 452| return ra; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:464: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 462| #define FUNC_NAME s_scm_shared_array_offset # 463| { # 464|-> if (SCM_I_ARRAYP (ra)) # 465| return scm_from_size_t (SCM_I_ARRAY_BASE (ra)); # 466| else if (scm_is_array (ra)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:465: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 463| { # 464| if (SCM_I_ARRAYP (ra)) # 465|-> return scm_from_size_t (SCM_I_ARRAY_BASE (ra)); # 466| else if (scm_is_array (ra)) # 467| return scm_from_size_t (0); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:479: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 477| #define FUNC_NAME s_scm_shared_array_increments # 478| { # 479|-> if (SCM_I_ARRAYP (ra)) # 480| { # 481| size_t k = SCM_I_ARRAY_NDIM (ra); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:481: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 479| if (SCM_I_ARRAYP (ra)) # 480| { # 481|-> size_t k = SCM_I_ARRAY_NDIM (ra); # 482| SCM res = SCM_EOL; # 483| scm_t_array_dim *dims = SCM_I_ARRAY_DIMS (ra); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:483: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 481| size_t k = SCM_I_ARRAY_NDIM (ra); # 482| SCM res = SCM_EOL; # 483|-> scm_t_array_dim *dims = SCM_I_ARRAY_DIMS (ra); # 484| while (k--) # 485| res = scm_cons (scm_from_ssize_t (dims[k].inc), res); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:500: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 498| { # 499| SCM ra = scm_i_raw_array (ndim); # 500|-> SCM_I_ARRAY_SET_V (ra, SCM_BOOL_F); # 501| SCM_I_ARRAY_SET_BASE (ra, 0); # 502| /* dimensions are unset */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:501: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 499| SCM ra = scm_i_raw_array (ndim); # 500| SCM_I_ARRAY_SET_V (ra, SCM_BOOL_F); # 501|-> SCM_I_ARRAY_SET_BASE (ra, 0); # 502| /* dimensions are unset */ # 503| return ra; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:521: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 519| # 520| ra = scm_i_make_array (ndim); # 521|-> SCM_I_ARRAY_SET_BASE (ra, 0); # 522| s = SCM_I_ARRAY_DIMS (ra); # 523| for (; !scm_is_null (args); s++, args = SCM_CDR (args)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:522: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 520| ra = scm_i_make_array (ndim); # 521| SCM_I_ARRAY_SET_BASE (ra, 0); # 522|-> s = SCM_I_ARRAY_DIMS (ra); # 523| for (; !scm_is_null (args); s++, args = SCM_CDR (args)) # 524| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:523: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 521| SCM_I_ARRAY_SET_BASE (ra, 0); # 522| s = SCM_I_ARRAY_DIMS (ra); # 523|-> for (; !scm_is_null (args); s++, args = SCM_CDR (args)) # 524| { # 525| spec = SCM_CAR (args); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:525: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 523| for (; !scm_is_null (args); s++, args = SCM_CDR (args)) # 524| { # 525|-> spec = SCM_CAR (args); # 526| if (scm_is_integer (spec)) # 527| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:536: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 534| else # 535| { # 536|-> if (!scm_is_pair (spec) || !scm_is_integer (SCM_CAR (spec))) # 537| scm_misc_error (NULL, s_bad_spec, SCM_EOL); # 538| s->lbnd = scm_to_ssize_t (SCM_CAR (spec)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:538: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 536| if (!scm_is_pair (spec) || !scm_is_integer (SCM_CAR (spec))) # 537| scm_misc_error (NULL, s_bad_spec, SCM_EOL); # 538|-> s->lbnd = scm_to_ssize_t (SCM_CAR (spec)); # 539| spec = SCM_CDR (spec); # 540| if (!scm_is_pair (spec) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:539: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 537| scm_misc_error (NULL, s_bad_spec, SCM_EOL); # 538| s->lbnd = scm_to_ssize_t (SCM_CAR (spec)); # 539|-> spec = SCM_CDR (spec); # 540| if (!scm_is_pair (spec) # 541| || !scm_is_integer (SCM_CAR (spec)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:541: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 539| spec = SCM_CDR (spec); # 540| if (!scm_is_pair (spec) # 541|-> || !scm_is_integer (SCM_CAR (spec)) # 542| || !scm_is_null (SCM_CDR (spec))) # 543| scm_misc_error (NULL, s_bad_spec, SCM_EOL); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:542: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 540| if (!scm_is_pair (spec) # 541| || !scm_is_integer (SCM_CAR (spec)) # 542|-> || !scm_is_null (SCM_CDR (spec))) # 543| scm_misc_error (NULL, s_bad_spec, SCM_EOL); # 544| s->ubnd = scm_to_ssize_t (SCM_CAR (spec)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:544: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 542| || !scm_is_null (SCM_CDR (spec))) # 543| scm_misc_error (NULL, s_bad_spec, SCM_EOL); # 544|-> s->ubnd = scm_to_ssize_t (SCM_CAR (spec)); # 545| if (s->ubnd - s->lbnd < -1) # 546| scm_misc_error (NULL, s_bad_spec, SCM_EOL); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:563: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 561| # 562| ra = scm_i_shap2ra (bounds); # 563|-> s = SCM_I_ARRAY_DIMS (ra); # 564| k = SCM_I_ARRAY_NDIM (ra); # 565| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:564: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 562| ra = scm_i_shap2ra (bounds); # 563| s = SCM_I_ARRAY_DIMS (ra); # 564|-> k = SCM_I_ARRAY_NDIM (ra); # 565| # 566| while (k--) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:573: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 571| } # 572| # 573|-> if (scm_is_eq (fill, SCM_UNSPECIFIED)) # 574| fill = SCM_UNDEFINED; # 575| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:576: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 574| fill = SCM_UNDEFINED; # 575| # 576|-> SCM_I_ARRAY_SET_V (ra, scm_make_generalized_vector (type, scm_from_size_t (rlen), fill)); # 577| # 578| if (1 == SCM_I_ARRAY_NDIM (ra) && 0 == SCM_I_ARRAY_BASE (ra)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:578: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 576| SCM_I_ARRAY_SET_V (ra, scm_make_generalized_vector (type, scm_from_size_t (rlen), fill)); # 577| # 578|-> if (1 == SCM_I_ARRAY_NDIM (ra) && 0 == SCM_I_ARRAY_BASE (ra)) # 579| if (0 == s->lbnd) # 580| return SCM_I_ARRAY_V (ra); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:580: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 578| if (1 == SCM_I_ARRAY_NDIM (ra) && 0 == SCM_I_ARRAY_BASE (ra)) # 579| if (0 == s->lbnd) # 580|-> return SCM_I_ARRAY_V (ra); # 581| # 582| return ra; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:627: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 625| # 626| SCM_VALIDATE_REST_ARGUMENT (dims); # 627|-> SCM_VALIDATE_PROC (2, mapfunc); # 628| ra = scm_i_shap2ra (dims); # 629| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:632: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 630| scm_array_get_handle (oldra, &old_handle); # 631| # 632|-> if (SCM_I_ARRAYP (oldra)) # 633| { # 634| SCM_I_ARRAY_SET_V (ra, SCM_I_ARRAY_V (oldra)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:634: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 632| if (SCM_I_ARRAYP (oldra)) # 633| { # 634|-> SCM_I_ARRAY_SET_V (ra, SCM_I_ARRAY_V (oldra)); # 635| old_base = old_min = old_max = SCM_I_ARRAY_BASE (oldra); # 636| s = scm_array_handle_dims (&old_handle); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:635: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 633| { # 634| SCM_I_ARRAY_SET_V (ra, SCM_I_ARRAY_V (oldra)); # 635|-> old_base = old_min = old_max = SCM_I_ARRAY_BASE (oldra); # 636| s = scm_array_handle_dims (&old_handle); # 637| k = scm_array_handle_rank (&old_handle); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:648: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 646| else # 647| { # 648|-> SCM_I_ARRAY_SET_V (ra, oldra); # 649| old_base = old_min = 0; # 650| old_max = scm_c_array_length (oldra) - 1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:654: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 652| # 653| inds = SCM_EOL; # 654|-> s = SCM_I_ARRAY_DIMS (ra); # 655| for (k = 0; k < SCM_I_ARRAY_NDIM (ra); k++) # 656| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:655: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 653| inds = SCM_EOL; # 654| s = SCM_I_ARRAY_DIMS (ra); # 655|-> for (k = 0; k < SCM_I_ARRAY_NDIM (ra); k++) # 656| { # 657| inds = scm_cons (scm_from_ssize_t (s[k].lbnd), inds); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:660: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 658| if (s[k].ubnd < s[k].lbnd) # 659| { # 660|-> if (1 == SCM_I_ARRAY_NDIM (ra)) # 661| ra = scm_make_generalized_vector (scm_array_type (ra), # 662| SCM_INUM0, SCM_UNDEFINED); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:664: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 662| SCM_INUM0, SCM_UNDEFINED); # 663| else # 664|-> SCM_I_ARRAY_SET_V (ra, scm_make_generalized_vector (scm_array_type (ra), # 665| SCM_INUM0, SCM_UNDEFINED)); # 666| scm_array_handle_release (&old_handle); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:674: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 672| i = scm_array_handle_pos (&old_handle, imap); # 673| new_min = new_max = i + old_base; # 674|-> SCM_I_ARRAY_SET_BASE (ra, new_min); # 675| indptr = inds; # 676| k = SCM_I_ARRAY_NDIM (ra); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:676: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 674| SCM_I_ARRAY_SET_BASE (ra, new_min); # 675| indptr = inds; # 676|-> k = SCM_I_ARRAY_NDIM (ra); # 677| while (k--) # 678| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:681: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 679| if (s[k].ubnd > s[k].lbnd) # 680| { # 681|-> SCM_SETCAR (indptr, scm_sum (SCM_CAR (indptr), scm_from_int (1))); # 682| imap = scm_apply_0 (mapfunc, scm_reverse (inds)); # 683| s[k].inc = scm_array_handle_pos (&old_handle, imap) - i; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:692: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 690| else # 691| s[k].inc = new_max - new_min + 1; /* contiguous by default */ # 692|-> indptr = SCM_CDR (indptr); # 693| } # 694| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:699: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 697| if (old_min > new_min || old_max < new_max) # 698| SCM_MISC_ERROR ("mapping out of range", SCM_EOL); # 699|-> if (1 == SCM_I_ARRAY_NDIM (ra) && 0 == SCM_I_ARRAY_BASE (ra)) # 700| { # 701| SCM v = SCM_I_ARRAY_V (ra); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:701: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 699| if (1 == SCM_I_ARRAY_NDIM (ra) && 0 == SCM_I_ARRAY_BASE (ra)) # 700| { # 701|-> SCM v = SCM_I_ARRAY_V (ra); # 702| size_t length = scm_c_array_length (v); # 703| if (1 == s->inc && 0 == s->lbnd && length == 1 + s->ubnd) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:738: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 736| scm_t_array_dim * os; # 737| *o = scm_i_make_array (k); # 738|-> SCM_I_ARRAY_SET_V (*o, handle->vector); # 739| SCM_I_ARRAY_SET_BASE (*o, pos + handle->base); # 740| os = SCM_I_ARRAY_DIMS (*o); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:739: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 737| *o = scm_i_make_array (k); # 738| SCM_I_ARRAY_SET_V (*o, handle->vector); # 739|-> SCM_I_ARRAY_SET_BASE (*o, pos + handle->base); # 740| os = SCM_I_ARRAY_DIMS (*o); # 741| for (; k>0; --k, ++s, ++os) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:740: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 738| SCM_I_ARRAY_SET_V (*o, handle->vector); # 739| SCM_I_ARRAY_SET_BASE (*o, pos + handle->base); # 740|-> os = SCM_I_ARRAY_DIMS (*o); # 741| for (; k>0; --k, ++s, ++os) # 742| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:772: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 770| if (k==ndim) # 771| o = ra; # 772|-> else if (scm_is_null (i)) # 773| { # 774| array_from_get_o(&handle, k, s, pos, &o); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:816: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 814| array_from_get_o(&handle, k, s, pos, &o); # 815| } # 816|-> else if (scm_is_null(i)) # 817| o = scm_array_handle_ref (&handle, pos); # 818| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:868: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 866| scm_array_copy_x(b, o); # 867| } # 868|-> else if (scm_is_null(i)) # 869| { # 870| scm_array_handle_set (&handle, pos, b); /* ra may be non-ARRAYP */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:915: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 913| # 914| SCM_VALIDATE_REST_ARGUMENT (args); # 915|-> SCM_ASSERT (SCM_HEAP_OBJECT_P (ra), ra, SCM_ARG1, FUNC_NAME); # 916| # 917| switch (scm_c_array_rank (ra)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:920: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 918| { # 919| case 0: # 920|-> if (!scm_is_null (args)) # 921| SCM_WRONG_NUM_ARGS (); # 922| return ra; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:927: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 925| arguments. # 926| */ # 927|-> if (scm_is_null (args) || !scm_is_null (SCM_CDR (args))) # 928| SCM_WRONG_NUM_ARGS (); # 929| SCM_VALIDATE_INT_COPY (SCM_ARG2, SCM_CAR (args), i); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:929: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 927| if (scm_is_null (args) || !scm_is_null (SCM_CDR (args))) # 928| SCM_WRONG_NUM_ARGS (); # 929|-> SCM_VALIDATE_INT_COPY (SCM_ARG2, SCM_CAR (args), i); # 930| SCM_ASSERT_RANGE (SCM_ARG2, SCM_CAR (args), i == 0); # 931| return ra; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:930: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 928| SCM_WRONG_NUM_ARGS (); # 929| SCM_VALIDATE_INT_COPY (SCM_ARG2, SCM_CAR (args), i); # 930|-> SCM_ASSERT_RANGE (SCM_ARG2, SCM_CAR (args), i == 0); # 931| return ra; # 932| default: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:934: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 932| default: # 933| vargs = scm_vector (args); # 934|-> if (SCM_SIMPLE_VECTOR_LENGTH (vargs) != SCM_I_ARRAY_NDIM (ra)) # 935| SCM_WRONG_NUM_ARGS (); # 936| ndim = 0; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:937: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 935| SCM_WRONG_NUM_ARGS (); # 936| ndim = 0; # 937|-> for (k = 0; k < SCM_I_ARRAY_NDIM (ra); k++) # 938| { # 939| i = scm_to_signed_integer (SCM_SIMPLE_VECTOR_REF (vargs, k), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:939: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 937| for (k = 0; k < SCM_I_ARRAY_NDIM (ra); k++) # 938| { # 939|-> i = scm_to_signed_integer (SCM_SIMPLE_VECTOR_REF (vargs, k), # 940| 0, SCM_I_ARRAY_NDIM(ra)); # 941| if (ndim < i) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:940: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 938| { # 939| i = scm_to_signed_integer (SCM_SIMPLE_VECTOR_REF (vargs, k), # 940|-> 0, SCM_I_ARRAY_NDIM(ra)); # 941| if (ndim < i) # 942| ndim = i; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:946: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 944| ndim++; # 945| res = scm_i_make_array (ndim); # 946|-> SCM_I_ARRAY_SET_V (res, SCM_I_ARRAY_V (ra)); # 947| SCM_I_ARRAY_SET_BASE (res, SCM_I_ARRAY_BASE (ra)); # 948| for (k = ndim; k--;) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:947: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 945| res = scm_i_make_array (ndim); # 946| SCM_I_ARRAY_SET_V (res, SCM_I_ARRAY_V (ra)); # 947|-> SCM_I_ARRAY_SET_BASE (res, SCM_I_ARRAY_BASE (ra)); # 948| for (k = ndim; k--;) # 949| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:950: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 948| for (k = ndim; k--;) # 949| { # 950|-> SCM_I_ARRAY_DIMS (res)[k].lbnd = 0; # 951| SCM_I_ARRAY_DIMS (res)[k].ubnd = -1; # 952| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:951: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 949| { # 950| SCM_I_ARRAY_DIMS (res)[k].lbnd = 0; # 951|-> SCM_I_ARRAY_DIMS (res)[k].ubnd = -1; # 952| } # 953| for (k = SCM_I_ARRAY_NDIM (ra); k--;) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:953: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 951| SCM_I_ARRAY_DIMS (res)[k].ubnd = -1; # 952| } # 953|-> for (k = SCM_I_ARRAY_NDIM (ra); k--;) # 954| { # 955| i = scm_to_int (SCM_SIMPLE_VECTOR_REF (vargs, k)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:955: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 953| for (k = SCM_I_ARRAY_NDIM (ra); k--;) # 954| { # 955|-> i = scm_to_int (SCM_SIMPLE_VECTOR_REF (vargs, k)); # 956| s = &(SCM_I_ARRAY_DIMS (ra)[k]); # 957| r = &(SCM_I_ARRAY_DIMS (res)[i]); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:956: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 954| { # 955| i = scm_to_int (SCM_SIMPLE_VECTOR_REF (vargs, k)); # 956|-> s = &(SCM_I_ARRAY_DIMS (ra)[k]); # 957| r = &(SCM_I_ARRAY_DIMS (res)[i]); # 958| if (r->ubnd < r->lbnd) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:957: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 955| i = scm_to_int (SCM_SIMPLE_VECTOR_REF (vargs, k)); # 956| s = &(SCM_I_ARRAY_DIMS (ra)[k]); # 957|-> r = &(SCM_I_ARRAY_DIMS (res)[i]); # 958| if (r->ubnd < r->lbnd) # 959| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:971: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 969| if (r->lbnd < s->lbnd) # 970| { # 971|-> SCM_I_ARRAY_SET_BASE (res, SCM_I_ARRAY_BASE (res) + (s->lbnd - r->lbnd) * r->inc); # 972| r->lbnd = s->lbnd; # 973| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1001: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 999| #define FUNC_NAME s_scm_array_contents # 1000| { # 1001|-> if (SCM_I_ARRAYP (ra)) # 1002| { # 1003| SCM v; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1004: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1002| { # 1003| SCM v; # 1004|-> size_t ndim = SCM_I_ARRAY_NDIM (ra); # 1005| scm_t_array_dim *s = SCM_I_ARRAY_DIMS (ra); # 1006| size_t k = ndim; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1005: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1003| SCM v; # 1004| size_t ndim = SCM_I_ARRAY_NDIM (ra); # 1005|-> scm_t_array_dim *s = SCM_I_ARRAY_DIMS (ra); # 1006| size_t k = ndim; # 1007| size_t len = 1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1020: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1018| } # 1019| # 1020|-> if (!SCM_UNBNDP (strict) && scm_is_true (strict)) # 1021| { # 1022| if (ndim && (1 != s[ndim - 1].inc)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1024: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1022| if (ndim && (1 != s[ndim - 1].inc)) # 1023| return SCM_BOOL_F; # 1024|-> if (scm_is_bitvector (SCM_I_ARRAY_V (ra)) # 1025| && (len != scm_c_bitvector_length (SCM_I_ARRAY_V (ra)) || # 1026| SCM_I_ARRAY_BASE (ra) % SCM_LONG_BIT || Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1025: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1023| return SCM_BOOL_F; # 1024| if (scm_is_bitvector (SCM_I_ARRAY_V (ra)) # 1025|-> && (len != scm_c_bitvector_length (SCM_I_ARRAY_V (ra)) || # 1026| SCM_I_ARRAY_BASE (ra) % SCM_LONG_BIT || # 1027| len % SCM_LONG_BIT)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1026: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1024| if (scm_is_bitvector (SCM_I_ARRAY_V (ra)) # 1025| && (len != scm_c_bitvector_length (SCM_I_ARRAY_V (ra)) || # 1026|-> SCM_I_ARRAY_BASE (ra) % SCM_LONG_BIT || # 1027| len % SCM_LONG_BIT)) # 1028| return SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1031: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1029| } # 1030| # 1031|-> v = SCM_I_ARRAY_V (ra); # 1032| if ((len == scm_c_array_length (v)) && (0 == SCM_I_ARRAY_BASE (ra))) # 1033| return v; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1032: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1030| # 1031| v = SCM_I_ARRAY_V (ra); # 1032|-> if ((len == scm_c_array_length (v)) && (0 == SCM_I_ARRAY_BASE (ra))) # 1033| return v; # 1034| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1037: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1035| { # 1036| SCM sra = scm_i_make_array (1); # 1037|-> SCM_I_ARRAY_DIMS (sra)->lbnd = 0; # 1038| SCM_I_ARRAY_DIMS (sra)->ubnd = len - 1; # 1039| SCM_I_ARRAY_SET_V (sra, v); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1038: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1036| SCM sra = scm_i_make_array (1); # 1037| SCM_I_ARRAY_DIMS (sra)->lbnd = 0; # 1038|-> SCM_I_ARRAY_DIMS (sra)->ubnd = len - 1; # 1039| SCM_I_ARRAY_SET_V (sra, v); # 1040| SCM_I_ARRAY_SET_BASE (sra, SCM_I_ARRAY_BASE (ra)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1039: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1037| SCM_I_ARRAY_DIMS (sra)->lbnd = 0; # 1038| SCM_I_ARRAY_DIMS (sra)->ubnd = len - 1; # 1039|-> SCM_I_ARRAY_SET_V (sra, v); # 1040| SCM_I_ARRAY_SET_BASE (sra, SCM_I_ARRAY_BASE (ra)); # 1041| SCM_I_ARRAY_DIMS (sra)->inc = (ndim ? SCM_I_ARRAY_DIMS (ra)[ndim - 1].inc : 1); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1040: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1038| SCM_I_ARRAY_DIMS (sra)->ubnd = len - 1; # 1039| SCM_I_ARRAY_SET_V (sra, v); # 1040|-> SCM_I_ARRAY_SET_BASE (sra, SCM_I_ARRAY_BASE (ra)); # 1041| SCM_I_ARRAY_DIMS (sra)->inc = (ndim ? SCM_I_ARRAY_DIMS (ra)[ndim - 1].inc : 1); # 1042| return sra; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1041: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1039| SCM_I_ARRAY_SET_V (sra, v); # 1040| SCM_I_ARRAY_SET_BASE (sra, SCM_I_ARRAY_BASE (ra)); # 1041|-> SCM_I_ARRAY_DIMS (sra)->inc = (ndim ? SCM_I_ARRAY_DIMS (ra)[ndim - 1].inc : 1); # 1042| return sra; # 1043| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1068: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1066| while (n > 0 && scm_is_pair (lst)) # 1067| { # 1068|-> list_to_array (SCM_CAR (lst), handle, pos, k + 1); # 1069| pos += inc; # 1070| lst = SCM_CDR (lst); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1070: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1068| list_to_array (SCM_CAR (lst), handle, pos, k + 1); # 1069| pos += inc; # 1070|-> lst = SCM_CDR (lst); # 1071| n -= 1; # 1072| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1075: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1073| if (n != 0) # 1074| errmsg = "too few elements for array dimension ~a, need ~a"; # 1075|-> if (!scm_is_null (lst)) # 1076| errmsg = "too many elements for array dimension ~a, want ~a"; # 1077| if (errmsg) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1113: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1111| { # 1112| shape = scm_cons (scm_length (row), shape); # 1113|-> if (k > 0 && !scm_is_null (row)) # 1114| row = scm_car (row); # 1115| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/arrays.c:1135: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1133| if (scm_is_pair (shape_spec)) # 1134| { # 1135|-> if (!scm_is_null (row)) # 1136| row = scm_car (row); # 1137| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:95: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 93| for (walk = asyncs; # 94| scm_is_pair (walk); # 95|-> walk = scm_atomic_ref_scm (SCM_CDRLOC (walk))) # 96| if (scm_is_eq (SCM_CAR (walk), proc)) # 97| return; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:96: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 94| scm_is_pair (walk); # 95| walk = scm_atomic_ref_scm (SCM_CDRLOC (walk))) # 96|-> if (scm_is_eq (SCM_CAR (walk), proc)) # 97| return; # 98| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:102: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 100| asyncs = scm_atomic_compare_and_swap_scm # 101| (&t->pending_asyncs, asyncs, scm_cons (proc, asyncs)); # 102|-> if (scm_is_eq (asyncs, expected)) # 103| return; # 104| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:121: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 119| pairs were given to us after an atomic update to t->pending_asyncs, # 120| no need to use atomic ops to traverse the list. */ # 121|-> while (scm_is_pair (SCM_CDR (last_pair))) # 122| { # 123| penultimate_pair = last_pair; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:124: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 122| { # 123| penultimate_pair = last_pair; # 124|-> last_pair = SCM_CDR (last_pair); # 125| } # 126| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:128: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 126| # 127| /* Sever the tail. */ # 128|-> if (scm_is_false (penultimate_pair)) # 129| { # 130| if (!scm_is_eq (asyncs, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:130: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 128| if (scm_is_false (penultimate_pair)) # 129| { # 130|-> if (!scm_is_eq (asyncs, # 131| scm_atomic_compare_and_swap_scm (&t->pending_asyncs, # 132| asyncs, SCM_EOL))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:136: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 134| } # 135| else # 136|-> scm_atomic_set_scm (SCM_CDRLOC (penultimate_pair), SCM_EOL); # 137| # 138| /* Disable it. */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:139: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 137| # 138| /* Disable it. */ # 139|-> scm_atomic_set_scm (SCM_CDRLOC (last_pair), SCM_BOOL_F); # 140| # 141| return SCM_CAR (last_pair); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:141: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 139| scm_atomic_set_scm (SCM_CDRLOC (last_pair), SCM_BOOL_F); # 140| # 141|-> return SCM_CAR (last_pair); # 142| } # 143| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:153: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 151| return; # 152| # 153|-> while (!scm_is_null (scm_atomic_ref_scm (&t->pending_asyncs))) # 154| scm_call_0 (scm_i_async_pop (t)); # 155| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:181: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 179| /* If no interrupt was registered in the meantime, then any future # 180| wakeup will signal the FD or cond var. */ # 181|-> if (scm_is_null (scm_atomic_ref_scm (&t->pending_asyncs))) # 182| return 0; # 183| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:253: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 251| struct scm_thread_wake_data *wake; # 252| # 253|-> if (SCM_UNBNDP (thread)) # 254| t = SCM_I_CURRENT_THREAD; # 255| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:258: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 256| { # 257| SCM_VALIDATE_THREAD (2, thread); # 258|-> t = SCM_I_THREAD_DATA (thread); # 259| } # 260| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/async.c:319: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 317| { # 318| SCM_VALIDATE_REST_ARGUMENT (args); # 319|-> return (SCM_NULL_OR_NIL_P (args) ? SCM_BOOL_F : SCM_CAR (args)); # 320| } # 321| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/atomic.c:44: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 42| #define FUNC_NAME s_scm_make_atomic_box # 43| { # 44|-> SCM ret = scm_cell (scm_tc7_atomic_box, SCM_UNPACK (SCM_UNDEFINED)); # 45| scm_atomic_box_set_x (ret, init); # 46| return ret; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/atomic.c:115: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 113| { # 114| scm_puts ("#<atomic-box ", port); # 115|-> scm_uintprint (SCM_UNPACK (exp), 16, port); # 116| scm_puts (" value: ", port); # 117| scm_iprin1 (scm_atomic_box_ref (exp), port, pstate); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/atomic.h:32: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 30| scm_is_atomic_box (SCM obj) # 31| { # 32|-> return SCM_HAS_TYP7 (obj, scm_tc7_atomic_box); # 33| } # 34| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/atomic.h:38: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 36| scm_atomic_box_loc (SCM obj) # 37| { # 38|-> return SCM_CELL_OBJECT_LOC (obj, 1); # 39| } # 40| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/atomics-internal.h:64: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 62| { # 63| atomic_uintptr_t *a_loc = (atomic_uintptr_t *) loc; # 64|-> atomic_store (a_loc, SCM_UNPACK (val)); # 65| } # 66| static inline SCM Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/atomics-internal.h:76: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 74| { # 75| atomic_uintptr_t *a_loc = (atomic_uintptr_t *) loc; # 76|-> return SCM_PACK (atomic_exchange (a_loc, SCM_UNPACK (val))); # 77| } # 78| static inline SCM Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/atomics-internal.h:84: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 82| SCM result = expected; # 83| atomic_compare_exchange_strong (a_loc, (uintptr_t *) &result, # 84|-> SCM_UNPACK (desired)); # 85| return result; # 86| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:115: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 113| scm_i_pthread_once (&once, init_print_exception_var); # 114| # 115|-> SCM_VALIDATE_OPOUTPORT (1, port); # 116| if (scm_is_true (frame)) # 117| SCM_VALIDATE_FRAME (2, frame); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:116: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 114| # 115| SCM_VALIDATE_OPOUTPORT (1, port); # 116|-> if (scm_is_true (frame)) # 117| SCM_VALIDATE_FRAME (2, frame); # 118| SCM_VALIDATE_SYMBOL (3, key); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:117: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 115| SCM_VALIDATE_OPOUTPORT (1, port); # 116| if (scm_is_true (frame)) # 117|-> SCM_VALIDATE_FRAME (2, frame); # 118| SCM_VALIDATE_SYMBOL (3, key); # 119| SCM_VALIDATE_LIST (4, args); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:118: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 116| if (scm_is_true (frame)) # 117| SCM_VALIDATE_FRAME (2, frame); # 118|-> SCM_VALIDATE_SYMBOL (3, key); # 119| SCM_VALIDATE_LIST (4, args); # 120| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:179: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 177| #define FUNC_NAME s_scm_display_error # 178| { # 179|-> SCM_VALIDATE_OUTPUT_PORT (2, port); # 180| # 181| scm_i_display_error (frame, port, subr, message, args, rest); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:221: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 219| init_print_frames_var_and_frame_to_stack_vector_var); # 220| # 221|-> a->port = SCM_COERCE_OUTPORT (a->port); # 222| # 223| /* Argument checking and extraction. */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:224: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 222| # 223| /* Argument checking and extraction. */ # 224|-> SCM_VALIDATE_STACK (1, a->stack); # 225| SCM_VALIDATE_OPOUTPORT (2, a->port); # 226| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:225: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 223| /* Argument checking and extraction. */ # 224| SCM_VALIDATE_STACK (1, a->stack); # 225|-> SCM_VALIDATE_OPOUTPORT (2, a->port); # 226| # 227| if (scm_is_false (a->first)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:227: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 225| SCM_VALIDATE_OPOUTPORT (2, a->port); # 226| # 227|-> if (scm_is_false (a->first)) # 228| a->first = SCM_INUM0; # 229| if (scm_is_false (a->depth)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:229: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 227| if (scm_is_false (a->first)) # 228| a->first = SCM_INUM0; # 229|-> if (scm_is_false (a->depth)) # 230| a->depth = scm_from_int (SCM_BACKTRACE_DEPTH); # 231| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:232: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 230| a->depth = scm_from_int (SCM_BACKTRACE_DEPTH); # 231| # 232|-> if (scm_is_false (scm_less_p (a->first, scm_stack_length (a->stack)))) # 233| return SCM_UNSPECIFIED; # 234| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:273: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 271| a.stack = stack; # 272| a.port = port; # 273|-> a.first = SCM_UNBNDP (first) ? SCM_BOOL_F : first; # 274| a.depth = SCM_UNBNDP (depth) ? SCM_BOOL_F : depth; # 275| a.highlight_objects = SCM_UNBNDP (highlights) ? SCM_EOL : highlights; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:274: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 272| a.port = port; # 273| a.first = SCM_UNBNDP (first) ? SCM_BOOL_F : first; # 274|-> a.depth = SCM_UNBNDP (depth) ? SCM_BOOL_F : depth; # 275| a.highlight_objects = SCM_UNBNDP (highlights) ? SCM_EOL : highlights; # 276| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:275: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 273| a.first = SCM_UNBNDP (first) ? SCM_BOOL_F : first; # 274| a.depth = SCM_UNBNDP (depth) ? SCM_BOOL_F : depth; # 275|-> a.highlight_objects = SCM_UNBNDP (highlights) ? SCM_EOL : highlights; # 276| # 277| scm_internal_catch (SCM_BOOL_T, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:279: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 277| scm_internal_catch (SCM_BOOL_T, # 278| (scm_t_catch_body) display_backtrace_body, &a, # 279|-> (scm_t_catch_handler) error_during_backtrace, SCM_UNPACK_POINTER (port)); # 280| # 281| return SCM_UNSPECIFIED; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/backtrace.c:305: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 303| SCM stack = scm_make_stack (SCM_BOOL_T, SCM_EOL); # 304| # 305|-> if (SCM_UNBNDP (highlights)) # 306| highlights = SCM_EOL; # 307| Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:71: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 69| scm_i_bitvector_bits (SCM vec) # 70| { # 71|-> if (!IS_BITVECTOR (vec)) # 72| abort (); # 73| return BITVECTOR_BITS (vec); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:73: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 71| if (!IS_BITVECTOR (vec)) # 72| abort (); # 73|-> return BITVECTOR_BITS (vec); # 74| } # 75| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:79: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 77| scm_i_is_mutable_bitvector (SCM vec) # 78| { # 79|-> return IS_MUTABLE_BITVECTOR (vec); # 80| } # 81| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:85: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 83| scm_i_print_bitvector (SCM vec, SCM port, scm_print_state *pstate) # 84| { # 85|-> size_t bit_len = BITVECTOR_LENGTH (vec); # 86| size_t word_len = (bit_len+31)/32; # 87| uint32_t *bits = BITVECTOR_BITS (vec); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:87: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 85| size_t bit_len = BITVECTOR_LENGTH (vec); # 86| size_t word_len = (bit_len+31)/32; # 87|-> uint32_t *bits = BITVECTOR_BITS (vec); # 88| size_t i, j; # 89| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:104: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 102| scm_i_bitvector_equal_p (SCM vec1, SCM vec2) # 103| { # 104|-> size_t bit_len = BITVECTOR_LENGTH (vec1); # 105| size_t word_len = (bit_len + 31) / 32; # 106| uint32_t last_mask = ((uint32_t)-1) >> (32*word_len - bit_len); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:107: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 105| size_t word_len = (bit_len + 31) / 32; # 106| uint32_t last_mask = ((uint32_t)-1) >> (32*word_len - bit_len); # 107|-> uint32_t *bits1 = BITVECTOR_BITS (vec1); # 108| uint32_t *bits2 = BITVECTOR_BITS (vec2); # 109| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:108: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 106| uint32_t last_mask = ((uint32_t)-1) >> (32*word_len - bit_len); # 107| uint32_t *bits1 = BITVECTOR_BITS (vec1); # 108|-> uint32_t *bits2 = BITVECTOR_BITS (vec2); # 109| # 110| /* compare lengths */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:111: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 109| # 110| /* compare lengths */ # 111|-> if (BITVECTOR_LENGTH (vec2) != bit_len) # 112| return SCM_BOOL_F; # 113| /* avoid underflow in word_len-1 below. */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:128: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 126| scm_is_bitvector (SCM vec) # 127| { # 128|-> return IS_BITVECTOR (vec); # 129| } # 130| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:152: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 150| res = scm_double_cell (scm_tc7_bitvector, len, (scm_t_bits)bits, 0); # 151| # 152|-> if (SCM_UNBNDP (fill) || !scm_is_true (fill)) # 153| scm_c_bitvector_clear_all_bits_x (res); # 154| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:182: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 180| scm_c_bitvector_length (SCM vec) # 181| { # 182|-> if (!IS_BITVECTOR (vec)) # 183| scm_wrong_type_arg_msg (NULL, 0, vec, "bitvector"); # 184| return BITVECTOR_LENGTH (vec); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:184: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 182| if (!IS_BITVECTOR (vec)) # 183| scm_wrong_type_arg_msg (NULL, 0, vec, "bitvector"); # 184|-> return BITVECTOR_LENGTH (vec); # 185| } # 186| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:261: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 259| #define FUNC_NAME "bitvector-bit-set?" # 260| { # 261|-> VALIDATE_BITVECTOR (1, vec); # 262| if (idx >= BITVECTOR_LENGTH (vec)) # 263| SCM_OUT_OF_RANGE (2, scm_from_size_t (idx)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:262: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 260| { # 261| VALIDATE_BITVECTOR (1, vec); # 262|-> if (idx >= BITVECTOR_LENGTH (vec)) # 263| SCM_OUT_OF_RANGE (2, scm_from_size_t (idx)); # 264| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:265: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 263| SCM_OUT_OF_RANGE (2, scm_from_size_t (idx)); # 264| # 265|-> const uint32_t *bits = BITVECTOR_BITS (vec); # 266| return (bits[idx/32] & (1L << (idx%32))) ? 1 : 0; # 267| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:301: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 299| #define FUNC_NAME "bitvector-set-bit!" # 300| { # 301|-> VALIDATE_MUTABLE_BITVECTOR (1, vec); # 302| if (idx >= BITVECTOR_LENGTH (vec)) # 303| SCM_OUT_OF_RANGE (2, scm_from_size_t (idx)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:302: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 300| { # 301| VALIDATE_MUTABLE_BITVECTOR (1, vec); # 302|-> if (idx >= BITVECTOR_LENGTH (vec)) # 303| SCM_OUT_OF_RANGE (2, scm_from_size_t (idx)); # 304| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:305: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 303| SCM_OUT_OF_RANGE (2, scm_from_size_t (idx)); # 304| # 305|-> uint32_t *bits = BITVECTOR_BITS (vec); # 306| uint32_t mask = 1L << (idx%32); # 307| bits[idx/32] |= mask; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:315: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 313| #define FUNC_NAME "bitvector-clear-bit!" # 314| { # 315|-> VALIDATE_MUTABLE_BITVECTOR (1, vec); # 316| if (idx >= BITVECTOR_LENGTH (vec)) # 317| SCM_OUT_OF_RANGE (2, scm_from_size_t (idx)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:316: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 314| { # 315| VALIDATE_MUTABLE_BITVECTOR (1, vec); # 316|-> if (idx >= BITVECTOR_LENGTH (vec)) # 317| SCM_OUT_OF_RANGE (2, scm_from_size_t (idx)); # 318| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:319: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 317| SCM_OUT_OF_RANGE (2, scm_from_size_t (idx)); # 318| # 319|-> uint32_t *bits = BITVECTOR_BITS (vec); # 320| uint32_t mask = 1L << (idx%32); # 321| bits[idx/32] &= ~mask; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:351: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 349| #define FUNC_NAME "bitvector-set-all-bits!" # 350| { # 351|-> VALIDATE_MUTABLE_BITVECTOR (1, bv); # 352| size_t len = BITVECTOR_LENGTH (bv); # 353| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:352: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 350| { # 351| VALIDATE_MUTABLE_BITVECTOR (1, bv); # 352|-> size_t len = BITVECTOR_LENGTH (bv); # 353| # 354| if (len > 0) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:356: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 354| if (len > 0) # 355| { # 356|-> uint32_t *bits = BITVECTOR_BITS (bv); # 357| size_t word_len = (len + 31) / 32; # 358| uint32_t last_mask = ((uint32_t)-1) >> (32*word_len - len); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:370: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 368| #define FUNC_NAME "bitvector-clear-all-bits!" # 369| { # 370|-> VALIDATE_MUTABLE_BITVECTOR (1, bv); # 371| size_t len = BITVECTOR_LENGTH (bv); # 372| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:371: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 369| { # 370| VALIDATE_MUTABLE_BITVECTOR (1, bv); # 371|-> size_t len = BITVECTOR_LENGTH (bv); # 372| # 373| if (len > 0) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:375: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 373| if (len > 0) # 374| { # 375|-> uint32_t *bits = BITVECTOR_BITS (bv); # 376| size_t word_len = (len + 31) / 32; # 377| uint32_t last_mask = ((uint32_t)-1) >> (32*word_len - len); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:410: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 408| SCM vec = scm_c_make_bitvector (bit_len, SCM_UNDEFINED); # 409| size_t word_len = (bit_len+31)/32; # 410|-> uint32_t *bits = BITVECTOR_BITS (vec); # 411| size_t i, j; # 412| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:418: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 416| bits[i] = 0; # 417| for (j = 0; j < 32 && j < bit_len; # 418|-> j++, mask <<= 1, list = SCM_CDR (list)) # 419| if (scm_is_true (SCM_CAR (list))) # 420| bits[i] |= mask; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:419: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 417| for (j = 0; j < 32 && j < bit_len; # 418| j++, mask <<= 1, list = SCM_CDR (list)) # 419|-> if (scm_is_true (SCM_CAR (list))) # 420| bits[i] |= mask; # 421| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:435: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 433| SCM res = SCM_EOL; # 434| # 435|-> if (IS_BITVECTOR (vec)) # 436| { # 437| const uint32_t *bits = BITVECTOR_BITS (vec); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:437: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 435| if (IS_BITVECTOR (vec)) # 436| { # 437|-> const uint32_t *bits = BITVECTOR_BITS (vec); # 438| size_t len = BITVECTOR_LENGTH (vec); # 439| size_t word_len = (len + 31) / 32; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:438: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 436| { # 437| const uint32_t *bits = BITVECTOR_BITS (vec); # 438|-> size_t len = BITVECTOR_LENGTH (vec); # 439| size_t word_len = (len + 31) / 32; # 440| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:497: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 495| #define FUNC_NAME "bitvector-count" # 496| { # 497|-> VALIDATE_BITVECTOR (1, bitvector); # 498| # 499| size_t len = BITVECTOR_LENGTH (bitvector); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:499: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 497| VALIDATE_BITVECTOR (1, bitvector); # 498| # 499|-> size_t len = BITVECTOR_LENGTH (bitvector); # 500| # 501| if (len == 0) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:504: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 502| return 0; # 503| # 504|-> const uint32_t *bits = BITVECTOR_BITS (bitvector); # 505| size_t count = 0; # 506| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:561: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 559| #define FUNC_NAME s_scm_bitvector_position # 560| { # 561|-> VALIDATE_BITVECTOR (1, v); # 562| # 563| size_t len = BITVECTOR_LENGTH (v); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:563: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 561| VALIDATE_BITVECTOR (1, v); # 562| # 563|-> size_t len = BITVECTOR_LENGTH (v); # 564| int c_bit = scm_to_bool (bit); # 565| size_t first_bit = Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:566: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 564| int c_bit = scm_to_bool (bit); # 565| size_t first_bit = # 566|-> SCM_UNBNDP (start) ? 0 : scm_to_unsigned_integer (start, 0, len); # 567| # 568| if (first_bit == len) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:571: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 569| return SCM_BOOL_F; # 570| # 571|-> const uint32_t *bits = BITVECTOR_BITS (v); # 572| size_t word_len = (len + 31) / 32; # 573| uint32_t last_mask = ((uint32_t)-1) >> (32*word_len - len); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:597: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 595| #define FUNC_NAME "bitvector-set-bits!" # 596| { # 597|-> VALIDATE_MUTABLE_BITVECTOR (1, v); # 598| VALIDATE_BITVECTOR (2, bits); # 599| size_t v_len = BITVECTOR_LENGTH (v); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:598: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 596| { # 597| VALIDATE_MUTABLE_BITVECTOR (1, v); # 598|-> VALIDATE_BITVECTOR (2, bits); # 599| size_t v_len = BITVECTOR_LENGTH (v); # 600| uint32_t *v_bits = BITVECTOR_BITS (v); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:599: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 597| VALIDATE_MUTABLE_BITVECTOR (1, v); # 598| VALIDATE_BITVECTOR (2, bits); # 599|-> size_t v_len = BITVECTOR_LENGTH (v); # 600| uint32_t *v_bits = BITVECTOR_BITS (v); # 601| size_t kv_len = BITVECTOR_LENGTH (bits); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:600: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 598| VALIDATE_BITVECTOR (2, bits); # 599| size_t v_len = BITVECTOR_LENGTH (v); # 600|-> uint32_t *v_bits = BITVECTOR_BITS (v); # 601| size_t kv_len = BITVECTOR_LENGTH (bits); # 602| const uint32_t *kv_bits = BITVECTOR_BITS (bits); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:601: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 599| size_t v_len = BITVECTOR_LENGTH (v); # 600| uint32_t *v_bits = BITVECTOR_BITS (v); # 601|-> size_t kv_len = BITVECTOR_LENGTH (bits); # 602| const uint32_t *kv_bits = BITVECTOR_BITS (bits); # 603| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:602: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 600| uint32_t *v_bits = BITVECTOR_BITS (v); # 601| size_t kv_len = BITVECTOR_LENGTH (bits); # 602|-> const uint32_t *kv_bits = BITVECTOR_BITS (bits); # 603| # 604| if (v_len < kv_len) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:625: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 623| #define FUNC_NAME "bitvector-clear-bits!" # 624| { # 625|-> VALIDATE_MUTABLE_BITVECTOR (1, v); # 626| VALIDATE_BITVECTOR (2, bits); # 627| size_t v_len = BITVECTOR_LENGTH (v); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:626: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 624| { # 625| VALIDATE_MUTABLE_BITVECTOR (1, v); # 626|-> VALIDATE_BITVECTOR (2, bits); # 627| size_t v_len = BITVECTOR_LENGTH (v); # 628| uint32_t *v_bits = BITVECTOR_BITS (v); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:627: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 625| VALIDATE_MUTABLE_BITVECTOR (1, v); # 626| VALIDATE_BITVECTOR (2, bits); # 627|-> size_t v_len = BITVECTOR_LENGTH (v); # 628| uint32_t *v_bits = BITVECTOR_BITS (v); # 629| size_t kv_len = BITVECTOR_LENGTH (bits); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:628: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 626| VALIDATE_BITVECTOR (2, bits); # 627| size_t v_len = BITVECTOR_LENGTH (v); # 628|-> uint32_t *v_bits = BITVECTOR_BITS (v); # 629| size_t kv_len = BITVECTOR_LENGTH (bits); # 630| const uint32_t *kv_bits = BITVECTOR_BITS (bits); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:629: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 627| size_t v_len = BITVECTOR_LENGTH (v); # 628| uint32_t *v_bits = BITVECTOR_BITS (v); # 629|-> size_t kv_len = BITVECTOR_LENGTH (bits); # 630| const uint32_t *kv_bits = BITVECTOR_BITS (bits); # 631| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:630: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 628| uint32_t *v_bits = BITVECTOR_BITS (v); # 629| size_t kv_len = BITVECTOR_LENGTH (bits); # 630|-> const uint32_t *kv_bits = BITVECTOR_BITS (bits); # 631| # 632| if (v_len < kv_len) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:696: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 694| #define FUNC_NAME s_scm_bitvector_copy # 695| { # 696|-> VALIDATE_BITVECTOR (1, bv); # 697| # 698| /* cf scm_vector_copy */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:700: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 698| /* cf scm_vector_copy */ # 699| # 700|-> size_t cstart = 0, cend = BITVECTOR_LENGTH (bv); # 701| if (!SCM_UNBNDP (start)) # 702| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:701: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 699| # 700| size_t cstart = 0, cend = BITVECTOR_LENGTH (bv); # 701|-> if (!SCM_UNBNDP (start)) # 702| { # 703| cstart = scm_to_size_t (start); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:706: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 704| SCM_ASSERT_RANGE (SCM_ARG2, start, cstart<=cend); # 705| # 706|-> if (!SCM_UNBNDP (end)) # 707| { # 708| size_t e = scm_to_size_t (end); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:716: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 714| size_t len = cend-cstart; # 715| SCM result = scm_c_make_bitvector (len, SCM_BOOL_F); # 716|-> const uint32_t *kv_bits = BITVECTOR_BITS (bv); # 717| uint32_t *v_bits = BITVECTOR_BITS (result); # 718| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:717: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 715| SCM result = scm_c_make_bitvector (len, SCM_BOOL_F); # 716| const uint32_t *kv_bits = BITVECTOR_BITS (bv); # 717|-> uint32_t *v_bits = BITVECTOR_BITS (result); # 718| # 719| if (len > 0) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:739: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 737| #define FUNC_NAME "bitvector-count-bits" # 738| { # 739|-> VALIDATE_BITVECTOR (1, bv); # 740| VALIDATE_BITVECTOR (2, bits); # 741| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:740: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 738| { # 739| VALIDATE_BITVECTOR (1, bv); # 740|-> VALIDATE_BITVECTOR (2, bits); # 741| # 742| size_t v_len = BITVECTOR_LENGTH (bv); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:742: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 740| VALIDATE_BITVECTOR (2, bits); # 741| # 742|-> size_t v_len = BITVECTOR_LENGTH (bv); # 743| const uint32_t *v_bits = BITVECTOR_BITS (bv); # 744| size_t kv_len = BITVECTOR_LENGTH (bits); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:743: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 741| # 742| size_t v_len = BITVECTOR_LENGTH (bv); # 743|-> const uint32_t *v_bits = BITVECTOR_BITS (bv); # 744| size_t kv_len = BITVECTOR_LENGTH (bits); # 745| const uint32_t *kv_bits = BITVECTOR_BITS (bits); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:744: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 742| size_t v_len = BITVECTOR_LENGTH (bv); # 743| const uint32_t *v_bits = BITVECTOR_BITS (bv); # 744|-> size_t kv_len = BITVECTOR_LENGTH (bits); # 745| const uint32_t *kv_bits = BITVECTOR_BITS (bits); # 746| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:745: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 743| const uint32_t *v_bits = BITVECTOR_BITS (bv); # 744| size_t kv_len = BITVECTOR_LENGTH (bits); # 745|-> const uint32_t *kv_bits = BITVECTOR_BITS (bits); # 746| # 747| if (v_len < kv_len) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:783: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 781| #define FUNC_NAME "bitvector-flip-all-bits!" # 782| { # 783|-> VALIDATE_MUTABLE_BITVECTOR (1, v); # 784| # 785| size_t len = BITVECTOR_LENGTH (v); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:785: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 783| VALIDATE_MUTABLE_BITVECTOR (1, v); # 784| # 785|-> size_t len = BITVECTOR_LENGTH (v); # 786| uint32_t *bits = BITVECTOR_BITS (v); # 787| size_t word_len = (len + 31) / 32; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.c:786: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 784| # 785| size_t len = BITVECTOR_LENGTH (v); # 786|-> uint32_t *bits = BITVECTOR_BITS (v); # 787| size_t word_len = (len + 31) / 32; # 788| uint32_t last_mask = ((uint32_t)-1) >> (32*word_len - len); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/boolean.c:62: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 60| #define FUNC_NAME s_scm_not # 61| { # 62|-> return scm_from_bool (scm_is_false (x)); # 63| } # 64| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/boolean.c:79: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 77| #define FUNC_NAME s_scm_nil_p # 78| { # 79|-> return scm_from_bool (scm_is_lisp_false (x)); # 80| } # 81| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/boolean.c:88: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 86| #define FUNC_NAME s_scm_boolean_p # 87| { # 88|-> return scm_from_bool (scm_is_bool (obj)); # 89| } # 90| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/boolean.c:95: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 93| scm_to_bool (SCM x) # 94| { # 95|-> if (scm_is_false (x)) # 96| return 0; # 97| else if (scm_is_eq (x, SCM_BOOL_T)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/boolean.c:97: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 95| if (scm_is_false (x)) # 96| return 0; # 97|-> else if (scm_is_eq (x, SCM_BOOL_T)) # 98| return 1; # 99| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/boolean.c:111: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 109| { # 110| /* This must match the macro definition of `scm_is_bool ()'. */ # 111|-> return scm_is_bool_or_nil (obj); # 112| } # 113| Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:234: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 232| scm_num_overflow ("make-bytevector"); # 233| # 234|-> if (SCM_UNLIKELY (len == 0 && element_type == SCM_ARRAY_ELEMENT_TYPE_VU8 # 235| && SCM_BYTEVECTOR_P (scm_null_bytevector))) # 236| ret = scm_null_bytevector; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:248: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 246| contents += SCM_BYTEVECTOR_HEADER_BYTES; # 247| # 248|-> SCM_SET_BYTEVECTOR_FLAGS (ret, # 249| element_type | SCM_F_BYTEVECTOR_CONTIGUOUS); # 250| SCM_BYTEVECTOR_SET_LENGTH (ret, c_len); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:250: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 248| SCM_SET_BYTEVECTOR_FLAGS (ret, # 249| element_type | SCM_F_BYTEVECTOR_CONTIGUOUS); # 250|-> SCM_BYTEVECTOR_SET_LENGTH (ret, c_len); # 251| SCM_BYTEVECTOR_SET_CONTENTS (ret, contents); # 252| SCM_BYTEVECTOR_SET_PARENT (ret, SCM_BOOL_F); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:251: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 249| element_type | SCM_F_BYTEVECTOR_CONTIGUOUS); # 250| SCM_BYTEVECTOR_SET_LENGTH (ret, c_len); # 251|-> SCM_BYTEVECTOR_SET_CONTENTS (ret, contents); # 252| SCM_BYTEVECTOR_SET_PARENT (ret, SCM_BOOL_F); # 253| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:252: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 250| SCM_BYTEVECTOR_SET_LENGTH (ret, c_len); # 251| SCM_BYTEVECTOR_SET_CONTENTS (ret, contents); # 252|-> SCM_BYTEVECTOR_SET_PARENT (ret, SCM_BOOL_F); # 253| } # 254| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:278: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 276| c_len = len * (scm_i_array_element_type_sizes[element_type] / 8); # 277| # 278|-> SCM_SET_BYTEVECTOR_FLAGS (ret, element_type); # 279| SCM_BYTEVECTOR_SET_LENGTH (ret, c_len); # 280| SCM_BYTEVECTOR_SET_CONTENTS (ret, contents); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:279: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 277| # 278| SCM_SET_BYTEVECTOR_FLAGS (ret, element_type); # 279|-> SCM_BYTEVECTOR_SET_LENGTH (ret, c_len); # 280| SCM_BYTEVECTOR_SET_CONTENTS (ret, contents); # 281| SCM_BYTEVECTOR_SET_PARENT (ret, SCM_BOOL_F); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:280: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 278| SCM_SET_BYTEVECTOR_FLAGS (ret, element_type); # 279| SCM_BYTEVECTOR_SET_LENGTH (ret, c_len); # 280|-> SCM_BYTEVECTOR_SET_CONTENTS (ret, contents); # 281| SCM_BYTEVECTOR_SET_PARENT (ret, SCM_BOOL_F); # 282| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:281: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 279| SCM_BYTEVECTOR_SET_LENGTH (ret, c_len); # 280| SCM_BYTEVECTOR_SET_CONTENTS (ret, contents); # 281|-> SCM_BYTEVECTOR_SET_PARENT (ret, SCM_BOOL_F); # 282| } # 283| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:312: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 310| # 311| ret = make_bytevector_from_buffer (len, contents, SCM_ARRAY_ELEMENT_TYPE_VU8); # 312|-> SCM_BYTEVECTOR_SET_PARENT (ret, parent); # 313| # 314| return ret; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:324: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 322| # 323| ret = make_bytevector_from_buffer (len, contents, element_type); # 324|-> SCM_BYTEVECTOR_SET_PARENT (ret, parent); # 325| # 326| return ret; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:346: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 344| scm_t_array_element_type element_type; # 345| # 346|-> SCM_VALIDATE_BYTEVECTOR (1, bv); # 347| # 348| c_offset = scm_to_size_t (offset); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:350: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 348| c_offset = scm_to_size_t (offset); # 349| # 350|-> if (SCM_UNBNDP (size)) # 351| { # 352| if (c_offset < SCM_BYTEVECTOR_LENGTH (bv)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:352: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 350| if (SCM_UNBNDP (size)) # 351| { # 352|-> if (c_offset < SCM_BYTEVECTOR_LENGTH (bv)) # 353| c_size = SCM_BYTEVECTOR_LENGTH (bv) - c_offset; # 354| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:353: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 351| { # 352| if (c_offset < SCM_BYTEVECTOR_LENGTH (bv)) # 353|-> c_size = SCM_BYTEVECTOR_LENGTH (bv) - c_offset; # 354| else # 355| c_size = 0; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:361: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 359| # 360| if (INT_ADD_OVERFLOW (c_offset, c_size) # 361|-> || (c_offset + c_size > SCM_BYTEVECTOR_LENGTH (bv))) # 362| scm_out_of_range (FUNC_NAME, offset); # 363| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:366: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 364| /* Preserve the element type of BV, unless we're not slicing on type # 365| boundaries. */ # 366|-> element_type = SCM_BYTEVECTOR_ELEMENT_TYPE (bv); # 367| if ((c_offset % SCM_BYTEVECTOR_TYPE_SIZE (bv) != 0) # 368| || (c_size % SCM_BYTEVECTOR_TYPE_SIZE (bv) != 0)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:367: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 365| boundaries. */ # 366| element_type = SCM_BYTEVECTOR_ELEMENT_TYPE (bv); # 367|-> if ((c_offset % SCM_BYTEVECTOR_TYPE_SIZE (bv) != 0) # 368| || (c_size % SCM_BYTEVECTOR_TYPE_SIZE (bv) != 0)) # 369| element_type = SCM_ARRAY_ELEMENT_TYPE_VU8; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:368: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 366| element_type = SCM_BYTEVECTOR_ELEMENT_TYPE (bv); # 367| if ((c_offset % SCM_BYTEVECTOR_TYPE_SIZE (bv) != 0) # 368|-> || (c_size % SCM_BYTEVECTOR_TYPE_SIZE (bv) != 0)) # 369| element_type = SCM_ARRAY_ELEMENT_TYPE_VU8; # 370| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:374: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 372| # 373| ret = make_bytevector_from_buffer (c_size, # 374|-> SCM_BYTEVECTOR_CONTENTS (bv) + c_offset, # 375| element_type); # 376| if (!SCM_MUTABLE_BYTEVECTOR_P (bv)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:376: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 374| SCM_BYTEVECTOR_CONTENTS (bv) + c_offset, # 375| element_type); # 376|-> if (!SCM_MUTABLE_BYTEVECTOR_P (bv)) # 377| { # 378| /* Preserve the immutability property. */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:379: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 377| { # 378| /* Preserve the immutability property. */ # 379|-> scm_t_bits flags = SCM_BYTEVECTOR_FLAGS (ret); # 380| SCM_SET_BYTEVECTOR_FLAGS (ret, flags | SCM_F_BYTEVECTOR_IMMUTABLE); # 381| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:380: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 378| /* Preserve the immutability property. */ # 379| scm_t_bits flags = SCM_BYTEVECTOR_FLAGS (ret); # 380|-> SCM_SET_BYTEVECTOR_FLAGS (ret, flags | SCM_F_BYTEVECTOR_IMMUTABLE); # 381| } # 382| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:383: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 381| } # 382| # 383|-> SCM_BYTEVECTOR_SET_PARENT (ret, bv); # 384| # 385| return ret; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:397: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 395| size_t c_len; # 396| # 397|-> if (SCM_UNLIKELY (c_new_len % SCM_BYTEVECTOR_TYPE_SIZE (bv))) # 398| /* This would be an internal Guile programming error */ # 399| abort (); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:401: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 399| abort (); # 400| # 401|-> c_len = SCM_BYTEVECTOR_LENGTH (bv); # 402| if (SCM_UNLIKELY (c_new_len > c_len)) # 403| abort (); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:405: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 403| abort (); # 404| # 405|-> SCM_BYTEVECTOR_SET_LENGTH (bv, c_new_len); # 406| # 407| if (SCM_BYTEVECTOR_CONTIGUOUS_P (bv)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:407: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 405| SCM_BYTEVECTOR_SET_LENGTH (bv, c_new_len); # 406| # 407|-> if (SCM_BYTEVECTOR_CONTIGUOUS_P (bv)) # 408| { # 409| signed char *c_bv; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:411: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 409| signed char *c_bv; # 410| # 411|-> c_bv = scm_gc_realloc (SCM2PTR (bv), # 412| c_len + SCM_BYTEVECTOR_HEADER_BYTES, # 413| c_new_len + SCM_BYTEVECTOR_HEADER_BYTES, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:416: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 414| SCM_GC_BYTEVECTOR); # 415| new_bv = PTR2SCM (c_bv); # 416|-> SCM_BYTEVECTOR_SET_CONTENTS (new_bv, c_bv + SCM_BYTEVECTOR_HEADER_BYTES); # 417| } # 418| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:422: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 420| signed char *c_bv; # 421| # 422|-> c_bv = scm_gc_realloc (SCM_BYTEVECTOR_CONTENTS (bv), # 423| c_len, c_new_len, SCM_GC_BYTEVECTOR); # 424| SCM_BYTEVECTOR_SET_CONTENTS (bv, c_bv); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:424: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 422| c_bv = scm_gc_realloc (SCM_BYTEVECTOR_CONTENTS (bv), # 423| c_len, c_new_len, SCM_GC_BYTEVECTOR); # 424|-> SCM_BYTEVECTOR_SET_CONTENTS (bv, c_bv); # 425| # 426| new_bv = bv; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:435: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 433| scm_is_bytevector (SCM obj) # 434| { # 435|-> return SCM_BYTEVECTOR_P (obj); # 436| } # 437| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:442: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 440| #define FUNC_NAME "scm_c_bytevector_length" # 441| { # 442|-> SCM_VALIDATE_BYTEVECTOR (1, bv); # 443| # 444| return SCM_BYTEVECTOR_LENGTH (bv); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:444: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 442| SCM_VALIDATE_BYTEVECTOR (1, bv); # 443| # 444|-> return SCM_BYTEVECTOR_LENGTH (bv); # 445| } # 446| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:455: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 453| const uint8_t *c_bv; # 454| # 455|-> SCM_VALIDATE_BYTEVECTOR (1, bv); # 456| # 457| c_len = SCM_BYTEVECTOR_LENGTH (bv); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:457: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 455| SCM_VALIDATE_BYTEVECTOR (1, bv); # 456| # 457|-> c_len = SCM_BYTEVECTOR_LENGTH (bv); # 458| c_bv = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 459| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:458: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 456| # 457| c_len = SCM_BYTEVECTOR_LENGTH (bv); # 458|-> c_bv = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 459| # 460| if (SCM_UNLIKELY (index >= c_len)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:474: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 472| uint8_t *c_bv; # 473| # 474|-> SCM_VALIDATE_MUTABLE_BYTEVECTOR (1, bv); # 475| # 476| c_len = SCM_BYTEVECTOR_LENGTH (bv); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:476: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 474| SCM_VALIDATE_MUTABLE_BYTEVECTOR (1, bv); # 475| # 476|-> c_len = SCM_BYTEVECTOR_LENGTH (bv); # 477| c_bv = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 478| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:477: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 475| # 476| c_len = SCM_BYTEVECTOR_LENGTH (bv); # 477|-> c_bv = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 478| # 479| if (SCM_UNLIKELY (index >= c_len)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:560: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 558| # 559| SCM_VALIDATE_SIZE_COPY (1, len, c_len); # 560|-> if (!scm_is_eq (fill, SCM_UNDEFINED)) # 561| { # 562| int value; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:571: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 569| # 570| bv = make_bytevector (c_len, SCM_ARRAY_ELEMENT_TYPE_VU8); # 571|-> if (!scm_is_eq (fill, SCM_UNDEFINED)) # 572| { # 573| size_t i; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:576: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 574| uint8_t *contents; # 575| # 576|-> contents = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 577| for (i = 0; i < c_len; i++) # 578| contents[i] = c_fill; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:581: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 579| } # 580| else # 581|-> memset (SCM_BYTEVECTOR_CONTENTS (bv), 0, c_len); # 582| # 583| return bv; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:605: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 603| size_t c_len1, c_len2; # 604| # 605|-> SCM_VALIDATE_BYTEVECTOR (1, bv1); # 606| SCM_VALIDATE_BYTEVECTOR (2, bv2); # 607| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:606: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 604| # 605| SCM_VALIDATE_BYTEVECTOR (1, bv1); # 606|-> SCM_VALIDATE_BYTEVECTOR (2, bv2); # 607| # 608| c_len1 = SCM_BYTEVECTOR_LENGTH (bv1); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:608: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 606| SCM_VALIDATE_BYTEVECTOR (2, bv2); # 607| # 608|-> c_len1 = SCM_BYTEVECTOR_LENGTH (bv1); # 609| c_len2 = SCM_BYTEVECTOR_LENGTH (bv2); # 610| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:609: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 607| # 608| c_len1 = SCM_BYTEVECTOR_LENGTH (bv1); # 609|-> c_len2 = SCM_BYTEVECTOR_LENGTH (bv2); # 610| # 611| if (c_len1 == c_len2 && (SCM_BYTEVECTOR_ELEMENT_TYPE (bv1) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:611: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 609| c_len2 = SCM_BYTEVECTOR_LENGTH (bv2); # 610| # 611|-> if (c_len1 == c_len2 && (SCM_BYTEVECTOR_ELEMENT_TYPE (bv1) # 612| == SCM_BYTEVECTOR_ELEMENT_TYPE (bv2))) # 613| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:612: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 610| # 611| if (c_len1 == c_len2 && (SCM_BYTEVECTOR_ELEMENT_TYPE (bv1) # 612|-> == SCM_BYTEVECTOR_ELEMENT_TYPE (bv2))) # 613| { # 614| signed char *c_bv1, *c_bv2; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:616: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 614| signed char *c_bv1, *c_bv2; # 615| # 616|-> c_bv1 = SCM_BYTEVECTOR_CONTENTS (bv1); # 617| c_bv2 = SCM_BYTEVECTOR_CONTENTS (bv2); # 618| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:617: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 615| # 616| c_bv1 = SCM_BYTEVECTOR_CONTENTS (bv1); # 617|-> c_bv2 = SCM_BYTEVECTOR_CONTENTS (bv2); # 618| # 619| result = scm_from_bool (!memcmp (c_bv1, c_bv2, c_len1)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:636: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 634| #define FUNC_NAME s_scm_bytevector_fill_partial_x # 635| { # 636|-> SCM_VALIDATE_MUTABLE_BYTEVECTOR (1, bv); # 637| # 638| int value = scm_to_int (fill); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:643: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 641| # 642| size_t i = 0; # 643|-> size_t c_end = SCM_BYTEVECTOR_LENGTH (bv); # 644| uint8_t *c_bv = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 645| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:644: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 642| size_t i = 0; # 643| size_t c_end = SCM_BYTEVECTOR_LENGTH (bv); # 644|-> uint8_t *c_bv = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 645| # 646| if (!SCM_UNBNDP (start)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:646: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 644| uint8_t *c_bv = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 645| # 646|-> if (!SCM_UNBNDP (start)) # 647| i = scm_to_unsigned_integer (start, 0, c_end); # 648| if (!SCM_UNBNDP (end)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:648: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 646| if (!SCM_UNBNDP (start)) # 647| i = scm_to_unsigned_integer (start, 0, c_end); # 648|-> if (!SCM_UNBNDP (end)) # 649| c_end = scm_to_unsigned_integer (end, i, c_end); # 650| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:683: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 681| signed char *c_source, *c_target; # 682| # 683|-> SCM_VALIDATE_BYTEVECTOR (1, source); # 684| SCM_VALIDATE_MUTABLE_BYTEVECTOR (3, target); # 685| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:684: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 682| # 683| SCM_VALIDATE_BYTEVECTOR (1, source); # 684|-> SCM_VALIDATE_MUTABLE_BYTEVECTOR (3, target); # 685| # 686| c_len = scm_to_size_t (len); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:690: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 688| c_target_start = scm_to_size_t (target_start); # 689| # 690|-> c_source = SCM_BYTEVECTOR_CONTENTS (source); # 691| c_target = SCM_BYTEVECTOR_CONTENTS (target); # 692| c_source_len = SCM_BYTEVECTOR_LENGTH (source); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:691: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 689| # 690| c_source = SCM_BYTEVECTOR_CONTENTS (source); # 691|-> c_target = SCM_BYTEVECTOR_CONTENTS (target); # 692| c_source_len = SCM_BYTEVECTOR_LENGTH (source); # 693| c_target_len = SCM_BYTEVECTOR_LENGTH (target); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:692: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 690| c_source = SCM_BYTEVECTOR_CONTENTS (source); # 691| c_target = SCM_BYTEVECTOR_CONTENTS (target); # 692|-> c_source_len = SCM_BYTEVECTOR_LENGTH (source); # 693| c_target_len = SCM_BYTEVECTOR_LENGTH (target); # 694| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:693: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 691| c_target = SCM_BYTEVECTOR_CONTENTS (target); # 692| c_source_len = SCM_BYTEVECTOR_LENGTH (source); # 693|-> c_target_len = SCM_BYTEVECTOR_LENGTH (target); # 694| # 695| if (SCM_UNLIKELY (c_source_len < c_source_start Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:719: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 717| signed char *c_bv, *c_copy; # 718| # 719|-> SCM_VALIDATE_BYTEVECTOR (1, bv); # 720| # 721| c_len = SCM_BYTEVECTOR_LENGTH (bv); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:721: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 719| SCM_VALIDATE_BYTEVECTOR (1, bv); # 720| # 721|-> c_len = SCM_BYTEVECTOR_LENGTH (bv); # 722| c_bv = SCM_BYTEVECTOR_CONTENTS (bv); # 723| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:722: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 720| # 721| c_len = SCM_BYTEVECTOR_LENGTH (bv); # 722|-> c_bv = SCM_BYTEVECTOR_CONTENTS (bv); # 723| # 724| copy = make_bytevector (c_len, SCM_ARRAY_ELEMENT_TYPE_VU8); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:725: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 723| # 724| copy = make_bytevector (c_len, SCM_ARRAY_ELEMENT_TYPE_VU8); # 725|-> c_copy = SCM_BYTEVECTOR_CONTENTS (copy); # 726| memcpy (c_copy, c_bv, c_len); # 727| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:744: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 742| # 743| contents = scm_array_contents (array, SCM_BOOL_T); # 744|-> if (scm_is_false (contents)) # 745| scm_wrong_type_arg_msg (FUNC_NAME, 0, array, "uniform contiguous array"); # 746| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:763: error[legacyUninitvar]: Uninitialized variable: byte_len # 761| SCM_MISC_ERROR ("uniform elements larger than 8 bits must fill whole bytes", SCM_EOL); # 762| # 763|-> ret = make_bytevector (byte_len, SCM_ARRAY_ELEMENT_TYPE_VU8); # 764| if (byte_len != 0) # 765| /* Empty arrays may have elements == NULL. We must avoid passing Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:768: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 766| NULL to memcpy, even if the length is zero, to avoid undefined # 767| behavior. */ # 768|-> memcpy (SCM_BYTEVECTOR_CONTENTS (ret), elts, byte_len); # 769| # 770| scm_array_handle_release (&h); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:784: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 782| #define FUNC_NAME s_scm_bytevector_u8_ref # 783| { # 784|-> INTEGER_NATIVE_REF (8, unsigned); # 785| } # 786| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:793: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 791| #define FUNC_NAME s_scm_bytevector_s8_ref # 792| { # 793|-> INTEGER_NATIVE_REF (8, signed); # 794| } # 795| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:802: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 800| #define FUNC_NAME s_scm_bytevector_u8_set_x # 801| { # 802|-> INTEGER_NATIVE_SET (8, unsigned); # 803| } # 804| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:811: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 809| #define FUNC_NAME s_scm_bytevector_s8_set_x # 810| { # 811|-> INTEGER_NATIVE_SET (8, signed); # 812| } # 813| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:826: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 824| uint8_t *c_bv; # 825| # 826|-> SCM_VALIDATE_BYTEVECTOR (1, bv); # 827| # 828| c_len = SCM_BYTEVECTOR_LENGTH (bv); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:828: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 826| SCM_VALIDATE_BYTEVECTOR (1, bv); # 827| # 828|-> c_len = SCM_BYTEVECTOR_LENGTH (bv); # 829| c_bv = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 830| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:829: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 827| # 828| c_len = SCM_BYTEVECTOR_LENGTH (bv); # 829|-> c_bv = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 830| # 831| lst = scm_make_list (scm_from_size_t (c_len), SCM_UNSPECIFIED); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:834: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 832| for (i = 0, pair = lst; # 833| i < c_len; # 834|-> i++, pair = SCM_CDR (pair)) # 835| { # 836| SCM_SETCAR (pair, SCM_I_MAKINUM (c_bv[i])); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:836: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 834| i++, pair = SCM_CDR (pair)) # 835| { # 836|-> SCM_SETCAR (pair, SCM_I_MAKINUM (c_bv[i])); # 837| } # 838| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:855: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 853| # 854| bv = make_bytevector (c_len, SCM_ARRAY_ELEMENT_TYPE_VU8); # 855|-> c_bv = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 856| # 857| for (i = 0; i < c_len; lst = SCM_CDR (lst), i++) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:857: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 855| c_bv = (uint8_t *) SCM_BYTEVECTOR_CONTENTS (bv); # 856| # 857|-> for (i = 0; i < c_len; lst = SCM_CDR (lst), i++) # 858| { # 859| item = SCM_CAR (lst); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:859: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 857| for (i = 0; i < c_len; lst = SCM_CDR (lst), i++) # 858| { # 859|-> item = SCM_CAR (lst); # 860| # 861| if (SCM_LIKELY (SCM_I_INUMP (item))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:861: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 859| item = SCM_CAR (lst); # 860| # 861|-> if (SCM_LIKELY (SCM_I_INUMP (item))) # 862| { # 863| scm_t_signed_bits c_item; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:865: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 863| scm_t_signed_bits c_item; # 864| # 865|-> c_item = SCM_I_INUM (item); # 866| if (SCM_LIKELY ((c_item >= 0) && (c_item < 256))) # 867| c_bv[i] = (uint8_t) c_item; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:918: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 916| if (signed_p) # 917| { # 918|-> if (scm_is_eq (endianness, sym_big)) # 919| negative_p = c_bv[0] & 0x80; # 920| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:924: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 922| } # 923| # 924|-> c_endianness = scm_is_eq (endianness, sym_big) ? 1 : -1; # 925| # 926| mpz_init (c_mpz); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:951: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 949| int c_endianness, c_sign, err = 0; # 950| # 951|-> c_endianness = scm_is_eq (endianness, sym_big) ? 1 : -1; # 952| # 953| mpz_init (c_mpz); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1071: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1069| bytevector_signed_ref (const char *c_bv, size_t c_size, SCM endianness) # 1070| { # 1071|-> GENERIC_INTEGER_REF (signed); # 1072| } # 1073| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1077: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1075| bytevector_unsigned_ref (const char *c_bv, size_t c_size, SCM endianness) # 1076| { # 1077|-> GENERIC_INTEGER_REF (unsigned); # 1078| } # 1079| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1150: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1148| #define FUNC_NAME func_name # 1149| { # 1150|-> GENERIC_INTEGER_SET (signed); # 1151| } # 1152| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1160: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1158| #define FUNC_NAME func_name # 1159| { # 1160|-> GENERIC_INTEGER_SET (unsigned); # 1161| } # 1162| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1174: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1172| #define FUNC_NAME s_scm_bytevector_uint_ref # 1173| { # 1174|-> GENERIC_INTEGER_GETTER_PROLOGUE (unsigned); # 1175| # 1176| return (bytevector_unsigned_ref (&c_bv[c_index], c_size, endianness)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1186: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1184| #define FUNC_NAME s_scm_bytevector_sint_ref # 1185| { # 1186|-> GENERIC_INTEGER_GETTER_PROLOGUE (signed); # 1187| # 1188| return (bytevector_signed_ref (&c_bv[c_index], c_size, endianness)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1198: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1196| #define FUNC_NAME s_scm_bytevector_uint_set_x # 1197| { # 1198|-> GENERIC_INTEGER_SETTER_PROLOGUE (unsigned); # 1199| # 1200| bytevector_unsigned_set (&c_bv[c_index], c_size, value, endianness, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1213: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1211| #define FUNC_NAME s_scm_bytevector_sint_set_x # 1212| { # 1213|-> GENERIC_INTEGER_SETTER_PROLOGUE (signed); # 1214| # 1215| bytevector_signed_set (&c_bv[c_index], c_size, value, endianness, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1268: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1266| #define FUNC_NAME s_scm_bytevector_to_sint_list # 1267| { # 1268|-> INTEGERS_TO_LIST (signed); # 1269| } # 1270| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1279: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1277| #define FUNC_NAME s_scm_bytevector_to_uint_list # 1278| { # 1279|-> INTEGERS_TO_LIST (unsigned); # 1280| } # 1281| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1322: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1320| #define FUNC_NAME s_scm_uint_list_to_bytevector # 1321| { # 1322|-> INTEGER_LIST_TO_BYTEVECTOR (unsigned); # 1323| } # 1324| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1334: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1332| #define FUNC_NAME s_scm_sint_list_to_bytevector # 1333| { # 1334|-> INTEGER_LIST_TO_BYTEVECTOR (signed); # 1335| } # 1336| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1351: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1349| #define FUNC_NAME s_scm_bytevector_u16_ref # 1350| { # 1351|-> INTEGER_REF (16, unsigned); # 1352| } # 1353| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1362: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1360| #define FUNC_NAME s_scm_bytevector_s16_ref # 1361| { # 1362|-> INTEGER_REF (16, signed); # 1363| } # 1364| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1373: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1371| #define FUNC_NAME s_scm_bytevector_u16_native_ref # 1372| { # 1373|-> INTEGER_NATIVE_REF (16, unsigned); # 1374| } # 1375| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1384: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1382| #define FUNC_NAME s_scm_bytevector_s16_native_ref # 1383| { # 1384|-> INTEGER_NATIVE_REF (16, signed); # 1385| } # 1386| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1395: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1393| #define FUNC_NAME s_scm_bytevector_u16_set_x # 1394| { # 1395|-> INTEGER_SET (16, unsigned); # 1396| } # 1397| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1406: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1404| #define FUNC_NAME s_scm_bytevector_s16_set_x # 1405| { # 1406|-> INTEGER_SET (16, signed); # 1407| } # 1408| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1417: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1415| #define FUNC_NAME s_scm_bytevector_u16_native_set_x # 1416| { # 1417|-> INTEGER_NATIVE_SET (16, unsigned); # 1418| } # 1419| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1428: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1426| #define FUNC_NAME s_scm_bytevector_s16_native_set_x # 1427| { # 1428|-> INTEGER_NATIVE_SET (16, signed); # 1429| } # 1430| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1485: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1483| { # 1484| #if SIZEOF_VOID_P > 4 # 1485|-> INTEGER_REF (32, unsigned); # 1486| #else # 1487| LARGE_INTEGER_REF (32, unsigned); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1500: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1498| { # 1499| #if SIZEOF_VOID_P > 4 # 1500|-> INTEGER_REF (32, signed); # 1501| #else # 1502| LARGE_INTEGER_REF (32, signed); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1515: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1513| { # 1514| #if SIZEOF_VOID_P > 4 # 1515|-> INTEGER_NATIVE_REF (32, unsigned); # 1516| #else # 1517| LARGE_INTEGER_NATIVE_REF (32, unsigned); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1530: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1528| { # 1529| #if SIZEOF_VOID_P > 4 # 1530|-> INTEGER_NATIVE_REF (32, signed); # 1531| #else # 1532| LARGE_INTEGER_NATIVE_REF (32, signed); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1545: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1543| { # 1544| #if SIZEOF_VOID_P > 4 # 1545|-> INTEGER_SET (32, unsigned); # 1546| #else # 1547| LARGE_INTEGER_SET (32, unsigned); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1560: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1558| { # 1559| #if SIZEOF_VOID_P > 4 # 1560|-> INTEGER_SET (32, signed); # 1561| #else # 1562| LARGE_INTEGER_SET (32, signed); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1575: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1573| { # 1574| #if SIZEOF_VOID_P > 4 # 1575|-> INTEGER_NATIVE_SET (32, unsigned); # 1576| #else # 1577| LARGE_INTEGER_NATIVE_SET (32, unsigned); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1590: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1588| { # 1589| #if SIZEOF_VOID_P > 4 # 1590|-> INTEGER_NATIVE_SET (32, signed); # 1591| #else # 1592| LARGE_INTEGER_NATIVE_SET (32, signed); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1610: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1608| #define FUNC_NAME s_scm_bytevector_u64_ref # 1609| { # 1610|-> LARGE_INTEGER_REF (64, unsigned); # 1611| } # 1612| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1621: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1619| #define FUNC_NAME s_scm_bytevector_s64_ref # 1620| { # 1621|-> LARGE_INTEGER_REF (64, signed); # 1622| } # 1623| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1632: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1630| #define FUNC_NAME s_scm_bytevector_u64_native_ref # 1631| { # 1632|-> LARGE_INTEGER_NATIVE_REF (64, unsigned); # 1633| } # 1634| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1643: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1641| #define FUNC_NAME s_scm_bytevector_s64_native_ref # 1642| { # 1643|-> LARGE_INTEGER_NATIVE_REF (64, signed); # 1644| } # 1645| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1654: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1652| #define FUNC_NAME s_scm_bytevector_u64_set_x # 1653| { # 1654|-> LARGE_INTEGER_SET (64, unsigned); # 1655| } # 1656| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1665: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1663| #define FUNC_NAME s_scm_bytevector_s64_set_x # 1664| { # 1665|-> LARGE_INTEGER_SET (64, signed); # 1666| } # 1667| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1676: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1674| #define FUNC_NAME s_scm_bytevector_u64_native_set_x # 1675| { # 1676|-> LARGE_INTEGER_NATIVE_SET (64, unsigned); # 1677| } # 1678| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1687: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1685| #define FUNC_NAME s_scm_bytevector_s64_native_set_x # 1686| { # 1687|-> LARGE_INTEGER_NATIVE_SET (64, signed); # 1688| } # 1689| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1850: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1848| #define FUNC_NAME s_scm_bytevector_ieee_single_ref # 1849| { # 1850|-> IEEE754_REF (float); # 1851| } # 1852| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1862: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1860| #define FUNC_NAME s_scm_bytevector_ieee_single_native_ref # 1861| { # 1862|-> IEEE754_NATIVE_REF (float); # 1863| } # 1864| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1874: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1872| #define FUNC_NAME s_scm_bytevector_ieee_single_set_x # 1873| { # 1874|-> IEEE754_SET (float); # 1875| } # 1876| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1886: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1884| #define FUNC_NAME s_scm_bytevector_ieee_single_native_set_x # 1885| { # 1886|-> IEEE754_NATIVE_SET (float); # 1887| } # 1888| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1901: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1899| #define FUNC_NAME s_scm_bytevector_ieee_double_ref # 1900| { # 1901|-> IEEE754_REF (double); # 1902| } # 1903| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1913: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1911| #define FUNC_NAME s_scm_bytevector_ieee_double_native_ref # 1912| { # 1913|-> IEEE754_NATIVE_REF (double); # 1914| } # 1915| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1925: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1923| #define FUNC_NAME s_scm_bytevector_ieee_double_set_x # 1924| { # 1925|-> IEEE754_SET (double); # 1926| } # 1927| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1937: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1935| #define FUNC_NAME s_scm_bytevector_ieee_double_native_set_x # 1936| { # 1937|-> IEEE754_NATIVE_SET (double); # 1938| } # 1939| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1995: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1993| : "??")))); # 1994| strcat (name, # 1995|-> ((scm_is_eq (endianness, sym_big)) # 1996| ? "BE" # 1997| : ((scm_is_eq (endianness, sym_little)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:1997: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1995| ((scm_is_eq (endianness, sym_big)) # 1996| ? "BE" # 1997|-> : ((scm_is_eq (endianness, sym_little)) # 1998| ? "LE" # 1999| : "unknown"))); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:2068: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 2066| c_utf = (uint8_t *) scm_to_utf8_stringn (str, &c_utf_len); # 2067| utf = make_bytevector (c_utf_len, SCM_ARRAY_ELEMENT_TYPE_VU8); # 2068|-> memcpy (SCM_BYTEVECTOR_CONTENTS (utf), c_utf, c_utf_len); # 2069| free (c_utf); # 2070| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:2082: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 2080| #define FUNC_NAME s_scm_string_to_utf16 # 2081| { # 2082|-> STRING_TO_UTF (16); # 2083| } # 2084| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:2107: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 2105| wchars = scm_to_utf32_stringn (str, &wchar_len); # 2106| bytes_len = wchar_len * sizeof (scm_t_wchar); # 2107|-> if (!scm_is_eq (SCM_UNBNDP (endianness) ? scm_endianness_big : endianness, # 2108| scm_i_native_endianness)) # 2109| swap_u32 (wchars, wchar_len); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:2112: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 2110| # 2111| bv = make_bytevector (bytes_len, SCM_ARRAY_ELEMENT_TYPE_VU8); # 2112|-> memcpy (SCM_BYTEVECTOR_CONTENTS (bv), wchars, bytes_len); # 2113| free (wchars); # 2114| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:2166: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 2164| size_t c_utf_len = 0; # 2165| # 2166|-> SCM_VALIDATE_BYTEVECTOR (1, utf); # 2167| # 2168| c_utf_len = SCM_BYTEVECTOR_LENGTH (utf); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:2168: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 2166| SCM_VALIDATE_BYTEVECTOR (1, utf); # 2167| # 2168|-> c_utf_len = SCM_BYTEVECTOR_LENGTH (utf); # 2169| c_utf = (char *) SCM_BYTEVECTOR_CONTENTS (utf); # 2170| str = scm_from_utf8_stringn (c_utf, c_utf_len); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:2169: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 2167| # 2168| c_utf_len = SCM_BYTEVECTOR_LENGTH (utf); # 2169|-> c_utf = (char *) SCM_BYTEVECTOR_CONTENTS (utf); # 2170| str = scm_from_utf8_stringn (c_utf, c_utf_len); # 2171| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:2183: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 2181| #define FUNC_NAME s_scm_utf16_to_string # 2182| { # 2183|-> UTF_TO_STRING (16); # 2184| } # 2185| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.c:2194: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 2192| #define FUNC_NAME s_scm_utf32_to_string # 2193| { # 2194|-> UTF_TO_STRING (32); # 2195| } # 2196| #undef FUNC_NAME Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/c-tokenize.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/cache-internal.h:79: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 77| scm_cache_lookup (struct scm_cache *cache, SCM k) # 78| { # 79|-> scm_t_bits k_bits = SCM_UNPACK (k); # 80| struct scm_cache_entry *entry = cache->entries; # 81| /* Unrolled binary search, compiled to branchless cmp + cmov chain. */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/cache-internal.h:98: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 96| scm_cache_evict_1 (cache, evicted); # 97| entry = scm_cache_lookup (cache, k); # 98|-> if (entry->key == SCM_UNPACK (k)) # 99| { # 100| entry->value = SCM_UNPACK (v); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/cache-internal.h:100: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 98| if (entry->key == SCM_UNPACK (k)) # 99| { # 100|-> entry->value = SCM_UNPACK (v); # 101| return; # 102| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/cache-internal.h:106: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 104| cache->entries + 1, # 105| (entry - cache->entries) * sizeof (*entry)); # 106|-> entry->key = SCM_UNPACK (k); # 107| entry->value = SCM_UNPACK (v); # 108| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/cache-internal.h:107: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 105| (entry - cache->entries) * sizeof (*entry)); # 106| entry->key = SCM_UNPACK (k); # 107|-> entry->value = SCM_UNPACK (v); # 108| } # 109| Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/chars.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:50: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 48| #define FUNC_NAME s_scm_char_p # 49| { # 50|-> return scm_from_bool (SCM_CHARP(x)); # 51| } # 52| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:61: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 59| #define FUNC_NAME s_scm_i_char_eq_p # 60| { # 61|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 62| return SCM_BOOL_T; # 63| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:63: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 61| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 62| return SCM_BOOL_T; # 63|-> while (!scm_is_null (rest)) # 64| { # 65| if (scm_is_false (scm_char_eq_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:65: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 63| while (!scm_is_null (rest)) # 64| { # 65|-> if (scm_is_false (scm_char_eq_p (x, y))) # 66| return SCM_BOOL_F; # 67| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:78: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 76| #define FUNC_NAME s_scm_i_char_eq_p # 77| { # 78|-> SCM_VALIDATE_CHAR (1, x); # 79| SCM_VALIDATE_CHAR (2, y); # 80| return scm_from_bool (scm_is_eq (x, y)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:79: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 77| { # 78| SCM_VALIDATE_CHAR (1, x); # 79|-> SCM_VALIDATE_CHAR (2, y); # 80| return scm_from_bool (scm_is_eq (x, y)); # 81| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:80: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 78| SCM_VALIDATE_CHAR (1, x); # 79| SCM_VALIDATE_CHAR (2, y); # 80|-> return scm_from_bool (scm_is_eq (x, y)); # 81| } # 82| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:92: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 90| #define FUNC_NAME s_scm_i_char_less_p # 91| { # 92|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 93| return SCM_BOOL_T; # 94| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:94: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 92| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 93| return SCM_BOOL_T; # 94|-> while (!scm_is_null (rest)) # 95| { # 96| if (scm_is_false (scm_char_less_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:96: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 94| while (!scm_is_null (rest)) # 95| { # 96|-> if (scm_is_false (scm_char_less_p (x, y))) # 97| return SCM_BOOL_F; # 98| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:109: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 107| #define FUNC_NAME s_scm_i_char_less_p # 108| { # 109|-> SCM_VALIDATE_CHAR (1, x); # 110| SCM_VALIDATE_CHAR (2, y); # 111| return scm_from_bool (SCM_CHAR(x) < SCM_CHAR(y)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:110: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 108| { # 109| SCM_VALIDATE_CHAR (1, x); # 110|-> SCM_VALIDATE_CHAR (2, y); # 111| return scm_from_bool (SCM_CHAR(x) < SCM_CHAR(y)); # 112| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:111: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 109| SCM_VALIDATE_CHAR (1, x); # 110| SCM_VALIDATE_CHAR (2, y); # 111|-> return scm_from_bool (SCM_CHAR(x) < SCM_CHAR(y)); # 112| } # 113| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:122: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 120| #define FUNC_NAME s_scm_i_char_leq_p # 121| { # 122|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 123| return SCM_BOOL_T; # 124| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:124: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 122| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 123| return SCM_BOOL_T; # 124|-> while (!scm_is_null (rest)) # 125| { # 126| if (scm_is_false (scm_char_leq_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:126: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 124| while (!scm_is_null (rest)) # 125| { # 126|-> if (scm_is_false (scm_char_leq_p (x, y))) # 127| return SCM_BOOL_F; # 128| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:139: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 137| #define FUNC_NAME s_scm_i_char_leq_p # 138| { # 139|-> SCM_VALIDATE_CHAR (1, x); # 140| SCM_VALIDATE_CHAR (2, y); # 141| return scm_from_bool (SCM_CHAR(x) <= SCM_CHAR(y)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:140: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 138| { # 139| SCM_VALIDATE_CHAR (1, x); # 140|-> SCM_VALIDATE_CHAR (2, y); # 141| return scm_from_bool (SCM_CHAR(x) <= SCM_CHAR(y)); # 142| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:141: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 139| SCM_VALIDATE_CHAR (1, x); # 140| SCM_VALIDATE_CHAR (2, y); # 141|-> return scm_from_bool (SCM_CHAR(x) <= SCM_CHAR(y)); # 142| } # 143| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:152: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 150| #define FUNC_NAME s_scm_i_char_gr_p # 151| { # 152|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 153| return SCM_BOOL_T; # 154| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:154: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 152| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 153| return SCM_BOOL_T; # 154|-> while (!scm_is_null (rest)) # 155| { # 156| if (scm_is_false (scm_char_gr_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:156: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 154| while (!scm_is_null (rest)) # 155| { # 156|-> if (scm_is_false (scm_char_gr_p (x, y))) # 157| return SCM_BOOL_F; # 158| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:169: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 167| #define FUNC_NAME s_scm_i_char_gr_p # 168| { # 169|-> SCM_VALIDATE_CHAR (1, x); # 170| SCM_VALIDATE_CHAR (2, y); # 171| return scm_from_bool (SCM_CHAR(x) > SCM_CHAR(y)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:170: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 168| { # 169| SCM_VALIDATE_CHAR (1, x); # 170|-> SCM_VALIDATE_CHAR (2, y); # 171| return scm_from_bool (SCM_CHAR(x) > SCM_CHAR(y)); # 172| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:171: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 169| SCM_VALIDATE_CHAR (1, x); # 170| SCM_VALIDATE_CHAR (2, y); # 171|-> return scm_from_bool (SCM_CHAR(x) > SCM_CHAR(y)); # 172| } # 173| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:182: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 180| #define FUNC_NAME s_scm_i_char_geq_p # 181| { # 182|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 183| return SCM_BOOL_T; # 184| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:184: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 182| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 183| return SCM_BOOL_T; # 184|-> while (!scm_is_null (rest)) # 185| { # 186| if (scm_is_false (scm_char_geq_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:186: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 184| while (!scm_is_null (rest)) # 185| { # 186|-> if (scm_is_false (scm_char_geq_p (x, y))) # 187| return SCM_BOOL_F; # 188| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:199: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 197| #define FUNC_NAME s_scm_i_char_geq_p # 198| { # 199|-> SCM_VALIDATE_CHAR (1, x); # 200| SCM_VALIDATE_CHAR (2, y); # 201| return scm_from_bool (SCM_CHAR(x) >= SCM_CHAR(y)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:200: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 198| { # 199| SCM_VALIDATE_CHAR (1, x); # 200|-> SCM_VALIDATE_CHAR (2, y); # 201| return scm_from_bool (SCM_CHAR(x) >= SCM_CHAR(y)); # 202| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:201: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 199| SCM_VALIDATE_CHAR (1, x); # 200| SCM_VALIDATE_CHAR (2, y); # 201|-> return scm_from_bool (SCM_CHAR(x) >= SCM_CHAR(y)); # 202| } # 203| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:219: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 217| #define FUNC_NAME s_scm_i_char_ci_eq_p # 218| { # 219|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 220| return SCM_BOOL_T; # 221| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:221: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 219| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 220| return SCM_BOOL_T; # 221|-> while (!scm_is_null (rest)) # 222| { # 223| if (scm_is_false (scm_char_ci_eq_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:223: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 221| while (!scm_is_null (rest)) # 222| { # 223|-> if (scm_is_false (scm_char_ci_eq_p (x, y))) # 224| return SCM_BOOL_F; # 225| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:236: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 234| #define FUNC_NAME s_scm_i_char_ci_eq_p # 235| { # 236|-> SCM_VALIDATE_CHAR (1, x); # 237| SCM_VALIDATE_CHAR (2, y); # 238| return scm_from_bool (scm_c_upcase(SCM_CHAR(x))==scm_c_upcase(SCM_CHAR(y))); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:237: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 235| { # 236| SCM_VALIDATE_CHAR (1, x); # 237|-> SCM_VALIDATE_CHAR (2, y); # 238| return scm_from_bool (scm_c_upcase(SCM_CHAR(x))==scm_c_upcase(SCM_CHAR(y))); # 239| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:238: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 236| SCM_VALIDATE_CHAR (1, x); # 237| SCM_VALIDATE_CHAR (2, y); # 238|-> return scm_from_bool (scm_c_upcase(SCM_CHAR(x))==scm_c_upcase(SCM_CHAR(y))); # 239| } # 240| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:249: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 247| #define FUNC_NAME s_scm_i_char_ci_less_p # 248| { # 249|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 250| return SCM_BOOL_T; # 251| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:251: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 249| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 250| return SCM_BOOL_T; # 251|-> while (!scm_is_null (rest)) # 252| { # 253| if (scm_is_false (scm_char_ci_less_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:253: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 251| while (!scm_is_null (rest)) # 252| { # 253|-> if (scm_is_false (scm_char_ci_less_p (x, y))) # 254| return SCM_BOOL_F; # 255| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:266: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 264| #define FUNC_NAME s_scm_i_char_ci_less_p # 265| { # 266|-> SCM_VALIDATE_CHAR (1, x); # 267| SCM_VALIDATE_CHAR (2, y); # 268| return scm_from_bool ((scm_c_upcase(SCM_CHAR(x))) < scm_c_upcase(SCM_CHAR(y))); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:267: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 265| { # 266| SCM_VALIDATE_CHAR (1, x); # 267|-> SCM_VALIDATE_CHAR (2, y); # 268| return scm_from_bool ((scm_c_upcase(SCM_CHAR(x))) < scm_c_upcase(SCM_CHAR(y))); # 269| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:268: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 266| SCM_VALIDATE_CHAR (1, x); # 267| SCM_VALIDATE_CHAR (2, y); # 268|-> return scm_from_bool ((scm_c_upcase(SCM_CHAR(x))) < scm_c_upcase(SCM_CHAR(y))); # 269| } # 270| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:280: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 278| #define FUNC_NAME s_scm_i_char_ci_leq_p # 279| { # 280|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 281| return SCM_BOOL_T; # 282| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:282: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 280| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 281| return SCM_BOOL_T; # 282|-> while (!scm_is_null (rest)) # 283| { # 284| if (scm_is_false (scm_char_ci_leq_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:284: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 282| while (!scm_is_null (rest)) # 283| { # 284|-> if (scm_is_false (scm_char_ci_leq_p (x, y))) # 285| return SCM_BOOL_F; # 286| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:297: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 295| #define FUNC_NAME s_scm_i_char_ci_leq_p # 296| { # 297|-> SCM_VALIDATE_CHAR (1, x); # 298| SCM_VALIDATE_CHAR (2, y); # 299| return scm_from_bool (scm_c_upcase(SCM_CHAR(x)) <= scm_c_upcase(SCM_CHAR(y))); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:298: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 296| { # 297| SCM_VALIDATE_CHAR (1, x); # 298|-> SCM_VALIDATE_CHAR (2, y); # 299| return scm_from_bool (scm_c_upcase(SCM_CHAR(x)) <= scm_c_upcase(SCM_CHAR(y))); # 300| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:299: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 297| SCM_VALIDATE_CHAR (1, x); # 298| SCM_VALIDATE_CHAR (2, y); # 299|-> return scm_from_bool (scm_c_upcase(SCM_CHAR(x)) <= scm_c_upcase(SCM_CHAR(y))); # 300| } # 301| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:310: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 308| #define FUNC_NAME s_scm_i_char_ci_gr_p # 309| { # 310|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 311| return SCM_BOOL_T; # 312| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:312: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 310| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 311| return SCM_BOOL_T; # 312|-> while (!scm_is_null (rest)) # 313| { # 314| if (scm_is_false (scm_char_ci_gr_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:314: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 312| while (!scm_is_null (rest)) # 313| { # 314|-> if (scm_is_false (scm_char_ci_gr_p (x, y))) # 315| return SCM_BOOL_F; # 316| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:327: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 325| #define FUNC_NAME s_scm_i_char_ci_gr_p # 326| { # 327|-> SCM_VALIDATE_CHAR (1, x); # 328| SCM_VALIDATE_CHAR (2, y); # 329| return scm_from_bool (scm_c_upcase(SCM_CHAR(x)) > scm_c_upcase(SCM_CHAR(y))); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:328: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 326| { # 327| SCM_VALIDATE_CHAR (1, x); # 328|-> SCM_VALIDATE_CHAR (2, y); # 329| return scm_from_bool (scm_c_upcase(SCM_CHAR(x)) > scm_c_upcase(SCM_CHAR(y))); # 330| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:329: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 327| SCM_VALIDATE_CHAR (1, x); # 328| SCM_VALIDATE_CHAR (2, y); # 329|-> return scm_from_bool (scm_c_upcase(SCM_CHAR(x)) > scm_c_upcase(SCM_CHAR(y))); # 330| } # 331| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:341: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 339| #define FUNC_NAME s_scm_i_char_ci_geq_p # 340| { # 341|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 342| return SCM_BOOL_T; # 343| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:343: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 341| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 342| return SCM_BOOL_T; # 343|-> while (!scm_is_null (rest)) # 344| { # 345| if (scm_is_false (scm_char_ci_geq_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:345: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 343| while (!scm_is_null (rest)) # 344| { # 345|-> if (scm_is_false (scm_char_ci_geq_p (x, y))) # 346| return SCM_BOOL_F; # 347| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:358: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 356| #define FUNC_NAME s_scm_i_char_ci_geq_p # 357| { # 358|-> SCM_VALIDATE_CHAR (1, x); # 359| SCM_VALIDATE_CHAR (2, y); # 360| return scm_from_bool (scm_c_upcase(SCM_CHAR(x)) >= scm_c_upcase(SCM_CHAR(y))); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:359: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 357| { # 358| SCM_VALIDATE_CHAR (1, x); # 359|-> SCM_VALIDATE_CHAR (2, y); # 360| return scm_from_bool (scm_c_upcase(SCM_CHAR(x)) >= scm_c_upcase(SCM_CHAR(y))); # 361| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:360: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 358| SCM_VALIDATE_CHAR (1, x); # 359| SCM_VALIDATE_CHAR (2, y); # 360|-> return scm_from_bool (scm_c_upcase(SCM_CHAR(x)) >= scm_c_upcase(SCM_CHAR(y))); # 361| } # 362| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:418: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 416| #define FUNC_NAME s_scm_char_is_both_p # 417| { # 418|-> if (scm_is_true (scm_char_set_contains_p (scm_char_set_lower_case, chr))) # 419| return SCM_BOOL_T; # 420| return scm_char_set_contains_p (scm_char_set_upper_case, chr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:430: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 428| #define FUNC_NAME s_scm_char_to_integer # 429| { # 430|-> SCM_VALIDATE_CHAR (1, chr); # 431| return scm_from_uint32 (SCM_CHAR(chr)); # 432| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:431: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 429| { # 430| SCM_VALIDATE_CHAR (1, chr); # 431|-> return scm_from_uint32 (SCM_CHAR(chr)); # 432| } # 433| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:462: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 460| #define FUNC_NAME s_scm_char_upcase # 461| { # 462|-> SCM_VALIDATE_CHAR (1, chr); # 463| return scm_c_make_char (scm_c_upcase (SCM_CHAR (chr))); # 464| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:463: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 461| { # 462| SCM_VALIDATE_CHAR (1, chr); # 463|-> return scm_c_make_char (scm_c_upcase (SCM_CHAR (chr))); # 464| } # 465| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:473: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 471| #define FUNC_NAME s_scm_char_downcase # 472| { # 473|-> SCM_VALIDATE_CHAR (1, chr); # 474| return scm_c_make_char (scm_c_downcase (SCM_CHAR(chr))); # 475| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:474: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 472| { # 473| SCM_VALIDATE_CHAR (1, chr); # 474|-> return scm_c_make_char (scm_c_downcase (SCM_CHAR(chr))); # 475| } # 476| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:483: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 481| #define FUNC_NAME s_scm_char_titlecase # 482| { # 483|-> SCM_VALIDATE_CHAR (1, chr); # 484| return scm_c_make_char (scm_c_titlecase (SCM_CHAR(chr))); # 485| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:484: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 482| { # 483| SCM_VALIDATE_CHAR (1, chr); # 484|-> return scm_c_make_char (scm_c_titlecase (SCM_CHAR(chr))); # 485| } # 486| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:497: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 495| uc_general_category_t cat; # 496| # 497|-> SCM_VALIDATE_CHAR (1, chr); # 498| cat = uc_general_category (SCM_CHAR (chr)); # 499| sym = uc_general_category_name (cat); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:498: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 496| # 497| SCM_VALIDATE_CHAR (1, chr); # 498|-> cat = uc_general_category (SCM_CHAR (chr)); # 499| sym = uc_general_category_name (cat); # 500| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/chars.c:610: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 608| { # 609| size_t c; # 610|-> uint32_t i = SCM_CHAR (chr); # 611| # 612| for (c = 0; c < SCM_N_R5RS_CHARNAMES; c++) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:107: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 105| # 106| ret = scm_words (scm_tc7_program | (nfree << 16) | flags, nfree + 2); # 107|-> SCM_SET_CELL_WORD_1 (ret, goto_continuation_code.code); # 108| SCM_PROGRAM_FREE_VARIABLE_SET (ret, 0, contregs); # 109| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:108: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 106| ret = scm_words (scm_tc7_program | (nfree << 16) | flags, nfree + 2); # 107| SCM_SET_CELL_WORD_1 (ret, goto_continuation_code.code); # 108|-> SCM_PROGRAM_FREE_VARIABLE_SET (ret, 0, contregs); # 109| # 110| return ret; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:121: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 119| continuation_print (SCM obj, SCM port, scm_print_state *state SCM_UNUSED) # 120| { # 121|-> scm_t_contregs *continuation = SCM_CONTREGS (obj); # 122| # 123| scm_puts ("#<continuation ", port); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:126: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 124| scm_intprint (continuation->num_stack_items, 10, port); # 125| scm_puts (" @ ", port); # 126|-> scm_uintprint (SCM_SMOB_DATA_1 (obj), 16, port); # 127| scm_putc ('>', port); # 128| return 1; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:221: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 219| scm_t_contregs *cont; # 220| # 221|-> contregs = SCM_PROGRAM_FREE_VARIABLE_REF (continuation, 0); # 222| cont = SCM_CONTREGS (contregs); # 223| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:222: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 220| # 221| contregs = SCM_PROGRAM_FREE_VARIABLE_REF (continuation, 0); # 222|-> cont = SCM_CONTREGS (contregs); # 223| # 224| if (scm_is_true (cont->vm_cont)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:224: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 222| cont = SCM_CONTREGS (contregs); # 223| # 224|-> if (scm_is_true (cont->vm_cont)) # 225| { # 226| struct scm_vm_cont *data = SCM_VM_CONT_DATA (cont->vm_cont); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:226: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 224| if (scm_is_true (cont->vm_cont)) # 225| { # 226|-> struct scm_vm_cont *data = SCM_VM_CONT_DATA (cont->vm_cont); # 227| # 228| frame->stack_holder = data; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:242: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 240| scm_i_contregs (SCM contregs) # 241| { # 242|-> if (!SCM_CONTREGSP (contregs)) # 243| abort (); # 244| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:245: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 243| abort (); # 244| # 245|-> return SCM_CONTREGS (contregs); # 246| } # 247| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:298: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 296| scm_thread *thread = SCM_I_CURRENT_THREAD; # 297| # 298|-> dynstack = SCM_VM_CONT_DATA (continuation->vm_cont)->dynstack; # 299| # 300| joint = scm_dynstack_unwind_fork (&thread->dynstack, dynstack); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:320: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 318| { # 319| scm_thread *thread = SCM_I_CURRENT_THREAD; # 320|-> scm_t_contregs *continuation = SCM_CONTREGS (cont); # 321| SCM_STACKITEM *dst = thread->continuation_base; # 322| SCM_STACKITEM stack_top_element; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:387: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 385| { # 386| return SCM_BACKTRACE_P # 387|-> && scm_is_true (stack) # 388| && scm_initialized_p # 389| /* It's generally not useful to print backtraces for errors reading Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:391: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 389| /* It's generally not useful to print backtraces for errors reading # 390| or expanding code in these fallback catch statements. */ # 391|-> && !scm_is_eq (tag, scm_from_latin1_symbol ("read-error")) # 392| && !scm_is_eq (tag, scm_from_latin1_symbol ("syntax-error")); # 393| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:392: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 390| or expanding code in these fallback catch statements. */ # 391| && !scm_is_eq (tag, scm_from_latin1_symbol ("read-error")) # 392|-> && !scm_is_eq (tag, scm_from_latin1_symbol ("syntax-error")); # 393| } # 394| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:404: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 402| frames. */ # 403| stack = scm_make_stack (SCM_BOOL_T, scm_list_1 (scm_from_int (2))); # 404|-> frame = scm_is_true (stack) ? scm_stack_ref (stack, SCM_INUM0) : SCM_BOOL_F; # 405| # 406| if (should_print_backtrace (tag, stack)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:440: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 438| # 439| /* If TAG is `quit', exit() the process. */ # 440|-> if (scm_is_eq (tag, scm_from_latin1_symbol ("quit"))) # 441| exit (scm_exit_status (args)); # 442| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:452: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 450| { # 451| /* Print the exception unless TAG is `quit'. */ # 452|-> if (!scm_is_eq (tag, scm_from_latin1_symbol ("quit"))) # 453| print_exception_and_backtrace (SCM_PACK_POINTER (error_port), tag, args); # 454| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:467: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 465| c_handler, &c_data, # 466| pre_unwind_handler, # 467|-> SCM_UNPACK_POINTER (scm_current_error_port ())); # 468| return c_data.result; # 469| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/continuations.c:511: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 509| scm_handler, &scm_data, # 510| pre_unwind_handler, # 511|-> SCM_UNPACK_POINTER (scm_current_error_port ())); # 512| } # 513| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/control.c:101: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 99| # 100| ret = scm_words (scm_tc7_program | (nfree << 16) | flags, nfree + 2); # 101|-> SCM_SET_CELL_WORD_1 (ret, compose_continuation_code.code); # 102| SCM_PROGRAM_FREE_VARIABLE_SET (ret, 0, vmcont); # 103| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/control.c:102: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 100| ret = scm_words (scm_tc7_program | (nfree << 16) | flags, nfree + 2); # 101| SCM_SET_CELL_WORD_1 (ret, compose_continuation_code.code); # 102|-> SCM_PROGRAM_FREE_VARIABLE_SET (ret, 0, vmcont); # 103| # 104| return ret; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/debug.c:133: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 131| scm_reverse_lookup (SCM env, SCM data) # 132| { # 133|-> while (scm_is_pair (env) && scm_is_pair (SCM_CAR (env))) # 134| { # 135| SCM names = SCM_CAAR (env); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/debug.c:135: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 133| while (scm_is_pair (env) && scm_is_pair (SCM_CAR (env))) # 134| { # 135|-> SCM names = SCM_CAAR (env); # 136| SCM values = SCM_CDAR (env); # 137| while (scm_is_pair (names)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/debug.c:136: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 134| { # 135| SCM names = SCM_CAAR (env); # 136|-> SCM values = SCM_CDAR (env); # 137| while (scm_is_pair (names)) # 138| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/debug.c:139: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 137| while (scm_is_pair (names)) # 138| { # 139|-> if (scm_is_eq (SCM_CAR (values), data)) # 140| return SCM_CAR (names); # 141| names = SCM_CDR (names); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/debug.c:140: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 138| { # 139| if (scm_is_eq (SCM_CAR (values), data)) # 140|-> return SCM_CAR (names); # 141| names = SCM_CDR (names); # 142| values = SCM_CDR (values); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/debug.c:141: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 139| if (scm_is_eq (SCM_CAR (values), data)) # 140| return SCM_CAR (names); # 141|-> names = SCM_CDR (names); # 142| values = SCM_CDR (values); # 143| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/debug.c:142: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 140| return SCM_CAR (names); # 141| names = SCM_CDR (names); # 142|-> values = SCM_CDR (values); # 143| } # 144| if (!scm_is_null (names) && scm_is_eq (values, data)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/debug.c:144: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 142| values = SCM_CDR (values); # 143| } # 144|-> if (!scm_is_null (names) && scm_is_eq (values, data)) # 145| return names; # 146| env = SCM_CDR (env); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/debug.c:146: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 144| if (!scm_is_null (names) && scm_is_eq (values, data)) # 145| return names; # 146|-> env = SCM_CDR (env); # 147| } # 148| return SCM_BOOL_F; Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:111: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 109| scm_c_issue_deprecation_warning # 110| ("scm_is_simple_vector is deprecated. Use scm_is_vector instead."); # 111|-> return SCM_I_IS_VECTOR (obj); # 112| } # 113| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:195: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 193| if (scm_is_bitvector (vec)) # 194| { # 195|-> if (scm_is_true (val)) # 196| scm_c_bitvector_set_bit_x (vec, idx); # 197| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:213: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 211| # 212| mask = 1L << (idx%32); # 213|-> if (scm_is_true (val)) # 214| bits[idx/32] |= mask; # 215| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:245: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 243| if (scm_is_bitvector (vec)) # 244| { # 245|-> if (scm_is_true (val)) # 246| scm_c_bitvector_set_all_bits_x (vec); # 247| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:325: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 323| # 324| for (size_t i = 0; i < len; i++) # 325|-> if (scm_is_true (scm_array_handle_ref (&handle, i*inc))) # 326| count++; # 327| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:389: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 387| { # 388| SCM elt = scm_array_handle_ref (&v_handle, i*v_inc); # 389|-> if ((bit && scm_is_true (elt)) || (!bit && scm_is_false (elt))) # 390| count++; # 391| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:393: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 391| } # 392| } # 393|-> else if (scm_is_true (scm_u32vector_p (kv))) # 394| { # 395| scm_t_array_handle kv_handle; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:405: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 403| { # 404| SCM elt = scm_array_handle_ref (&v_handle, (*kv_elts)*v_inc); # 405|-> if ((bit && scm_is_true (elt)) || (!bit && scm_is_false (elt))) # 406| count++; # 407| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:451: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 449| { # 450| SCM elt = scm_array_handle_ref (&handle, i*inc); # 451|-> if ((bit && scm_is_true (elt)) || (!bit && scm_is_false (elt))) # 452| { # 453| res = scm_from_size_t (i); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:524: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 522| # 523| for (size_t i = 0; i < kv_len; i++) # 524|-> if (scm_is_true (scm_c_bitvector_ref (kv, i))) # 525| scm_array_handle_set (&v_handle, i*v_inc, obj); # 526| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:527: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 525| scm_array_handle_set (&v_handle, i*v_inc, obj); # 526| } # 527|-> else if (scm_is_true (scm_u32vector_p (kv))) # 528| { # 529| scm_t_array_handle kv_handle; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:613: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 611| # 612| ra = scm_i_shap2ra (bounds); # 613|-> s = SCM_I_ARRAY_DIMS (ra); # 614| k = SCM_I_ARRAY_NDIM (ra); # 615| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:614: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 612| ra = scm_i_shap2ra (bounds); # 613| s = SCM_I_ARRAY_DIMS (ra); # 614|-> k = SCM_I_ARRAY_NDIM (ra); # 615| # 616| while (k--) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:622: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 620| rlen = (s[k].ubnd - s[k].lbnd + 1) * s[k].inc; # 621| } # 622|-> SCM_I_ARRAY_SET_V (ra, scm_make_generalized_vector (type, scm_from_size_t (rlen), SCM_UNDEFINED)); # 623| # 624| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:650: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 648| memcpy (elts, bytes, byte_len); # 649| # 650|-> if (1 == SCM_I_ARRAY_NDIM (ra) && 0 == SCM_I_ARRAY_BASE (ra)) # 651| if (0 == s->lbnd) # 652| return SCM_I_ARRAY_V (ra); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:652: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 650| if (1 == SCM_I_ARRAY_NDIM (ra) && 0 == SCM_I_ARRAY_BASE (ra)) # 651| if (0 == s->lbnd) # 652|-> return SCM_I_ARRAY_V (ra); # 653| return ra; # 654| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:666: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 664| ("scm_make_srcprops is deprecated; use set-source-properties! instead"); # 665| # 666|-> alist = SCM_UNBNDP (copy) ? alist : scm_acons (scm_sym_copy, copy, alist); # 667| return scm_i_make_srcprops (scm_from_long (line), scm_from_int (col), # 668| filename, alist); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:692: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 690| #define FUNC_NAME s_scm_symbol_fref # 691| { # 692|-> SCM_VALIDATE_SYMBOL (1, s); # 693| return scm_object_property (s, symbol_function_slot); # 694| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:705: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 703| SCM result; # 704| # 705|-> SCM_VALIDATE_SYMBOL (1, s); # 706| result = scm_object_property (s, symbol_property_slot); # 707| return scm_is_false (result) ? SCM_EOL : result; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:707: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 705| SCM_VALIDATE_SYMBOL (1, s); # 706| result = scm_object_property (s, symbol_property_slot); # 707|-> return scm_is_false (result) ? SCM_EOL : result; # 708| } # 709| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:717: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 715| #define FUNC_NAME s_scm_symbol_fset_x # 716| { # 717|-> SCM_VALIDATE_SYMBOL (1, s); # 718| return scm_set_object_property_x (s, symbol_function_slot, val); # 719| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:728: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 726| #define FUNC_NAME s_scm_symbol_pset_x # 727| { # 728|-> SCM_VALIDATE_SYMBOL (1, s); # 729| return scm_set_object_property_x (s, symbol_property_slot, val); # 730| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:754: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 752| # 753| bignum = SCM_PACK_POINTER (ptr); # 754|-> mpz_clear (SCM_I_BIG_MPZ (bignum)); # 755| } # 756| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:788: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 786| /* Return a newly created bignum initialized to X. */ # 787| SCM z = make_bignum (); # 788|-> mpz_init_set_si (SCM_I_BIG_MPZ (z), x); # 789| return z; # 790| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:799: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 797| /* Return a newly created bignum initialized to X. */ # 798| SCM z = make_bignum (); # 799|-> mpz_init_set_ui (SCM_I_BIG_MPZ (z), x); # 800| return z; # 801| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:810: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 808| /* Copy src_big's value, negate it if same_sign_p is false, and return. */ # 809| SCM z = make_bignum (); # 810|-> scm_to_mpz (src_big, SCM_I_BIG_MPZ (z)); # 811| if (!same_sign_p) # 812| mpz_neg (SCM_I_BIG_MPZ (z), SCM_I_BIG_MPZ (z)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:812: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 810| scm_to_mpz (src_big, SCM_I_BIG_MPZ (z)); # 811| if (!same_sign_p) # 812|-> mpz_neg (SCM_I_BIG_MPZ (z), SCM_I_BIG_MPZ (z)); # 813| return z; # 814| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:824: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 822| /* convert a big back to a fixnum if it'll fit */ # 823| /* presume b is a bignum */ # 824|-> if (mpz_fits_slong_p (SCM_I_BIG_MPZ (b))) # 825| { # 826| scm_t_inum val = mpz_get_si (SCM_I_BIG_MPZ (b)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecated.c:826: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 824| if (mpz_fits_slong_p (SCM_I_BIG_MPZ (b))) # 825| { # 826|-> scm_t_inum val = mpz_get_si (SCM_I_BIG_MPZ (b)); # 827| if (SCM_FIXABLE (val)) # 828| b = SCM_I_MAKINUM (val); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecation.c:123: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 121| while (scm_is_pair (msgs)) # 122| { # 123|-> if (!scm_is_null (msgs_nl)) # 124| msgs_nl = scm_cons (nl, msgs_nl); # 125| msgs_nl = scm_cons (SCM_CAR (msgs), msgs_nl); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecation.c:125: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 123| if (!scm_is_null (msgs_nl)) # 124| msgs_nl = scm_cons (nl, msgs_nl); # 125|-> msgs_nl = scm_cons (SCM_CAR (msgs), msgs_nl); # 126| msgs = SCM_CDR (msgs); # 127| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/deprecation.c:126: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 124| msgs_nl = scm_cons (nl, msgs_nl); # 125| msgs_nl = scm_cons (SCM_CAR (msgs), msgs_nl); # 126|-> msgs = SCM_CDR (msgs); # 127| } # 128| msgs_nl = scm_string_append (scm_reverse_x (msgs_nl, SCM_EOL)); Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:182: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 180| SCM value_box; # 181| # 182|-> if (SCM_UNLIKELY (!SCM_FLUID_P (fluid))) # 183| scm_wrong_type_arg ("with-fluid*", 0, fluid); # 184| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:189: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 187| words = push_dynstack_entry (dynstack, SCM_DYNSTACK_TYPE_WITH_FLUID, 0, # 188| WITH_FLUID_WORDS); # 189|-> words[0] = SCM_UNPACK (fluid); # 190| words[1] = SCM_UNPACK (value_box); # 191| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:190: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 188| WITH_FLUID_WORDS); # 189| words[0] = SCM_UNPACK (fluid); # 190|-> words[1] = SCM_UNPACK (value_box); # 191| # 192| /* Go ahead and swap them. */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:207: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 205| words = push_dynstack_entry (dynstack, SCM_DYNSTACK_TYPE_PROMPT, flags, # 206| PROMPT_WORDS); # 207|-> words[0] = SCM_UNPACK (key); # 208| words[1] = (scm_t_bits) fp_offset; # 209| words[2] = (scm_t_bits) sp_offset; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:222: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 220| words = push_dynstack_entry (dynstack, SCM_DYNSTACK_TYPE_DYNWIND, 0, # 221| DYNWIND_WORDS); # 222|-> words[0] = SCM_UNPACK (enter); # 223| words[1] = SCM_UNPACK (leave); # 224| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:223: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 221| DYNWIND_WORDS); # 222| words[0] = SCM_UNPACK (enter); # 223|-> words[1] = SCM_UNPACK (leave); # 224| } # 225| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:252: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 250| SCM state_box; # 251| # 252|-> if (SCM_UNLIKELY (scm_is_false (scm_dynamic_state_p (state)))) # 253| scm_wrong_type_arg ("with-dynamic-state", 0, state); # 254| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:258: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 256| words = push_dynstack_entry (dynstack, SCM_DYNSTACK_TYPE_DYNAMIC_STATE, 0, # 257| DYNAMIC_STATE_WORDS); # 258|-> words[0] = SCM_UNPACK (state_box); # 259| } # 260| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:515: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 513| # 514| if (SCM_DYNSTACK_TAG_TYPE (tag) == SCM_DYNSTACK_TYPE_PROMPT # 515|-> && scm_is_eq (PROMPT_KEY (walk), key)) # 516| { # 517| if (flags) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:551: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 549| case SCM_DYNSTACK_TYPE_WITH_FLUID: # 550| { # 551|-> if (scm_is_eq (WITH_FLUID_FLUID (walk), fluid)) # 552| { # 553| if (depth == 0) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:554: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 552| { # 553| if (depth == 0) # 554|-> return SCM_VARIABLE_REF (WITH_FLUID_VALUE_BOX (walk)); # 555| else # 556| depth--; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:568: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 566| state = scm_variable_ref (DYNAMIC_STATE_STATE_BOX (walk)); # 567| val = scm_dynamic_state_ref (state, fluid, SCM_UNDEFINED); # 568|-> if (!SCM_UNBNDP (val)) # 569| { # 570| if (depth == 0) Error: GCC_ANALYZER_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/threads.h:27: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:34: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c: scope_hint: In function 'scm_dynstack_wind' guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.h:75:37: warning[-Wanalyzer-null-dereference]: dereference of NULL 'item' guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:435:10: note: in expansion of macro 'SCM_DYNSTACK_TAG' guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:435:10: note: in expansion of macro 'SCM_DYNSTACK_TAG' guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:435:42: note: in expansion of macro 'SCM_DYNSTACK_NEXT' guile30-3.0.9-build/guile-3.0.9/libguile/dynstack.c:435:10: note: in expansion of macro 'SCM_DYNSTACK_TAG' # 73| #define SCM_DYNSTACK_SET_PREV_OFFSET(top, offset) (top)[-2] = (offset) # 74| # 75|-> #define SCM_DYNSTACK_TAG(top) ((top)[-1]) # 76| #define SCM_DYNSTACK_SET_TAG(top, tag) (top)[-1] = (tag) # 77| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynwind.c:44: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 42| scm_thread *thread = SCM_I_CURRENT_THREAD; # 43| # 44|-> SCM_ASSERT (scm_is_true (scm_thunk_p (out_guard)), out_guard, # 45| SCM_ARG3, FUNC_NAME); # 46| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynwind.c:102: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 100| { # 101| /* FIXME: This is not a safe cast. */ # 102|-> scm_dynwind_unwind_handler ((scm_t_guard) proc, SCM2PTR (data), flags); # 103| } # 104| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynwind.c:110: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 108| { # 109| /* FIXME: This is not a safe cast. */ # 110|-> scm_dynwind_rewind_handler ((scm_t_guard) proc, SCM2PTR (data), flags); # 111| } # 112| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynwind.c:125: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 123| while (scm_is_pair (vals)) # 124| { # 125|-> tmp = SCM_VARIABLE_REF (SCM_CAR (vars)); # 126| SCM_VARIABLE_SET (SCM_CAR (vars), SCM_CAR (vals)); # 127| SCM_SETCAR (vals, tmp); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynwind.c:126: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 124| { # 125| tmp = SCM_VARIABLE_REF (SCM_CAR (vars)); # 126|-> SCM_VARIABLE_SET (SCM_CAR (vars), SCM_CAR (vals)); # 127| SCM_SETCAR (vals, tmp); # 128| vars = SCM_CDR (vars); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynwind.c:127: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 125| tmp = SCM_VARIABLE_REF (SCM_CAR (vars)); # 126| SCM_VARIABLE_SET (SCM_CAR (vars), SCM_CAR (vals)); # 127|-> SCM_SETCAR (vals, tmp); # 128| vars = SCM_CDR (vars); # 129| vals = SCM_CDR (vals); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynwind.c:128: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 126| SCM_VARIABLE_SET (SCM_CAR (vars), SCM_CAR (vals)); # 127| SCM_SETCAR (vals, tmp); # 128|-> vars = SCM_CDR (vars); # 129| vals = SCM_CDR (vals); # 130| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/dynwind.c:129: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 127| SCM_SETCAR (vals, tmp); # 128| vars = SCM_CDR (vars); # 129|-> vals = SCM_CDR (vals); # 130| } # 131| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:96: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 94| #define FUNC_NAME s_scm_i_eq_p # 95| { # 96|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 97| return SCM_BOOL_T; # 98| while (scm_is_pair (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:100: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 98| while (scm_is_pair (rest)) # 99| { # 100|-> if (!scm_is_eq (x, y)) # 101| return SCM_BOOL_F; # 102| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:106: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 104| rest = scm_cdr (rest); # 105| } # 106|-> return scm_from_bool (scm_is_eq (x, y)); # 107| } # 108| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:113: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 111| scm_eq_p (SCM x, SCM y) # 112| { # 113|-> return scm_from_bool (scm_is_eq (x, y)); # 114| } # 115| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:130: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 128| scm_real_equalp (SCM x, SCM y) # 129| { # 130|-> return scm_from_bool (real_eqv (SCM_REAL_VALUE (x), # 131| SCM_REAL_VALUE (y))); # 132| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:137: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 135| scm_complex_equalp (SCM x, SCM y) # 136| { # 137|-> return scm_from_bool (real_eqv (SCM_COMPLEX_REAL (x), # 138| SCM_COMPLEX_REAL (y)) # 139| && real_eqv (SCM_COMPLEX_IMAG (x), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:146: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 144| scm_i_fraction_equalp (SCM x, SCM y) # 145| { # 146|-> return scm_from_bool # 147| (scm_is_true (scm_equal_p (SCM_FRACTION_NUMERATOR (x), # 148| SCM_FRACTION_NUMERATOR (y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:157: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 155| { # 156| // Precondition: both X and Y are heap numbers. # 157|-> if (!(SCM_HEAP_OBJECT_P (x) && SCM_HEAP_OBJECT_P (y))) # 158| abort(); # 159| // eqv? already checks that the heap tags are the same, but we are Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:162: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 160| // also called by the VM, which only ensures that both values are # 161| // numbers. So check tags here too. # 162|-> if (SCM_CELL_TYPE (x) != SCM_CELL_TYPE (y)) # 163| return 0; # 164| switch (SCM_TYP16 (x)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:164: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 162| if (SCM_CELL_TYPE (x) != SCM_CELL_TYPE (y)) # 163| return 0; # 164|-> switch (SCM_TYP16 (x)) # 165| { # 166| case scm_tc16_big: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:167: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 165| { # 166| case scm_tc16_big: # 167|-> return scm_is_true (scm_bigequal (x, y)); # 168| case scm_tc16_real: # 169| return scm_is_true (scm_real_equalp (x, y)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:169: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 167| return scm_is_true (scm_bigequal (x, y)); # 168| case scm_tc16_real: # 169|-> return scm_is_true (scm_real_equalp (x, y)); # 170| case scm_tc16_complex: # 171| return scm_is_true (scm_complex_equalp (x, y)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:171: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 169| return scm_is_true (scm_real_equalp (x, y)); # 170| case scm_tc16_complex: # 171|-> return scm_is_true (scm_complex_equalp (x, y)); # 172| case scm_tc16_fraction: # 173| return scm_is_true (scm_i_fraction_equalp (x, y)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:173: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 171| return scm_is_true (scm_complex_equalp (x, y)); # 172| case scm_tc16_fraction: # 173|-> return scm_is_true (scm_i_fraction_equalp (x, y)); # 174| default: # 175| abort (); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:201: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 199| #define FUNC_NAME s_scm_i_eqv_p # 200| { # 201|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 202| return SCM_BOOL_T; # 203| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:203: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 201| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 202| return SCM_BOOL_T; # 203|-> while (!scm_is_null (rest)) # 204| { # 205| if (!scm_is_true (scm_eqv_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:205: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 203| while (!scm_is_null (rest)) # 204| { # 205|-> if (!scm_is_true (scm_eqv_p (x, y))) # 206| return SCM_BOOL_F; # 207| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:218: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 216| #define FUNC_NAME s_scm_i_eqv_p # 217| { # 218|-> if (scm_is_eq (x, y)) # 219| return SCM_BOOL_T; # 220| if (SCM_IMP (x)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:220: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 218| if (scm_is_eq (x, y)) # 219| return SCM_BOOL_T; # 220|-> if (SCM_IMP (x)) # 221| return SCM_BOOL_F; # 222| if (SCM_IMP (y)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:222: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 220| if (SCM_IMP (x)) # 221| return SCM_BOOL_F; # 222|-> if (SCM_IMP (y)) # 223| return SCM_BOOL_F; # 224| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:226: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 224| # 225| /* this ensures that types and scm_length are the same. */ # 226|-> if (SCM_CELL_TYPE (x) != SCM_CELL_TYPE (y)) # 227| return SCM_BOOL_F; # 228| switch (SCM_TYP7 (x)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:228: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 226| if (SCM_CELL_TYPE (x) != SCM_CELL_TYPE (y)) # 227| return SCM_BOOL_F; # 228|-> switch (SCM_TYP7 (x)) # 229| { # 230| default: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:280: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 278| #define FUNC_NAME s_scm_i_equal_p # 279| { # 280|-> if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 281| return SCM_BOOL_T; # 282| while (!scm_is_null (rest)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:282: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 280| if (SCM_UNBNDP (x) || SCM_UNBNDP (y)) # 281| return SCM_BOOL_T; # 282|-> while (!scm_is_null (rest)) # 283| { # 284| if (!scm_is_true (scm_equal_p (x, y))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:284: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 282| while (!scm_is_null (rest)) # 283| { # 284|-> if (!scm_is_true (scm_equal_p (x, y))) # 285| return SCM_BOOL_F; # 286| x = y; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:288: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 286| x = y; # 287| y = scm_car (rest); # 288|-> rest = SCM_CDR (rest); # 289| } # 290| return scm_equal_p (x, y); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:301: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 299| tailrecurse: # 300| SCM_TICK; # 301|-> if (scm_is_eq (x, y)) # 302| return SCM_BOOL_T; # 303| if (SCM_IMP (x)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:303: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 301| if (scm_is_eq (x, y)) # 302| return SCM_BOOL_T; # 303|-> if (SCM_IMP (x)) # 304| return SCM_BOOL_F; # 305| if (SCM_IMP (y)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:305: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 303| if (SCM_IMP (x)) # 304| return SCM_BOOL_F; # 305|-> if (SCM_IMP (y)) # 306| return SCM_BOOL_F; # 307| if (scm_is_pair (x) && scm_is_pair (y)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:309: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 307| if (scm_is_pair (x) && scm_is_pair (y)) # 308| { # 309|-> if (scm_is_false (scm_equal_p (SCM_CAR (x), SCM_CAR (y)))) # 310| return SCM_BOOL_F; # 311| x = SCM_CDR(x); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:311: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 309| if (scm_is_false (scm_equal_p (SCM_CAR (x), SCM_CAR (y)))) # 310| return SCM_BOOL_F; # 311|-> x = SCM_CDR(x); # 312| y = SCM_CDR(y); # 313| goto tailrecurse; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:312: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 310| return SCM_BOOL_F; # 311| x = SCM_CDR(x); # 312|-> y = SCM_CDR(y); # 313| goto tailrecurse; # 314| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:315: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 313| goto tailrecurse; # 314| } # 315|-> if (SCM_TYP7 (x) == scm_tc7_smob && SCM_TYP16 (x) == SCM_TYP16 (y)) # 316| { # 317| int i = SCM_SMOBNUM (x); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:317: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 315| if (SCM_TYP7 (x) == scm_tc7_smob && SCM_TYP16 (x) == SCM_TYP16 (y)) # 316| { # 317|-> int i = SCM_SMOBNUM (x); # 318| if (!(i < scm_numsmob)) # 319| return SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:327: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 325| # 326| /* This ensures that types and scm_length are the same. */ # 327|-> if (SCM_CELL_TYPE (x) != SCM_CELL_TYPE (y)) # 328| { # 329| /* Vectors can be equal to one-dimensional arrays. Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:336: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 334| return SCM_BOOL_F; # 335| } # 336|-> switch (SCM_TYP7 (x)) # 337| { # 338| default: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:340: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 338| default: # 339| /* Check equality between structs of equal type (see cell-type test above). */ # 340|-> if (SCM_STRUCTP (x)) # 341| { # 342| if (SCM_INSTANCEP (x)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:342: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 340| if (SCM_STRUCTP (x)) # 341| { # 342|-> if (SCM_INSTANCEP (x)) # 343| goto generic_equal; # 344| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:349: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 347| break; # 348| case scm_tc7_number: # 349|-> switch SCM_TYP16 (x) # 350| { # 351| case scm_tc16_big: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:364: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 362| } # 363| case scm_tc7_pointer: # 364|-> return scm_from_bool (SCM_POINTER_VALUE (x) == SCM_POINTER_VALUE (y)); # 365| case scm_tc7_string: # 366| return scm_string_equal_p (x, y); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:377: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 375| return scm_i_vector_equal_p (x, y); # 376| case scm_tc7_syntax: # 377|-> if (scm_is_false (scm_equal_p (scm_syntax_wrap (x), # 378| scm_syntax_wrap (y)))) # 379| return SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:380: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 378| scm_syntax_wrap (y)))) # 379| return SCM_BOOL_F; # 380|-> if (scm_is_false (scm_equal_p (scm_syntax_module (x), # 381| scm_syntax_module (y)))) # 382| return SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/eq.c:394: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 392| # 393| generic_equal: # 394|-> if (SCM_UNPACK (g_scm_i_equal_p)) # 395| return scm_call_2 (g_scm_i_equal_p, x, y); # 396| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/evalext.c:46: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 44| SCM var; # 45| # 46|-> SCM_VALIDATE_SYMBOL (1, sym); # 47| # 48| if (SCM_UNBNDP (module)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/evalext.c:48: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 46| SCM_VALIDATE_SYMBOL (1, sym); # 47| # 48|-> if (SCM_UNBNDP (module)) # 49| module = scm_current_module (); # 50| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/evalext.c:51: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 49| module = scm_current_module (); # 50| else # 51|-> SCM_VALIDATE_MODULE (2, module); # 52| # 53| var = scm_module_variable (module, sym); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/evalext.c:55: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 53| var = scm_module_variable (module, sym); # 54| # 55|-> return (scm_is_false (var) || SCM_UNBNDP (SCM_VARIABLE_REF (var)) # 56| ? SCM_BOOL_F # 57| : SCM_BOOL_T); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/evalext.c:67: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 65| #define FUNC_NAME s_scm_self_evaluating_p # 66| { # 67|-> switch (SCM_ITAG3 (obj)) # 68| { # 69| case scm_tc3_int_1: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/evalext.c:75: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 73| case scm_tc3_imm24: # 74| /* characters, booleans, other immediates */ # 75|-> return scm_from_bool (!scm_is_null_and_not_nil (obj)); # 76| case scm_tc3_cons: # 77| switch (SCM_TYP7 (obj)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/evalext.c:77: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 75| return scm_from_bool (!scm_is_null_and_not_nil (obj)); # 76| case scm_tc3_cons: # 77|-> switch (SCM_TYP7 (obj)) # 78| { # 79| case scm_tc7_vector: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:88: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 86| call_thunk (SCM clo) # 87| { # 88|-> scm_t_thunk thunk = (void*)SCM_SMOB_DATA (clo); # 89| void *data = (void*)SCM_SMOB_DATA_2 (clo); # 90| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:89: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 87| { # 88| scm_t_thunk thunk = (void*)SCM_SMOB_DATA (clo); # 89|-> void *data = (void*)SCM_SMOB_DATA_2 (clo); # 90| # 91| return thunk (data); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:97: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 95| call_exception_handler (SCM clo, SCM exn) # 96| { # 97|-> scm_t_exception_handler handler = (void*)SCM_SMOB_DATA (clo); # 98| void *data = (void*)SCM_SMOB_DATA_2 (clo); # 99| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:98: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 96| { # 97| scm_t_exception_handler handler = (void*)SCM_SMOB_DATA (clo); # 98|-> void *data = (void*)SCM_SMOB_DATA_2 (clo); # 99| # 100| return handler (data, exn); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:121: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 119| scm_t_thunk thunk, void *thunk_data) # 120| { # 121|-> if (!scm_is_eq (type, SCM_BOOL_T) && !scm_is_symbol (type)) # 122| scm_wrong_type_arg ("%with-exception-handler", 1, type); # 123| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:165: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 163| args = scm_cdr (args); # 164| SCM exn = scm_car (args); # 165|-> if (!scm_is_null (scm_cdr (args))) # 166| abort (); # 167| return handler (handler_data, exn); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:206: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 204| extract_exception (SCM obj, SCM non_extensible_vtable) # 205| { # 206|-> if (!SCM_STRUCTP (obj)) { # 207| return SCM_BOOL_F; # 208| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:209: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 207| return SCM_BOOL_F; # 208| } # 209|-> if (scm_is_eq (SCM_STRUCT_VTABLE (obj), non_extensible_vtable)) { # 210| return obj; # 211| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:212: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 210| return obj; # 211| } # 212|-> if (!scm_is_eq (SCM_STRUCT_VTABLE (obj), compound_exception)) { # 213| return SCM_BOOL_F; # 214| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:216: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 214| } # 215| # 216|-> SCM exns = SCM_STRUCT_SLOT_REF (obj, 0); # 217| while (!scm_is_null (exns)) { # 218| SCM exn = scm_car (exns); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:217: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 215| # 216| SCM exns = SCM_STRUCT_SLOT_REF (obj, 0); # 217|-> while (!scm_is_null (exns)) { # 218| SCM exn = scm_car (exns); # 219| if (scm_is_eq (SCM_STRUCT_VTABLE (exn), non_extensible_vtable)) { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:219: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 217| while (!scm_is_null (exns)) { # 218| SCM exn = scm_car (exns); # 219|-> if (scm_is_eq (SCM_STRUCT_VTABLE (exn), non_extensible_vtable)) { # 220| return exn; # 221| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:231: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 229| { # 230| SCM exn = extract_exception (obj, exception_with_kind_and_args); # 231|-> if (scm_is_false (exn)) { # 232| return sys_exception_sym; # 233| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:234: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 232| return sys_exception_sym; # 233| } # 234|-> return SCM_STRUCT_SLOT_REF (exn, 0); # 235| } # 236| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:241: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 239| { # 240| SCM exn = extract_exception (obj, exception_with_kind_and_args); # 241|-> if (scm_is_false (exn)) { # 242| return scm_list_1 (obj); # 243| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:244: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 242| return scm_list_1 (obj); # 243| } # 244|-> return SCM_STRUCT_SLOT_REF (exn, 1); # 245| } # 246| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:250: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 248| exception_has_type (SCM exn, SCM type) # 249| { # 250|-> return scm_is_eq (type, SCM_BOOL_T) || # 251| scm_is_eq (type, scm_exception_kind (exn)); # 252| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:251: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 249| { # 250| return scm_is_eq (type, SCM_BOOL_T) || # 251|-> scm_is_eq (type, scm_exception_kind (exn)); # 252| } # 253| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:274: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 272| if (scm_is_pair (args)) # 273| { # 274|-> SCM cqa = SCM_CAR (args); # 275| # 276| if (scm_is_integer (cqa)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:278: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 276| if (scm_is_integer (cqa)) # 277| return scm_to_int (cqa); # 278|-> else if (scm_is_false (cqa)) # 279| return EXIT_FAILURE; # 280| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:283: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 281| return EXIT_SUCCESS; # 282| } # 283|-> else if (scm_is_null (args)) # 284| return EXIT_SUCCESS; # 285| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:299: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 297| quit_exception_code (SCM exn) # 298| { # 299|-> return scm_to_int (SCM_STRUCT_SLOT_REF (exn, 0)); # 300| } # 301| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:328: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 326| scm_newline (scm_current_error_port ()); # 327| } # 328|-> else if (scm_is_true (get_quit_exception (exn))) # 329| { # 330| exit (quit_exception_code (get_quit_exception (exn))); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:382: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 380| SCM eh = scm_fluid_ref_star (exception_handler_fluid, # 381| scm_from_size_t (depth++)); # 382|-> if (scm_is_false (eh)) { # 383| default_exception_handler (exn); # 384| abort (); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:433: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 431| scm_report_stack_overflow (void) # 432| { # 433|-> if (scm_is_false (stack_overflow_exn)) # 434| abort (); # 435| emergency_raise (stack_overflow_exn, "stack overflow"); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/exceptions.c:444: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 442| scm_report_out_of_memory (void) # 443| { # 444|-> if (scm_is_false (out_of_memory_exn)) # 445| abort (); # 446| emergency_raise (out_of_memory_exn, "out of memory"); Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/expand.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:240: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 238| } # 239| # 240|-> if (scm_is_false (filename) && scm_is_false (linenr) && scm_is_pair (expr)) # 241| { # 242| filename = scm_source_property (expr, scm_sym_filename); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:246: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 244| } # 245| # 246|-> if (!SCM_UNBNDP (expr)) # 247| { # 248| if (scm_is_true (filename)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:248: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 246| if (!SCM_UNBNDP (expr)) # 247| { # 248|-> if (scm_is_true (filename)) # 249| { # 250| format = "In file ~S, line ~S: ~A ~S in expression ~S."; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:253: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 251| args = scm_list_5 (filename, linenr, msg_string, form, expr); # 252| } # 253|-> else if (scm_is_true (linenr)) # 254| { # 255| format = "In line ~S: ~A ~S in expression ~S."; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:266: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 264| else # 265| { # 266|-> if (scm_is_true (filename)) # 267| { # 268| format = "In file ~S, line ~S: ~A ~S."; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:271: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 269| args = scm_list_4 (filename, linenr, msg_string, form); # 270| } # 271|-> else if (scm_is_true (linenr)) # 272| { # 273| format = "In line ~S: ~A ~S."; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:293: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 291| expand_env_var_is_free (SCM env, SCM x) # 292| { # 293|-> for (; scm_is_pair (env); env = CDR (env)) # 294| if (scm_is_eq (x, CAAR (env))) # 295| return 0; /* bound */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:294: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 292| { # 293| for (; scm_is_pair (env); env = CDR (env)) # 294|-> if (scm_is_eq (x, CAAR (env))) # 295| return 0; /* bound */ # 296| return 1; /* free */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:307: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 305| # 306| var = scm_module_variable (scm_current_module (), x); # 307|-> if (scm_is_true (var) && scm_is_true (scm_variable_bound_p (var)) # 308| && scm_is_true (scm_macro_p (scm_variable_ref (var)))) # 309| return scm_variable_ref (var); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:308: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 306| var = scm_module_variable (scm_current_module (), x); # 307| if (scm_is_true (var) && scm_is_true (scm_variable_bound_p (var)) # 308|-> && scm_is_true (scm_macro_p (scm_variable_ref (var)))) # 309| return scm_variable_ref (var); # 310| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:317: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 315| expand_env_lexical_gensym (SCM env, SCM name) # 316| { # 317|-> for (; scm_is_pair (env); env = CDR (env)) # 318| if (scm_is_eq (name, CAAR (env))) # 319| return CDAR (env); /* bound */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:318: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 316| { # 317| for (; scm_is_pair (env); env = CDR (env)) # 318|-> if (scm_is_eq (name, CAAR (env))) # 319| return CDAR (env); /* bound */ # 320| return SCM_BOOL_F; /* free */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:319: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 317| for (; scm_is_pair (env); env = CDR (env)) # 318| if (scm_is_eq (name, CAAR (env))) # 319|-> return CDAR (env); /* bound */ # 320| return SCM_BOOL_F; /* free */ # 321| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:328: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 326| while (scm_is_pair (names)) # 327| { # 328|-> env = scm_acons (CAR (names), CAR (vars), env); # 329| names = CDR (names); # 330| vars = CDR (vars); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:329: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 327| { # 328| env = scm_acons (CAR (names), CAR (vars), env); # 329|-> names = CDR (names); # 330| vars = CDR (vars); # 331| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:330: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 328| env = scm_acons (CAR (names), CAR (vars), env); # 329| names = CDR (names); # 330|-> vars = CDR (vars); # 331| } # 332| return env; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:344: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 342| SCM macro = SCM_BOOL_F; # 343| # 344|-> car = CAR (exp); # 345| if (scm_is_symbol (car)) # 346| macro = expand_env_ref_macro (env, car); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:345: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 343| # 344| car = CAR (exp); # 345|-> if (scm_is_symbol (car)) # 346| macro = expand_env_ref_macro (env, car); # 347| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:348: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 346| macro = expand_env_ref_macro (env, car); # 347| # 348|-> if (scm_is_true (macro)) # 349| trans = scm_i_macro_primitive (macro); # 350| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:357: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 355| SCM arg_exps = SCM_EOL; # 356| SCM args = SCM_EOL; # 357|-> SCM proc = expand (CAR (exp), env); # 358| # 359| for (arg_exps = CDR (exp); scm_is_pair (arg_exps); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:359: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 357| SCM proc = expand (CAR (exp), env); # 358| # 359|-> for (arg_exps = CDR (exp); scm_is_pair (arg_exps); # 360| arg_exps = CDR (arg_exps)) # 361| args = scm_cons (expand (CAR (arg_exps), env), args); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:360: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 358| # 359| for (arg_exps = CDR (exp); scm_is_pair (arg_exps); # 360|-> arg_exps = CDR (arg_exps)) # 361| args = scm_cons (expand (CAR (arg_exps), env), args); # 362| args = scm_reverse_x (args, SCM_UNDEFINED); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:361: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 359| for (arg_exps = CDR (exp); scm_is_pair (arg_exps); # 360| arg_exps = CDR (arg_exps)) # 361|-> args = scm_cons (expand (CAR (arg_exps), env), args); # 362| args = scm_reverse_x (args, SCM_UNDEFINED); # 363| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:364: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 362| args = scm_reverse_x (args, SCM_UNDEFINED); # 363| # 364|-> if (!scm_is_null (arg_exps)) # 365| syntax_error ("expected a proper list", exp, SCM_UNDEFINED); # 366| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:367: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 365| syntax_error ("expected a proper list", exp, SCM_UNDEFINED); # 366| # 367|-> if (SCM_EXPANDED_TYPE (proc) == SCM_EXPANDED_PRIMITIVE_REF) # 368| return PRIMCALL (scm_source_properties (exp), # 369| SCM_EXPANDED_REF (proc, PRIMITIVE_REF, NAME), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:368: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 366| # 367| if (SCM_EXPANDED_TYPE (proc) == SCM_EXPANDED_PRIMITIVE_REF) # 368|-> return PRIMCALL (scm_source_properties (exp), # 369| SCM_EXPANDED_REF (proc, PRIMITIVE_REF, NAME), # 370| args); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:372: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 370| args); # 371| else # 372|-> return CALL (scm_source_properties (exp), proc, args); # 373| } # 374| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:375: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 373| } # 374| } # 375|-> else if (scm_is_symbol (exp)) # 376| { # 377| SCM gensym = expand_env_lexical_gensym (env, exp); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:378: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 376| { # 377| SCM gensym = expand_env_lexical_gensym (env, exp); # 378|-> if (scm_is_true (gensym)) # 379| return LEXICAL_REF (SCM_BOOL_F, exp, gensym); # 380| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:379: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 377| SCM gensym = expand_env_lexical_gensym (env, exp); # 378| if (scm_is_true (gensym)) # 379|-> return LEXICAL_REF (SCM_BOOL_F, exp, gensym); # 380| else # 381| return TOPLEVEL_REF (SCM_BOOL_F, SCM_BOOL_F, exp); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:381: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 379| return LEXICAL_REF (SCM_BOOL_F, exp, gensym); # 380| else # 381|-> return TOPLEVEL_REF (SCM_BOOL_F, SCM_BOOL_F, exp); # 382| } # 383| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:384: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 382| } # 383| else # 384|-> return CONST_ (SCM_BOOL_F, exp); # 385| } # 386| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:392: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 390| SCM ret = SCM_EOL; # 391| # 392|-> for (; !scm_is_null (forms); forms = CDR (forms)) # 393| ret = scm_cons (expand (CAR (forms), env), ret); # 394| return scm_reverse_x (ret, SCM_UNDEFINED); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:393: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 391| # 392| for (; !scm_is_null (forms); forms = CDR (forms)) # 393|-> ret = scm_cons (expand (CAR (forms), env), ret); # 394| return scm_reverse_x (ret, SCM_UNDEFINED); # 395| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:402: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 400| ASSERT_SYNTAX (scm_ilength (forms) >= 1, s_bad_expression, # 401| scm_cons (scm_sym_begin, forms)); # 402|-> if (scm_is_null (CDR (forms))) # 403| return expand (CAR (forms), env); # 404| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:403: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 401| scm_cons (scm_sym_begin, forms)); # 402| if (scm_is_null (CDR (forms))) # 403|-> return expand (CAR (forms), env); # 404| else # 405| return SEQ (scm_source_properties (forms), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:405: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 403| return expand (CAR (forms), env); # 404| else # 405|-> return SEQ (scm_source_properties (forms), # 406| expand (CAR (forms), env), # 407| expand_sequence (CDR (forms), env)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:418: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 416| { # 417| ASSERT_SYNTAX (scm_ilength (expr) == 3, s_bad_expression, expr); # 418|-> ASSERT_SYNTAX (scm_ilength (CADR (expr)) > 0, s_bad_expression, expr); # 419| ASSERT_SYNTAX (scm_is_symbol (CADDR (expr)), s_bad_expression, expr); # 420| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:419: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 417| ASSERT_SYNTAX (scm_ilength (expr) == 3, s_bad_expression, expr); # 418| ASSERT_SYNTAX (scm_ilength (CADR (expr)) > 0, s_bad_expression, expr); # 419|-> ASSERT_SYNTAX (scm_is_symbol (CADDR (expr)), s_bad_expression, expr); # 420| # 421| return MODULE_REF (scm_source_properties (expr), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:421: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 419| ASSERT_SYNTAX (scm_is_symbol (CADDR (expr)), s_bad_expression, expr); # 420| # 421|-> return MODULE_REF (scm_source_properties (expr), # 422| CADR (expr), CADDR (expr), SCM_BOOL_T); # 423| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:429: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 427| { # 428| ASSERT_SYNTAX (scm_ilength (expr) == 3, s_bad_expression, expr); # 429|-> ASSERT_SYNTAX (scm_is_symbol (CADDR (expr)), s_bad_expression, expr); # 430| # 431| if (scm_is_eq (CADR (expr), sym_primitive)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:431: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 429| ASSERT_SYNTAX (scm_is_symbol (CADDR (expr)), s_bad_expression, expr); # 430| # 431|-> if (scm_is_eq (CADR (expr), sym_primitive)) # 432| return PRIMITIVE_REF (scm_source_properties (expr), CADDR (expr)); # 433| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:432: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 430| # 431| if (scm_is_eq (CADR (expr), sym_primitive)) # 432|-> return PRIMITIVE_REF (scm_source_properties (expr), CADDR (expr)); # 433| # 434| ASSERT_SYNTAX (scm_ilength (CADR (expr)) > 0, s_bad_expression, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:434: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 432| return PRIMITIVE_REF (scm_source_properties (expr), CADDR (expr)); # 433| # 434|-> ASSERT_SYNTAX (scm_ilength (CADR (expr)) > 0, s_bad_expression, expr); # 435| return MODULE_REF (scm_source_properties (expr), # 436| CADR (expr), CADDR (expr), SCM_BOOL_F); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:435: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 433| # 434| ASSERT_SYNTAX (scm_ilength (CADR (expr)) > 0, s_bad_expression, expr); # 435|-> return MODULE_REF (scm_source_properties (expr), # 436| CADR (expr), CADDR (expr), SCM_BOOL_F); # 437| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:442: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 440| expand_and (SCM expr, SCM env) # 441| { # 442|-> const SCM cdr_expr = CDR (expr); # 443| # 444| if (scm_is_null (cdr_expr)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:444: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 442| const SCM cdr_expr = CDR (expr); # 443| # 444|-> if (scm_is_null (cdr_expr)) # 445| return CONST_ (SCM_BOOL_F, SCM_BOOL_T); # 446| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:445: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 443| # 444| if (scm_is_null (cdr_expr)) # 445|-> return CONST_ (SCM_BOOL_F, SCM_BOOL_T); # 446| # 447| ASSERT_SYNTAX (scm_is_pair (cdr_expr), s_bad_expression, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:449: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 447| ASSERT_SYNTAX (scm_is_pair (cdr_expr), s_bad_expression, expr); # 448| # 449|-> if (scm_is_null (CDR (cdr_expr))) # 450| return expand (CAR (cdr_expr), env); # 451| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:450: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 448| # 449| if (scm_is_null (CDR (cdr_expr))) # 450|-> return expand (CAR (cdr_expr), env); # 451| else # 452| return CONDITIONAL (scm_source_properties (expr), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:452: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 450| return expand (CAR (cdr_expr), env); # 451| else # 452|-> return CONDITIONAL (scm_source_properties (expr), # 453| expand (CAR (cdr_expr), env), # 454| expand_and (cdr_expr, env), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:461: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 459| expand_begin (SCM expr, SCM env) # 460| { # 461|-> const SCM cdr_expr = CDR (expr); # 462| ASSERT_SYNTAX (scm_ilength (cdr_expr) >= 1, s_bad_expression, expr); # 463| return expand_sequence (cdr_expr, env); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:473: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 471| ASSERT_SYNTAX (length >= 1, s_bad_cond_clause, clause); # 472| # 473|-> test = CAR (clause); # 474| if (scm_is_eq (test, scm_sym_else) && elp) # 475| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:474: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 472| # 473| test = CAR (clause); # 474|-> if (scm_is_eq (test, scm_sym_else) && elp) # 475| { # 476| const int last_clause_p = scm_is_null (rest); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:476: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 474| if (scm_is_eq (test, scm_sym_else) && elp) # 475| { # 476|-> const int last_clause_p = scm_is_null (rest); # 477| ASSERT_SYNTAX (length >= 2, s_bad_cond_clause, clause); # 478| ASSERT_SYNTAX (last_clause_p, s_misplaced_else_clause, clause); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:479: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 477| ASSERT_SYNTAX (length >= 2, s_bad_cond_clause, clause); # 478| ASSERT_SYNTAX (last_clause_p, s_misplaced_else_clause, clause); # 479|-> return expand_sequence (CDR (clause), env); # 480| } # 481| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:482: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 480| } # 481| # 482|-> if (scm_is_null (rest)) # 483| rest = VOID_ (SCM_BOOL_F); # 484| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:483: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 481| # 482| if (scm_is_null (rest)) # 483|-> rest = VOID_ (SCM_BOOL_F); # 484| else # 485| rest = expand_cond_clauses (CAR (rest), CDR (rest), elp, alp, env); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:485: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 483| rest = VOID_ (SCM_BOOL_F); # 484| else # 485|-> rest = expand_cond_clauses (CAR (rest), CDR (rest), elp, alp, env); # 486| # 487| if (length >= 2 Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:488: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 486| # 487| if (length >= 2 # 488|-> && scm_is_eq (CADR (clause), scm_sym_arrow) # 489| && alp) # 490| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:495: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 493| ASSERT_SYNTAX (length > 2, s_missing_recipient, clause); # 494| ASSERT_SYNTAX (length == 3, s_extra_expression, clause); # 495|-> return LET (SCM_BOOL_F, # 496| scm_list_1 (tmp), # 497| scm_list_1 (tmp), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:509: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 507| /* FIXME length == 1 case */ # 508| else # 509|-> return CONDITIONAL (SCM_BOOL_F, # 510| expand (test, env), # 511| expand_sequence (CDR (clause), env), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:520: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 518| const int else_literal_p = expand_env_var_is_free (env, scm_sym_else); # 519| const int arrow_literal_p = expand_env_var_is_free (env, scm_sym_arrow); # 520|-> const SCM clauses = CDR (expr); # 521| # 522| ASSERT_SYNTAX (scm_ilength (clauses) >= 0, s_bad_expression, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:525: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 523| ASSERT_SYNTAX (scm_ilength (clauses) >= 1, s_missing_clauses, expr); # 524| # 525|-> return expand_cond_clauses (CAR (clauses), CDR (clauses), # 526| else_literal_p, arrow_literal_p, env); # 527| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:540: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 538| expand_define (SCM expr, SCM env) # 539| { # 540|-> const SCM cdr_expr = CDR (expr); # 541| SCM body; # 542| SCM variable; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:548: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 546| ASSERT_SYNTAX (!scm_is_pair (env), s_bad_define, expr); # 547| # 548|-> body = CDR (cdr_expr); # 549| variable = CAR (cdr_expr); # 550| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:549: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 547| # 548| body = CDR (cdr_expr); # 549|-> variable = CAR (cdr_expr); # 550| # 551| if (scm_is_pair (variable)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:553: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 551| if (scm_is_pair (variable)) # 552| { # 553|-> ASSERT_SYNTAX_2 (scm_is_symbol (CAR (variable)), s_bad_variable, variable, expr); # 554| return TOPLEVEL_DEFINE # 555| (scm_source_properties (expr), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:554: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 552| { # 553| ASSERT_SYNTAX_2 (scm_is_symbol (CAR (variable)), s_bad_variable, variable, expr); # 554|-> return TOPLEVEL_DEFINE # 555| (scm_source_properties (expr), # 556| SCM_BOOL_F, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:561: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 559| env)); # 560| } # 561|-> ASSERT_SYNTAX_2 (scm_is_symbol (variable), s_bad_variable, variable, expr); # 562| ASSERT_SYNTAX (scm_ilength (body) == 1, s_expression, expr); # 563| return TOPLEVEL_DEFINE (scm_source_properties (expr), SCM_BOOL_F, variable, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:563: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 561| ASSERT_SYNTAX_2 (scm_is_symbol (variable), s_bad_variable, variable, expr); # 562| ASSERT_SYNTAX (scm_ilength (body) == 1, s_expression, expr); # 563|-> return TOPLEVEL_DEFINE (scm_source_properties (expr), SCM_BOOL_F, variable, # 564| expand (CAR (body), env)); # 565| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:571: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 569| { # 570| ASSERT_SYNTAX (scm_ilength (expr) >= 3, s_bad_expression, expr); # 571|-> ASSERT_SYNTAX (scm_ilength (CADR (expr)) > 0, s_bad_expression, expr); # 572| # 573| if (scm_is_true (scm_memq (sym_eval, CADR (expr))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:573: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 571| ASSERT_SYNTAX (scm_ilength (CADR (expr)) > 0, s_bad_expression, expr); # 572| # 573|-> if (scm_is_true (scm_memq (sym_eval, CADR (expr))) # 574| || scm_is_true (scm_memq (sym_load, CADR (expr)))) # 575| return expand_sequence (CDDR (expr), env); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:574: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 572| # 573| if (scm_is_true (scm_memq (sym_eval, CADR (expr))) # 574|-> || scm_is_true (scm_memq (sym_load, CADR (expr)))) # 575| return expand_sequence (CDDR (expr), env); # 576| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:575: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 573| if (scm_is_true (scm_memq (sym_eval, CADR (expr))) # 574| || scm_is_true (scm_memq (sym_load, CADR (expr)))) # 575|-> return expand_sequence (CDDR (expr), env); # 576| else # 577| return VOID_ (scm_source_properties (expr)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:577: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 575| return expand_sequence (CDDR (expr), env); # 576| else # 577|-> return VOID_ (scm_source_properties (expr)); # 578| } # 579| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:583: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 581| expand_if (SCM expr, SCM env SCM_UNUSED) # 582| { # 583|-> const SCM cdr_expr = CDR (expr); # 584| const long length = scm_ilength (cdr_expr); # 585| ASSERT_SYNTAX (length == 2 || length == 3, s_expression, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:586: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 584| const long length = scm_ilength (cdr_expr); # 585| ASSERT_SYNTAX (length == 2 || length == 3, s_expression, expr); # 586|-> return CONDITIONAL (scm_source_properties (expr), # 587| expand (CADR (expr), env), # 588| expand (CADDR (expr), env), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:602: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 600| c_improper_memq (SCM obj, SCM list) # 601| { # 602|-> for (; scm_is_pair (list); list = CDR (list)) # 603| { # 604| if (scm_is_eq (CAR (list), obj)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:604: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 602| for (; scm_is_pair (list); list = CDR (list)) # 603| { # 604|-> if (scm_is_eq (CAR (list), obj)) # 605| return 1; # 606| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:607: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 605| return 1; # 606| } # 607|-> return scm_is_eq (list, obj); # 608| } # 609| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:620: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 618| int nreq = 0; # 619| # 620|-> ASSERT_SYNTAX (scm_is_pair (clause) && scm_is_pair (CDR (clause)), # 621| s_bad_expression, scm_cons (scm_sym_lambda, clause)); # 622| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:625: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 623| /* Before iterating the list of formal arguments, make sure the formals # 624| * actually are given as either a symbol or a non-cyclic list. */ # 625|-> formals = CAR (clause); # 626| if (scm_is_pair (formals)) # 627| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:632: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 630| } # 631| else # 632|-> ASSERT_SYNTAX_2 (scm_is_symbol (formals) || scm_is_null (formals), # 633| s_bad_formals, formals, scm_cons (scm_sym_lambda, clause)); # 634| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:639: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 637| while (scm_is_pair (formals)) # 638| { # 639|-> const SCM formal = CAR (formals); # 640| formals = CDR (formals); # 641| ASSERT_SYNTAX_2 (scm_is_symbol (formal), s_bad_formal, formal, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:640: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 638| { # 639| const SCM formal = CAR (formals); # 640|-> formals = CDR (formals); # 641| ASSERT_SYNTAX_2 (scm_is_symbol (formal), s_bad_formal, formal, # 642| scm_cons (scm_sym_lambda, clause)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:641: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 639| const SCM formal = CAR (formals); # 640| formals = CDR (formals); # 641|-> ASSERT_SYNTAX_2 (scm_is_symbol (formal), s_bad_formal, formal, # 642| scm_cons (scm_sym_lambda, clause)); # 643| ASSERT_SYNTAX_2 (!c_improper_memq (formal, formals), s_duplicate_formal, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:648: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 646| req = scm_cons (formal, req); # 647| vars = scm_cons (scm_gensym (SCM_UNDEFINED), vars); # 648|-> env = scm_acons (formal, CAR (vars), env); # 649| } # 650| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:651: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 649| } # 650| # 651|-> ASSERT_SYNTAX_2 (scm_is_null (formals) || scm_is_symbol (formals), # 652| s_bad_formal, formals, scm_cons (scm_sym_lambda, clause)); # 653| if (scm_is_symbol (formals)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:653: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 651| ASSERT_SYNTAX_2 (scm_is_null (formals) || scm_is_symbol (formals), # 652| s_bad_formal, formals, scm_cons (scm_sym_lambda, clause)); # 653|-> if (scm_is_symbol (formals)) # 654| { # 655| rest = formals; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:657: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 655| rest = formals; # 656| vars = scm_cons (scm_gensym (SCM_UNDEFINED), vars); # 657|-> env = scm_acons (rest, CAR (vars), env); # 658| } # 659| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:662: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 660| rest = SCM_BOOL_F; # 661| # 662|-> body = expand_sequence (CDR (clause), env); # 663| req = scm_reverse_x (req, SCM_UNDEFINED); # 664| vars = scm_reverse_x (vars, SCM_UNDEFINED); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:666: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 664| vars = scm_reverse_x (vars, SCM_UNDEFINED); # 665| # 666|-> if (scm_is_true (alternate) && !(SCM_EXPANDED_P (alternate) && SCM_EXPANDED_TYPE (alternate) == SCM_EXPANDED_LAMBDA_CASE)) # 667| abort (); # 668| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:669: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 667| abort (); # 668| # 669|-> return LAMBDA_CASE (SCM_BOOL_F, req, SCM_BOOL_F, rest, SCM_BOOL_F, # 670| SCM_EOL, vars, body, alternate); # 671| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:676: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 674| expand_lambda (SCM expr, SCM env) # 675| { # 676|-> return LAMBDA (scm_source_properties (expr), # 677| SCM_EOL, # 678| expand_lambda_case (CDR (expr), SCM_BOOL_F, env)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:694: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 692| scm_cons (sym_lambda_star, clause)); # 693| # 694|-> formals = CAR (clause); # 695| body = CDR (clause); # 696| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:695: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 693| # 694| formals = CAR (clause); # 695|-> body = CDR (clause); # 696| # 697| nreq = nopt = 0; Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:699:3: warning[deadcode.DeadStores]: Value stored to 'rest' is never read # 697| nreq = nopt = 0; # 698| req = opt = kw = SCM_EOL; # 699|-> rest = allow_other_keys = SCM_BOOL_F; # 700| # 701| while (scm_is_pair (formals) && scm_is_symbol (CAR (formals))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:701: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 699| rest = allow_other_keys = SCM_BOOL_F; # 700| # 701|-> while (scm_is_pair (formals) && scm_is_symbol (CAR (formals))) # 702| { # 703| nreq++; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:704: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 702| { # 703| nreq++; # 704|-> req = scm_cons (CAR (formals), req); # 705| formals = scm_cdr (formals); # 706| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:708: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 706| } # 707| # 708|-> if (scm_is_pair (formals) && scm_is_eq (CAR (formals), kw_optional)) # 709| { # 710| formals = CDR (formals); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:710: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 708| if (scm_is_pair (formals) && scm_is_eq (CAR (formals), kw_optional)) # 709| { # 710|-> formals = CDR (formals); # 711| while (scm_is_pair (formals) # 712| && (scm_is_symbol (CAR (formals)) || scm_is_pair (CAR (formals)))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:712: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 710| formals = CDR (formals); # 711| while (scm_is_pair (formals) # 712|-> && (scm_is_symbol (CAR (formals)) || scm_is_pair (CAR (formals)))) # 713| { # 714| nopt++; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:715: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 713| { # 714| nopt++; # 715|-> opt = scm_cons (CAR (formals), opt); # 716| formals = scm_cdr (formals); # 717| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:720: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 718| } # 719| # 720|-> if (scm_is_pair (formals) && scm_is_eq (CAR (formals), kw_key)) # 721| { # 722| formals = CDR (formals); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:722: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 720| if (scm_is_pair (formals) && scm_is_eq (CAR (formals), kw_key)) # 721| { # 722|-> formals = CDR (formals); # 723| while (scm_is_pair (formals) # 724| && (scm_is_symbol (CAR (formals)) || scm_is_pair (CAR (formals)))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:724: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 722| formals = CDR (formals); # 723| while (scm_is_pair (formals) # 724|-> && (scm_is_symbol (CAR (formals)) || scm_is_pair (CAR (formals)))) # 725| { # 726| kw = scm_cons (CAR (formals), kw); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:726: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 724| && (scm_is_symbol (CAR (formals)) || scm_is_pair (CAR (formals)))) # 725| { # 726|-> kw = scm_cons (CAR (formals), kw); # 727| formals = scm_cdr (formals); # 728| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:731: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 729| } # 730| # 731|-> if (scm_is_pair (formals) && scm_is_eq (CAR (formals), kw_allow_other_keys)) # 732| { # 733| formals = CDR (formals); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:733: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 731| if (scm_is_pair (formals) && scm_is_eq (CAR (formals), kw_allow_other_keys)) # 732| { # 733|-> formals = CDR (formals); # 734| allow_other_keys = SCM_BOOL_T; # 735| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:737: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 735| } # 736| # 737|-> if (scm_is_pair (formals) && scm_is_eq (CAR (formals), kw_rest)) # 738| { # 739| ASSERT_SYNTAX (scm_ilength (formals) == 2, s_bad_formals, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:739: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 737| if (scm_is_pair (formals) && scm_is_eq (CAR (formals), kw_rest)) # 738| { # 739|-> ASSERT_SYNTAX (scm_ilength (formals) == 2, s_bad_formals, # 740| CAR (clause)); # 741| rest = CADR (formals); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:741: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 739| ASSERT_SYNTAX (scm_ilength (formals) == 2, s_bad_formals, # 740| CAR (clause)); # 741|-> rest = CADR (formals); # 742| } # 743| else if (scm_is_symbol (formals)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:743: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 741| rest = CADR (formals); # 742| } # 743|-> else if (scm_is_symbol (formals)) # 744| rest = formals; # 745| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:747: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 745| else # 746| { # 747|-> ASSERT_SYNTAX (scm_is_null (formals), s_bad_formals, CAR (clause)); # 748| rest = SCM_BOOL_F; # 749| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:768: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 766| { # 767| vars = scm_cons (scm_gensym (SCM_UNDEFINED), vars); # 768|-> env = scm_acons (CAR (tmp), CAR (vars), env); # 769| } # 770| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:776: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 774| for (tmp = opt; scm_is_pair (tmp); tmp = scm_cdr (tmp)) # 775| { # 776|-> SCM x = CAR (tmp); # 777| vars = scm_cons (scm_gensym (SCM_UNDEFINED), vars); # 778| env = scm_acons (x, CAR (vars), env); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:778: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 776| SCM x = CAR (tmp); # 777| vars = scm_cons (scm_gensym (SCM_UNDEFINED), vars); # 778|-> env = scm_acons (x, CAR (vars), env); # 779| if (scm_is_symbol (x)) # 780| inits = scm_cons (CONST_ (SCM_BOOL_F, SCM_BOOL_F), inits); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:779: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 777| vars = scm_cons (scm_gensym (SCM_UNDEFINED), vars); # 778| env = scm_acons (x, CAR (vars), env); # 779|-> if (scm_is_symbol (x)) # 780| inits = scm_cons (CONST_ (SCM_BOOL_F, SCM_BOOL_F), inits); # 781| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:780: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 778| env = scm_acons (x, CAR (vars), env); # 779| if (scm_is_symbol (x)) # 780|-> inits = scm_cons (CONST_ (SCM_BOOL_F, SCM_BOOL_F), inits); # 781| else # 782| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:783: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 781| else # 782| { # 783|-> ASSERT_SYNTAX (scm_ilength (x) == 2 && scm_is_symbol (CAR (x)), # 784| s_bad_formals, CAR (clause)); # 785| inits = scm_cons (expand (CADR (x), env), inits); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:785: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 783| ASSERT_SYNTAX (scm_ilength (x) == 2 && scm_is_symbol (CAR (x)), # 784| s_bad_formals, CAR (clause)); # 785|-> inits = scm_cons (expand (CADR (x), env), inits); # 786| } # 787| env = scm_acons (scm_is_symbol (x) ? x : CAR (x), CAR (vars), env); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:787: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 785| inits = scm_cons (expand (CADR (x), env), inits); # 786| } # 787|-> env = scm_acons (scm_is_symbol (x) ? x : CAR (x), CAR (vars), env); # 788| } # 789| if (scm_is_null (opt)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:789: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 787| env = scm_acons (scm_is_symbol (x) ? x : CAR (x), CAR (vars), env); # 788| } # 789|-> if (scm_is_null (opt)) # 790| opt = SCM_BOOL_F; # 791| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:793: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 791| # 792| /* Process rest before keyword args */ # 793|-> if (scm_is_true (rest)) # 794| { # 795| vars = scm_cons (scm_gensym (SCM_UNDEFINED), vars); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:796: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 794| { # 795| vars = scm_cons (scm_gensym (SCM_UNDEFINED), vars); # 796|-> env = scm_acons (rest, CAR (vars), env); # 797| } # 798| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:800: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 798| # 799| /* Build up kw inits, env, and kw-canon list */ # 800|-> if (scm_is_null (kw)) # 801| kw = SCM_BOOL_F; # 802| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:809: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 807| { # 808| SCM x, sym, k, init; # 809|-> x = CAR (tmp); # 810| if (scm_is_symbol (x)) # 811| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:810: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 808| SCM x, sym, k, init; # 809| x = CAR (tmp); # 810|-> if (scm_is_symbol (x)) # 811| { # 812| sym = x; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:816: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 814| k = scm_symbol_to_keyword (sym); # 815| } # 816|-> else if (scm_ilength (x) == 2 && scm_is_symbol (CAR (x))) # 817| { # 818| sym = CAR (x); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:818: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 816| else if (scm_ilength (x) == 2 && scm_is_symbol (CAR (x))) # 817| { # 818|-> sym = CAR (x); # 819| init = CADR (x); # 820| k = scm_symbol_to_keyword (sym); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:819: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 817| { # 818| sym = CAR (x); # 819|-> init = CADR (x); # 820| k = scm_symbol_to_keyword (sym); # 821| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:822: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 820| k = scm_symbol_to_keyword (sym); # 821| } # 822|-> else if (scm_ilength (x) == 3 && scm_is_symbol (CAR (x)) # 823| && scm_is_keyword (CADDR (x))) # 824| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:823: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 821| } # 822| else if (scm_ilength (x) == 3 && scm_is_symbol (CAR (x)) # 823|-> && scm_is_keyword (CADDR (x))) # 824| { # 825| sym = CAR (x); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:825: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 823| && scm_is_keyword (CADDR (x))) # 824| { # 825|-> sym = CAR (x); # 826| init = CADR (x); # 827| k = CADDR (x); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:826: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 824| { # 825| sym = CAR (x); # 826|-> init = CADR (x); # 827| k = CADDR (x); # 828| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:827: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 825| sym = CAR (x); # 826| init = CADR (x); # 827|-> k = CADDR (x); # 828| } # 829| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:830: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 828| } # 829| else # 830|-> syntax_error (s_bad_formals, CAR (clause), SCM_UNDEFINED); # 831| # 832| inits = scm_cons (expand (init, env), inits); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:834: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 832| inits = scm_cons (expand (init, env), inits); # 833| vars = scm_cons (scm_gensym (SCM_UNDEFINED), vars); # 834|-> kw_canon = scm_cons (scm_list_3 (k, sym, CAR (vars)), kw_canon); # 835| env = scm_acons (sym, CAR (vars), env); # 836| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:835: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 833| vars = scm_cons (scm_gensym (SCM_UNDEFINED), vars); # 834| kw_canon = scm_cons (scm_list_3 (k, sym, CAR (vars)), kw_canon); # 835|-> env = scm_acons (sym, CAR (vars), env); # 836| } # 837| kw_canon = scm_reverse_x (kw_canon, SCM_UNDEFINED); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:848: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 846| body = expand_sequence (body, env); # 847| # 848|-> return LAMBDA_CASE (SCM_BOOL_F, req, opt, rest, kw, inits, vars, body, # 849| alternate); # 850| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:855: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 853| expand_lambda_star (SCM expr, SCM env) # 854| { # 855|-> return LAMBDA (scm_source_properties (expr), # 856| SCM_EOL, # 857| expand_lambda_star_case (CDR (expr), SCM_BOOL_F, env)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:866: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 864| # 865| if (scm_is_pair (rest)) # 866|-> alt = expand_case_lambda_clauses (CAR (rest), CDR (rest), env); # 867| else # 868| alt = SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:876: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 874| expand_case_lambda (SCM expr, SCM env) # 875| { # 876|-> ASSERT_SYNTAX (scm_is_pair (CDR (expr)), s_missing_expression, expr); # 877| # 878| return LAMBDA (scm_source_properties (expr), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:878: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 876| ASSERT_SYNTAX (scm_is_pair (CDR (expr)), s_missing_expression, expr); # 877| # 878|-> return LAMBDA (scm_source_properties (expr), # 879| SCM_EOL, # 880| expand_case_lambda_clauses (CADR (expr), CDDR (expr), env)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:889: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 887| # 888| if (scm_is_pair (rest)) # 889|-> alt = expand_case_lambda_star_clauses (CAR (rest), CDR (rest), env); # 890| else # 891| alt = SCM_BOOL_F; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:899: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 897| expand_case_lambda_star (SCM expr, SCM env) # 898| { # 899|-> ASSERT_SYNTAX (scm_is_pair (CDR (expr)), s_missing_expression, expr); # 900| # 901| return LAMBDA (scm_source_properties (expr), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:901: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 899| ASSERT_SYNTAX (scm_is_pair (CDR (expr)), s_missing_expression, expr); # 900| # 901|-> return LAMBDA (scm_source_properties (expr), # 902| SCM_EOL, # 903| expand_case_lambda_star_clauses (CADR (expr), CDDR (expr), env)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:916: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 914| # 915| binding_idx = bindings; # 916|-> for (; !scm_is_null (binding_idx); binding_idx = CDR (binding_idx)) # 917| { # 918| SCM name; /* const */ Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:920: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 918| SCM name; /* const */ # 919| # 920|-> const SCM binding = CAR (binding_idx); # 921| ASSERT_SYNTAX_2 (scm_ilength (binding) == 2, # 922| s_bad_binding, binding, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:924: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 922| s_bad_binding, binding, expr); # 923| # 924|-> name = CAR (binding); # 925| ASSERT_SYNTAX_2 (scm_is_symbol (name), s_bad_variable, name, expr); # 926| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:925: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 923| # 924| name = CAR (binding); # 925|-> ASSERT_SYNTAX_2 (scm_is_symbol (name), s_bad_variable, name, expr); # 926| } # 927| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:940: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 938| SCM rinits = SCM_EOL; # 939| SCM binding_idx = bindings; # 940|-> for (; !scm_is_null (binding_idx); binding_idx = CDR (binding_idx)) # 941| { # 942| const SCM binding = CAR (binding_idx); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:942: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 940| for (; !scm_is_null (binding_idx); binding_idx = CDR (binding_idx)) # 941| { # 942|-> const SCM binding = CAR (binding_idx); # 943| const SCM CDR_binding = CDR (binding); # 944| const SCM name = CAR (binding); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:943: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 941| { # 942| const SCM binding = CAR (binding_idx); # 943|-> const SCM CDR_binding = CDR (binding); # 944| const SCM name = CAR (binding); # 945| ASSERT_SYNTAX_2 (scm_is_false (scm_c_memq (name, rnames)), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:944: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 942| const SCM binding = CAR (binding_idx); # 943| const SCM CDR_binding = CDR (binding); # 944|-> const SCM name = CAR (binding); # 945| ASSERT_SYNTAX_2 (scm_is_false (scm_c_memq (name, rnames)), # 946| s_duplicate_binding, name, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:945: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 943| const SCM CDR_binding = CDR (binding); # 944| const SCM name = CAR (binding); # 945|-> ASSERT_SYNTAX_2 (scm_is_false (scm_c_memq (name, rnames)), # 946| s_duplicate_binding, name, expr); # 947| rnames = scm_cons (name, rnames); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:949: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 947| rnames = scm_cons (name, rnames); # 948| rvars = scm_cons (scm_gensym (SCM_UNDEFINED), rvars); # 949|-> rinits = scm_cons (CAR (CDR_binding), rinits); # 950| } # 951| *names = scm_reverse_x (rnames, SCM_UNDEFINED); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:964: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 962| SCM name_sym; # 963| # 964|-> const SCM cdr_expr = CDR (expr); # 965| const SCM name = CAR (cdr_expr); # 966| const SCM cddr_expr = CDR (cdr_expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:965: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 963| # 964| const SCM cdr_expr = CDR (expr); # 965|-> const SCM name = CAR (cdr_expr); # 966| const SCM cddr_expr = CDR (cdr_expr); # 967| const SCM bindings = CAR (cddr_expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:966: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 964| const SCM cdr_expr = CDR (expr); # 965| const SCM name = CAR (cdr_expr); # 966|-> const SCM cddr_expr = CDR (cdr_expr); # 967| const SCM bindings = CAR (cddr_expr); # 968| check_bindings (bindings, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:967: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 965| const SCM name = CAR (cdr_expr); # 966| const SCM cddr_expr = CDR (cdr_expr); # 967|-> const SCM bindings = CAR (cddr_expr); # 968| check_bindings (bindings, expr); # 969| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:975: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 973| inner_env = expand_env_extend (inner_env, var_names, var_syms); # 974| # 975|-> return LETREC # 976| (scm_source_properties (expr), SCM_BOOL_F, # 977| scm_list_1 (name), scm_list_1 (name_sym), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:994: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 992| SCM bindings; # 993| # 994|-> const SCM cdr_expr = CDR (expr); # 995| const long length = scm_ilength (cdr_expr); # 996| ASSERT_SYNTAX (length >= 0, s_bad_expression, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:999: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 997| ASSERT_SYNTAX (length >= 2, s_missing_expression, expr); # 998| # 999|-> bindings = CAR (cdr_expr); # 1000| if (scm_is_symbol (bindings)) # 1001| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1000: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 998| # 999| bindings = CAR (cdr_expr); # 1000|-> if (scm_is_symbol (bindings)) # 1001| { # 1002| ASSERT_SYNTAX (length >= 3, s_missing_expression, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1007: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1005| # 1006| check_bindings (bindings, expr); # 1007|-> if (scm_is_null (bindings)) # 1008| return expand_sequence (CDDR (expr), env); # 1009| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1008: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1006| check_bindings (bindings, expr); # 1007| if (scm_is_null (bindings)) # 1008|-> return expand_sequence (CDDR (expr), env); # 1009| else # 1010| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1013: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1011| SCM var_names, var_syms, inits; # 1012| transform_bindings (bindings, expr, &var_names, &var_syms, &inits); # 1013|-> return LET (SCM_BOOL_F, # 1014| var_names, var_syms, expand_exprs (inits, env), # 1015| expand_sequence (CDDR (expr), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1026: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1024| SCM bindings; # 1025| # 1026|-> const SCM cdr_expr = CDR (expr); # 1027| const long length = scm_ilength (cdr_expr); # 1028| ASSERT_SYNTAX (length >= 0, s_bad_expression, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1031: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1029| ASSERT_SYNTAX (length >= 2, s_missing_expression, expr); # 1030| # 1031|-> bindings = CAR (cdr_expr); # 1032| check_bindings (bindings, expr); # 1033| if (scm_is_null (bindings)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1033: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1031| bindings = CAR (cdr_expr); # 1032| check_bindings (bindings, expr); # 1033|-> if (scm_is_null (bindings)) # 1034| return expand_sequence (CDDR (expr), env); # 1035| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1034: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1032| check_bindings (bindings, expr); # 1033| if (scm_is_null (bindings)) # 1034|-> return expand_sequence (CDDR (expr), env); # 1035| else # 1036| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1040: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1038| transform_bindings (bindings, expr, &var_names, &var_syms, &inits); # 1039| env = expand_env_extend (env, var_names, var_syms); # 1040|-> return LETREC (SCM_BOOL_F, in_order_p, # 1041| var_names, var_syms, expand_exprs (inits, env), # 1042| expand_sequence (CDDR (expr), env)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1061: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1059| expand_letstar_clause (SCM bindings, SCM body, SCM env SCM_UNUSED) # 1060| { # 1061|-> if (scm_is_null (bindings)) # 1062| return expand_sequence (body, env); # 1063| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1068: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1066| # 1067| ASSERT_SYNTAX (scm_is_pair (bindings), s_bad_expression, bindings); # 1068|-> bind = CAR (bindings); # 1069| ASSERT_SYNTAX (scm_ilength (bind) == 2, s_bad_binding, bind); # 1070| name = CAR (bind); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1070: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1068| bind = CAR (bindings); # 1069| ASSERT_SYNTAX (scm_ilength (bind) == 2, s_bad_binding, bind); # 1070|-> name = CAR (bind); # 1071| sym = scm_gensym (SCM_UNDEFINED); # 1072| init = CADR (bind); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1072: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1070| name = CAR (bind); # 1071| sym = scm_gensym (SCM_UNDEFINED); # 1072|-> init = CADR (bind); # 1073| # 1074| return LET (SCM_BOOL_F, scm_list_1 (name), scm_list_1 (sym), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1074: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1072| init = CADR (bind); # 1073| # 1074|-> return LET (SCM_BOOL_F, scm_list_1 (name), scm_list_1 (sym), # 1075| scm_list_1 (expand (init, env)), # 1076| expand_letstar_clause (CDR (bindings), body, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1084: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1082| expand_letstar (SCM expr, SCM env SCM_UNUSED) # 1083| { # 1084|-> const SCM cdr_expr = CDR (expr); # 1085| ASSERT_SYNTAX (scm_ilength (cdr_expr) >= 0, s_bad_expression, expr); # 1086| ASSERT_SYNTAX (scm_ilength (cdr_expr) >= 2, s_missing_expression, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1088: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1086| ASSERT_SYNTAX (scm_ilength (cdr_expr) >= 2, s_missing_expression, expr); # 1087| # 1088|-> return expand_letstar_clause (CADR (expr), CDDR (expr), env); # 1089| } # 1090| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1094: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1092| expand_or (SCM expr, SCM env SCM_UNUSED) # 1093| { # 1094|-> SCM tail = CDR (expr); # 1095| const long length = scm_ilength (tail); # 1096| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1099: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1097| ASSERT_SYNTAX (length >= 0, s_bad_expression, expr); # 1098| # 1099|-> if (scm_is_null (CDR (expr))) # 1100| return CONST_ (SCM_BOOL_F, SCM_BOOL_F); # 1101| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1100: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1098| # 1099| if (scm_is_null (CDR (expr))) # 1100|-> return CONST_ (SCM_BOOL_F, SCM_BOOL_F); # 1101| else # 1102| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1104: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1102| { # 1103| SCM tmp = scm_gensym (SCM_UNDEFINED); # 1104|-> return LET (SCM_BOOL_F, # 1105| scm_list_1 (tmp), scm_list_1 (tmp), # 1106| scm_list_1 (expand (CADR (expr), env)), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1120: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1118| SCM quotee; # 1119| # 1120|-> const SCM cdr_expr = CDR (expr); # 1121| ASSERT_SYNTAX (scm_ilength (cdr_expr) >= 0, s_bad_expression, expr); # 1122| ASSERT_SYNTAX (scm_ilength (cdr_expr) == 1, s_expression, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1123: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1121| ASSERT_SYNTAX (scm_ilength (cdr_expr) >= 0, s_bad_expression, expr); # 1122| ASSERT_SYNTAX (scm_ilength (cdr_expr) == 1, s_expression, expr); # 1123|-> quotee = CAR (cdr_expr); # 1124| return CONST_ (scm_source_properties (expr), quotee); # 1125| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1124: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1122| ASSERT_SYNTAX (scm_ilength (cdr_expr) == 1, s_expression, expr); # 1123| quotee = CAR (cdr_expr); # 1124|-> return CONST_ (scm_source_properties (expr), quotee); # 1125| } # 1126| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1133: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1131| SCM vmem; # 1132| # 1133|-> const SCM cdr_expr = CDR (expr); # 1134| ASSERT_SYNTAX (scm_ilength (cdr_expr) >= 0, s_bad_expression, expr); # 1135| ASSERT_SYNTAX (scm_ilength (cdr_expr) == 2, s_expression, expr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1136: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1134| ASSERT_SYNTAX (scm_ilength (cdr_expr) >= 0, s_bad_expression, expr); # 1135| ASSERT_SYNTAX (scm_ilength (cdr_expr) == 2, s_expression, expr); # 1136|-> variable = CAR (cdr_expr); # 1137| vmem = expand (variable, env); # 1138| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1139: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1137| vmem = expand (variable, env); # 1138| # 1139|-> switch (SCM_EXPANDED_TYPE (vmem)) # 1140| { # 1141| case SCM_EXPANDED_LEXICAL_REF: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1142: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1140| { # 1141| case SCM_EXPANDED_LEXICAL_REF: # 1142|-> return LEXICAL_SET (scm_source_properties (expr), # 1143| SCM_EXPANDED_REF (vmem, LEXICAL_REF, NAME), # 1144| SCM_EXPANDED_REF (vmem, LEXICAL_REF, GENSYM), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1147: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1145| expand (CADDR (expr), env)); # 1146| case SCM_EXPANDED_TOPLEVEL_REF: # 1147|-> return TOPLEVEL_SET (scm_source_properties (expr), # 1148| SCM_EXPANDED_REF (vmem, TOPLEVEL_REF, MOD), # 1149| SCM_EXPANDED_REF (vmem, TOPLEVEL_REF, NAME), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1152: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1150| expand (CADDR (expr), env)); # 1151| case SCM_EXPANDED_MODULE_REF: # 1152|-> return MODULE_SET (scm_source_properties (expr), # 1153| SCM_EXPANDED_REF (vmem, MODULE_REF, MOD), # 1154| SCM_EXPANDED_REF (vmem, MODULE_REF, NAME), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1180: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1178| #define FUNC_NAME s_scm_macroexpanded_p # 1179| { # 1180|-> return scm_from_bool (SCM_EXPANDED_P (exp)); # 1181| } # 1182| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1190: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1188| compute_assigned (SCM exp, SCM assigned) # 1189| { # 1190|-> if (scm_is_null (exp) || scm_is_false (exp)) # 1191| return; # 1192| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1195: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1193| if (scm_is_pair (exp)) # 1194| { # 1195|-> compute_assigned (CAR (exp), assigned); # 1196| compute_assigned (CDR (exp), assigned); # 1197| return; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1196: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1194| { # 1195| compute_assigned (CAR (exp), assigned); # 1196|-> compute_assigned (CDR (exp), assigned); # 1197| return; # 1198| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1200: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1198| } # 1199| # 1200|-> if (!SCM_EXPANDED_P (exp)) # 1201| abort (); # 1202| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1203: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1201| abort (); # 1202| # 1203|-> switch (SCM_EXPANDED_TYPE (exp)) # 1204| { # 1205| case SCM_EXPANDED_VOID: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1270: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1268| /* We lower letrec in this same pass, so mark these variables as # 1269| assigned. */ # 1270|-> for (; scm_is_pair (syms); syms = CDR (syms)) # 1271| scm_hashq_set_x (assigned, CAR (syms), SCM_BOOL_T); # 1272| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1271: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1269| assigned. */ # 1270| for (; scm_is_pair (syms); syms = CDR (syms)) # 1271|-> scm_hashq_set_x (assigned, CAR (syms), SCM_BOOL_T); # 1272| } # 1273| compute_assigned (REF (exp, LETREC, VALS), assigned); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1285: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1283| box_value (SCM exp) # 1284| { # 1285|-> return PRIMCALL (SCM_BOOL_F, scm_from_latin1_symbol ("make-variable"), # 1286| scm_list_1 (exp)); # 1287| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1292: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1290| box_lexical (SCM name, SCM sym) # 1291| { # 1292|-> return LEXICAL_SET (SCM_BOOL_F, name, sym, # 1293| box_value (LEXICAL_REF (SCM_BOOL_F, name, sym))); # 1294| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1299: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1297| init_if_unbound (SCM src, SCM name, SCM sym, SCM init) # 1298| { # 1299|-> return CONDITIONAL (src, # 1300| PRIMCALL (src, # 1301| scm_from_latin1_symbol ("eq?"), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1311: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1309| init_boxes (SCM names, SCM syms, SCM vals, SCM body) # 1310| { # 1311|-> if (scm_is_null (names)) return body; # 1312| # 1313| return SEQ (SCM_BOOL_F, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1313: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1311| if (scm_is_null (names)) return body; # 1312| # 1313|-> return SEQ (SCM_BOOL_F, # 1314| PRIMCALL # 1315| (SCM_BOOL_F, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1325: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1323| convert_assignment (SCM exp, SCM assigned) # 1324| { # 1325|-> if (scm_is_null (exp) || scm_is_false (exp)) # 1326| return exp; # 1327| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1329: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1327| # 1328| if (scm_is_pair (exp)) # 1329|-> return scm_cons (convert_assignment (CAR (exp), assigned), # 1330| convert_assignment (CDR (exp), assigned)); # 1331| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1330: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1328| if (scm_is_pair (exp)) # 1329| return scm_cons (convert_assignment (CAR (exp), assigned), # 1330|-> convert_assignment (CDR (exp), assigned)); # 1331| # 1332| if (!SCM_EXPANDED_P (exp)) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1332: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1330| convert_assignment (CDR (exp), assigned)); # 1331| # 1332|-> if (!SCM_EXPANDED_P (exp)) # 1333| abort (); # 1334| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1335: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1333| abort (); # 1334| # 1335|-> switch (SCM_EXPANDED_TYPE (exp)) # 1336| { # 1337| case SCM_EXPANDED_VOID: Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1348: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1346| SCM sym = REF (exp, LEXICAL_REF, GENSYM); # 1347| # 1348|-> if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) # 1349| return PRIMCALL # 1350| (REF (exp, LEXICAL_REF, SRC), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1349: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1347| # 1348| if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) # 1349|-> return PRIMCALL # 1350| (REF (exp, LEXICAL_REF, SRC), # 1351| scm_from_latin1_symbol ("variable-ref"), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1357: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1355| # 1356| case SCM_EXPANDED_LEXICAL_SET: # 1357|-> return PRIMCALL # 1358| (REF (exp, LEXICAL_SET, SRC), # 1359| scm_from_latin1_symbol ("variable-set!"), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1367: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1365| # 1366| case SCM_EXPANDED_MODULE_SET: # 1367|-> return MODULE_SET # 1368| (REF (exp, MODULE_SET, SRC), # 1369| REF (exp, MODULE_SET, MOD), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1375: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1373| # 1374| case SCM_EXPANDED_TOPLEVEL_SET: # 1375|-> return TOPLEVEL_SET # 1376| (REF (exp, TOPLEVEL_SET, SRC), # 1377| REF (exp, TOPLEVEL_SET, MOD), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1382: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1380| # 1381| case SCM_EXPANDED_TOPLEVEL_DEFINE: # 1382|-> return TOPLEVEL_DEFINE # 1383| (REF (exp, TOPLEVEL_DEFINE, SRC), # 1384| REF (exp, TOPLEVEL_DEFINE, MOD), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1390: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1388| # 1389| case SCM_EXPANDED_CONDITIONAL: # 1390|-> return CONDITIONAL # 1391| (REF (exp, CONDITIONAL, SRC), # 1392| convert_assignment (REF (exp, CONDITIONAL, TEST), assigned), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1397: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1395| # 1396| case SCM_EXPANDED_CALL: # 1397|-> return CALL # 1398| (REF (exp, CALL, SRC), # 1399| convert_assignment (REF (exp, CALL, PROC), assigned), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1403: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1401| # 1402| case SCM_EXPANDED_PRIMCALL: # 1403|-> return PRIMCALL # 1404| (REF (exp, PRIMCALL, SRC), # 1405| REF (exp, PRIMCALL, NAME), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1409: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1407| # 1408| case SCM_EXPANDED_SEQ: # 1409|-> return SEQ # 1410| (REF (exp, SEQ, SRC), # 1411| convert_assignment (REF (exp, SEQ, HEAD), assigned), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1415: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1413| # 1414| case SCM_EXPANDED_LAMBDA: # 1415|-> return LAMBDA # 1416| (REF (exp, LAMBDA, SRC), # 1417| REF (exp, LAMBDA, META), Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1460: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1458| for (namewalk = req; # 1459| scm_is_pair (namewalk); # 1460|-> namewalk = CDR (namewalk), symwalk = CDR (symwalk)) # 1461| { # 1462| SCM name = CAR (namewalk), sym = CAR (symwalk); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1462: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1460| namewalk = CDR (namewalk), symwalk = CDR (symwalk)) # 1461| { # 1462|-> SCM name = CAR (namewalk), sym = CAR (symwalk); # 1463| if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) # 1464| seq = scm_cons (box_lexical (name, sym), seq); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1463: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1461| { # 1462| SCM name = CAR (namewalk), sym = CAR (symwalk); # 1463|-> if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) # 1464| seq = scm_cons (box_lexical (name, sym), seq); # 1465| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1469: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1467| for (namewalk = opt; # 1468| scm_is_pair (namewalk); # 1469|-> namewalk = CDR (namewalk), symwalk = CDR (symwalk), # 1470| inits = CDR (inits)) # 1471| { Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1470: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1468| scm_is_pair (namewalk); # 1469| namewalk = CDR (namewalk), symwalk = CDR (symwalk), # 1470|-> inits = CDR (inits)) # 1471| { # 1472| SCM name = CAR (namewalk), sym = CAR (symwalk), init = CAR (inits); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1472: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1470| inits = CDR (inits)) # 1471| { # 1472|-> SCM name = CAR (namewalk), sym = CAR (symwalk), init = CAR (inits); # 1473| seq = scm_cons (init_if_unbound (src, name, sym, init), seq); # 1474| if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1474: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1472| SCM name = CAR (namewalk), sym = CAR (symwalk), init = CAR (inits); # 1473| seq = scm_cons (init_if_unbound (src, name, sym, init), seq); # 1474|-> if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) # 1475| seq = scm_cons (box_lexical (name, sym), seq); # 1476| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1478: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1476| } # 1477| /* Rest arguments may need boxing. */ # 1478|-> if (scm_is_true (rest)) # 1479| { # 1480| SCM sym = CAR (symwalk); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1480: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1478| if (scm_is_true (rest)) # 1479| { # 1480|-> SCM sym = CAR (symwalk); # 1481| symwalk = CDR (symwalk); # 1482| if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1481: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1479| { # 1480| SCM sym = CAR (symwalk); # 1481|-> symwalk = CDR (symwalk); # 1482| if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) # 1483| seq = scm_cons (box_lexical (rest, sym), seq); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1482: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1480| SCM sym = CAR (symwalk); # 1481| symwalk = CDR (symwalk); # 1482|-> if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) # 1483| seq = scm_cons (box_lexical (rest, sym), seq); # 1484| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1489: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1487| for (; # 1488| scm_is_pair (symwalk); # 1489|-> symwalk = CDR (symwalk), inits = CDR (inits)) # 1490| { # 1491| SCM sym = CAR (symwalk), init = CAR (inits); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1491: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1489| symwalk = CDR (symwalk), inits = CDR (inits)) # 1490| { # 1491|-> SCM sym = CAR (symwalk), init = CAR (inits); # 1492| seq = scm_cons (init_if_unbound (src, SCM_BOOL_F, sym, init), seq); # 1493| if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1493: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1491| SCM sym = CAR (symwalk), init = CAR (inits); # 1492| seq = scm_cons (init_if_unbound (src, SCM_BOOL_F, sym, init), seq); # 1493|-> if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) # 1494| seq = scm_cons (box_lexical (SCM_BOOL_F, sym), seq); # 1495| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1497: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1495| } # 1496| # 1497|-> for (; scm_is_pair (seq); seq = CDR (seq)) # 1498| body = SEQ (src, CAR (seq), body); # 1499| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1498: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1496| # 1497| for (; scm_is_pair (seq); seq = CDR (seq)) # 1498|-> body = SEQ (src, CAR (seq), body); # 1499| # 1500| return LAMBDA_CASE Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1500: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1498| body = SEQ (src, CAR (seq), body); # 1499| # 1500|-> return LAMBDA_CASE # 1501| (src, req, opt, rest, kw, new_inits, syms, body, alt); # 1502| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1516: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1514| for (new_vals = SCM_EOL, walk = syms; # 1515| scm_is_pair (vals); # 1516|-> vals = CDR (vals), walk = CDR (walk)) # 1517| { # 1518| SCM sym = CAR (walk), val = CAR (vals); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1518: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1516| vals = CDR (vals), walk = CDR (walk)) # 1517| { # 1518|-> SCM sym = CAR (walk), val = CAR (vals); # 1519| if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) # 1520| new_vals = scm_cons (box_value (val), new_vals); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1519: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1517| { # 1518| SCM sym = CAR (walk), val = CAR (vals); # 1519|-> if (scm_is_true (scm_hashq_ref (assigned, sym, SCM_BOOL_F))) # 1520| new_vals = scm_cons (box_value (val), new_vals); # 1521| else Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1526: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1524| new_vals = scm_reverse (new_vals); # 1525| # 1526|-> return LET (src, names, syms, new_vals, body); # 1527| } # 1528| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1540: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1538| # 1539| empty_box = # 1540|-> PRIMCALL (SCM_BOOL_F, # 1541| scm_from_latin1_symbol ("make-undefined-variable"), # 1542| SCM_EOL); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1545: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1543| boxes = scm_make_list (scm_length (names), empty_box); # 1544| # 1545|-> if (scm_is_true (REF (exp, LETREC, IN_ORDER_P))) # 1546| return LET # 1547| (src, names, syms, boxes, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1546: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1544| # 1545| if (scm_is_true (REF (exp, LETREC, IN_ORDER_P))) # 1546|-> return LET # 1547| (src, names, syms, boxes, # 1548| init_boxes (names, syms, vals, body)); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1553: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1551| SCM walk, tmps = SCM_EOL, inits = SCM_EOL; # 1552| # 1553|-> for (walk = syms; scm_is_pair (walk); walk = CDR (walk)) # 1554| { # 1555| SCM tmp = scm_gensym (SCM_UNDEFINED); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1557: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1555| SCM tmp = scm_gensym (SCM_UNDEFINED); # 1556| tmps = scm_cons (tmp, tmps); # 1557|-> inits = scm_cons (LEXICAL_REF (SCM_BOOL_F, SCM_BOOL_F, tmp), # 1558| inits); # 1559| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1563: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1561| inits = scm_reverse (inits); # 1562| # 1563|-> return LET # 1564| (src, names, syms, boxes, # 1565| SEQ (src, Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1616: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1614| # 1615| return scm_c_make_struct (scm_exp_vtable_vtable, 0, 5, # 1616|-> SCM_UNPACK (layout), SCM_UNPACK (printer), SCM_UNPACK (name), # 1617| SCM_UNPACK (code), SCM_UNPACK (fields)); # 1618| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1617: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1615| return scm_c_make_struct (scm_exp_vtable_vtable, 0, 5, # 1616| SCM_UNPACK (layout), SCM_UNPACK (printer), SCM_UNPACK (name), # 1617|-> SCM_UNPACK (code), SCM_UNPACK (fields)); # 1618| } # 1619| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/expand.c:1657: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 1655| # 1656| const_unbound = # 1657|-> CONST_ (SCM_BOOL_F, scm_list_1 (scm_from_latin1_symbol ("unbound"))); # 1658| # 1659| scm_c_define_gsubr ("convert-assignment", 1, 0, 0, scm_convert_assignment); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/fdes-finalizers.c:78: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 76| scm_i_pthread_mutex_lock (&fdes_finalizers_lock); # 77| h = scm_hashv_get_handle (fdes_finalizers, fd); # 78|-> if (scm_is_true (h)) # 79| scm_set_cdr_x (h, scm_delq1_x (finalizer, scm_cdr (h))); # 80| scm_i_pthread_mutex_unlock (&fdes_finalizers_lock); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/fdes-finalizers.c:109: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 107| scm_i_pthread_mutex_lock (&fdes_finalizers_lock); # 108| finalizers = scm_hashv_ref (fdes_finalizers, data.fd, SCM_EOL); # 109|-> if (!scm_is_null (finalizers)) # 110| scm_hashv_remove_x (fdes_finalizers, data.fd); # 111| scm_i_pthread_mutex_unlock (&fdes_finalizers_lock); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/fdes-finalizers.c:113: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 111| scm_i_pthread_mutex_unlock (&fdes_finalizers_lock); # 112| # 113|-> for (; !scm_is_null (finalizers); finalizers = scm_cdr (finalizers)) # 114| { # 115| data.finalizer = scm_car (finalizers); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/feature.c:49: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 47| scm_add_feature (const char *str) # 48| { # 49|-> SCM old = SCM_VARIABLE_REF (features_var); # 50| SCM new = scm_cons (scm_from_utf8_symbol (str), old); # 51| SCM_VARIABLE_SET (features_var, new); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/feature.c:51: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 49| SCM old = SCM_VARIABLE_REF (features_var); # 50| SCM new = scm_cons (scm_from_utf8_symbol (str), old); # 51|-> SCM_VARIABLE_SET (features_var, new); # 52| } # 53| Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/filesys.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/filesys.c: scope_hint: In function 'set_element' guile30-3.0.9-build/guile-3.0.9/libguile/filesys.c:809:20: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ports_ready' guile30-3.0.9-build/guile-3.0.9/libguile/smob.h:29: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/threads.h:29: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/async.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/filesys.c:70: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/filesys.c:911:1: note: in expansion of macro 'SCM_DEFINE' /usr/include/sys/select.h:30: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/lib/sys/select.h:102: included_from: Included from here. /usr/include/sys/types.h:179: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/lib/sys/types.h:39: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/lib/dirent.h:34: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/filesys.c:36: included_from: Included from here. # 807| } # 808| if (fd == -1) # 809|-> *ports_ready = scm_cons (element, *ports_ready); # 810| else # 811| FD_SET (fd, set); Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/filesys.c:961:7: warning[deadcode.DeadStores]: Value stored to 'read_count' is never read # 959| if (scm_is_vector (reads)) # 960| { # 961|-> read_count = SCM_SIMPLE_VECTOR_LENGTH (reads); # 962| } # 963| else Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/filesys.c:970:7: warning[deadcode.DeadStores]: Value stored to 'write_count' is never read # 968| if (scm_is_vector (writes)) # 969| { # 970|-> write_count = SCM_SIMPLE_VECTOR_LENGTH (writes); # 971| } # 972| else Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/filesys.c:979:7: warning[deadcode.DeadStores]: Value stored to 'except_count' is never read # 977| if (scm_is_vector (excepts)) # 978| { # 979|-> except_count = SCM_SIMPLE_VECTOR_LENGTH (excepts); # 980| } # 981| else Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/foreign-object.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/foreign.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/foreign.c:129: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 127| { # 128| scm_t_pointer_finalizer finalizer = data; # 129|-> finalizer (SCM_POINTER_VALUE (SCM_PACK_POINTER (ptr))); # 130| } # 131| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/foreign.c:138: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 136| #define FUNC_NAME s_scm_pointer_p # 137| { # 138|-> return scm_from_bool (SCM_POINTER_P (obj)); # 139| } # 140| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/foreign.c:154: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 152| # 153| c_address = scm_to_uintptr_t (address); # 154|-> if (SCM_UNBNDP (finalizer)) # 155| c_finalizer = NULL; # 156| else Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/fports.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/frames.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): guile30-3.0.9-build/guile-3.0.9/libguile/gc-malloc.c: scope_hint: In function 'scm_calloc' guile30-3.0.9-build/guile-3.0.9/libguile/gc-malloc.c:159:3: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected guile30-3.0.9-build/guile-3.0.9/libguile/gc-malloc.c: scope_hint: In function 'scm_calloc' guile30-3.0.9-build/guile-3.0.9/libguile/gc-malloc.c: scope_hint: In function 'scm_calloc' <built-in>: note: argument 1 of '__builtin_memset' must be non-null # 157| # 158| ptr = scm_realloc (NULL, sz); # 159|-> memset (ptr, 0x0, sz); # 160| return ptr; # 161| } Error: GCC_ANALYZER_WARNING (CWE-688): guile30-3.0.9-build/guile-3.0.9/libguile/gc-malloc.c: scope_hint: In function 'scm_strndup' guile30-3.0.9-build/guile-3.0.9/libguile/gc-malloc.c:168:3: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected guile30-3.0.9-build/guile-3.0.9/libguile/gc-malloc.c: scope_hint: In function 'scm_strndup' <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 166| { # 167| char *dst = scm_malloc (n + 1); # 168|-> memcpy (dst, str, n); # 169| dst[n] = 0; # 170| return dst; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:167: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 165| can actually run during this code, which it can't since the GC only runs # 166| when all other threads are stopped. */ # 167|-> SCM_GC_SET_CELL_WORD (cell, 1, cdr); # 168| SCM_GC_SET_CELL_WORD (cell, 0, car); # 169| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:168: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 166| when all other threads are stopped. */ # 167| SCM_GC_SET_CELL_WORD (cell, 1, cdr); # 168|-> SCM_GC_SET_CELL_WORD (cell, 0, car); # 169| # 170| return cell; Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:185: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 183| since the GC only runs when all other threads are stopped. # 184| */ # 185|-> SCM_GC_SET_CELL_WORD (z, 1, cbr); # 186| SCM_GC_SET_CELL_WORD (z, 2, ccr); # 187| SCM_GC_SET_CELL_WORD (z, 3, cdr); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:186: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 184| */ # 185| SCM_GC_SET_CELL_WORD (z, 1, cbr); # 186|-> SCM_GC_SET_CELL_WORD (z, 2, ccr); # 187| SCM_GC_SET_CELL_WORD (z, 3, cdr); # 188| SCM_GC_SET_CELL_WORD (z, 0, car); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:187: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 185| SCM_GC_SET_CELL_WORD (z, 1, cbr); # 186| SCM_GC_SET_CELL_WORD (z, 2, ccr); # 187|-> SCM_GC_SET_CELL_WORD (z, 3, cdr); # 188| SCM_GC_SET_CELL_WORD (z, 0, car); # 189| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:188: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 186| SCM_GC_SET_CELL_WORD (z, 2, ccr); # 187| SCM_GC_SET_CELL_WORD (z, 3, cdr); # 188|-> SCM_GC_SET_CELL_WORD (z, 0, car); # 189| # 190| /* When this function is inlined, it's possible that the last Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:219: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 217| # 218| z = SCM_PACK_POINTER (SCM_GC_MALLOC (sizeof (scm_t_bits) * n_words)); # 219|-> SCM_GC_SET_CELL_WORD (z, 0, car); # 220| # 221| /* FIXME: is the following concern even relevant with BDW-GC? */ Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/gettext.c:276: error[legacyUninitvar]: Uninitialized variable: result # 274| # 275| scm_dynwind_end (); # 276|-> return result; # 277| } # 278| #undef FUNC_NAME Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/gettext.c:315: error[legacyUninitvar]: Uninitialized variable: result # 313| # 314| scm_dynwind_end (); # 315|-> return result; # 316| } # 317| #undef FUNC_NAME Error: GCC_ANALYZER_WARNING (CWE-688): guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.c: scope_hint: In function 'alloc_subr_idx' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.c:88:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'new_subrs' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 86| allocations because it's not traceable and not collectable. */ # 87| new_subrs = malloc (subrs_array_size * sizeof (void*)); # 88|-> memcpy (new_subrs, subrs, idx * sizeof (void*)); # 89| subrs = new_subrs; # 90| } Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/guardians.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/hash.c:215:11: warning[deadcode.DeadStores]: Value stored to 'ustr' is never read # 213| if (--length) # 214| { # 215|-> ustr += u8_mbtouc_unsafe (&u32, ustr, end - ustr); # 216| c += u32; # 217| } Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/hashtab.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c: scope_hint: In function 'compare_u32_strings_ci' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:764:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '<unknown>' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:851:3: note: in expansion of macro 'SCM_STRING_TO_U32_BUF' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:37: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:961:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:21: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/config.h:1962:34: note: in definition of macro '__builtin_expect' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:44:12: note: in expansion of macro 'SCM_UNLIKELY' guile30-3.0.9-build/guile-3.0.9/libguile/strings.h:300:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:973:3: note: in expansion of macro 'SCM_VALIDATE_STRING' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/strings.h:290:10: note: in expansion of macro 'SCM_HAS_TYP7' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c: scope_hint: In function 'compare_u32_strings_ci' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:846:3: note: in expansion of macro 'SCM_VALIDATE_OPTIONAL_LOCALE_COPY' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:851:3: note: in expansion of macro 'SCM_STRING_TO_U32_BUF' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:851:3: note: in expansion of macro 'SCM_STRING_TO_U32_BUF' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:851:3: note: in expansion of macro 'SCM_STRING_TO_U32_BUF' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:851:3: note: in expansion of macro 'SCM_STRING_TO_U32_BUF' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:851:3: note: in expansion of macro 'SCM_STRING_TO_U32_BUF' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:851:3: note: in expansion of macro 'SCM_STRING_TO_U32_BUF' # 762| \ # 763| for (i = 0; i < len; i ++) \ # 764|-> c_str[i] = (unsigned char ) buf[i]; \ # 765| c_str[len] = 0; \ # 766| } \ Error: GCC_ANALYZER_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:33: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c: scope_hint: In function 'chr_to_case' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1144:52: warning[-Wanalyzer-null-dereference]: dereference of NULL 'convbuf' guile30-3.0.9-build/guile-3.0.9/libguile/chars.h:42:5: note: in definition of macro 'SCM_MAKE_CHAR' guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1201:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/chars.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/error.h:106:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:110:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' guile30-3.0.9-build/guile-3.0.9/libguile/chars.h:56:37: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1211:3: note: in expansion of macro 'SCM_VALIDATE_CHAR' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1212:3: note: in expansion of macro 'SCM_VALIDATE_OPTIONAL_LOCALE_COPY' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1212:3: note: in expansion of macro 'SCM_VALIDATE_OPTIONAL_LOCALE_COPY' guile30-3.0.9-build/guile-3.0.9/config.h:1962:34: note: in definition of macro '__builtin_expect' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:40:12: note: in expansion of macro 'SCM_UNLIKELY' guile30-3.0.9-build/guile-3.0.9/libguile/smob.h:60:5: note: in expansion of macro 'SCM_ASSERT' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:426:38: note: in expansion of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:427:35: note: in expansion of macro 'SCM_IMP' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:467:4: note: in expansion of macro 'SCM_NIMP' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:513:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/smob.h:54:41: note: in expansion of macro 'SCM_HAS_TYP16' guile30-3.0.9-build/guile-3.0.9/libguile/smob.h:60:17: note: in expansion of macro 'SCM_SMOB_PREDICATE' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:237:7: note: in expansion of macro 'SCM_VALIDATE_SMOB' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:248:9: note: in expansion of macro 'SCM_VALIDATE_LOCALE_COPY' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1212:3: note: in expansion of macro 'SCM_VALIDATE_OPTIONAL_LOCALE_COPY' guile30-3.0.9-build/guile-3.0.9/libguile/smob.h:60:5: note: in expansion of macro 'SCM_ASSERT' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:237:7: note: in expansion of macro 'SCM_VALIDATE_SMOB' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:248:9: note: in expansion of macro 'SCM_VALIDATE_LOCALE_COPY' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1212:3: note: in expansion of macro 'SCM_VALIDATE_OPTIONAL_LOCALE_COPY' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:248:9: note: in expansion of macro 'SCM_VALIDATE_LOCALE_COPY' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1212:3: note: in expansion of macro 'SCM_VALIDATE_OPTIONAL_LOCALE_COPY' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1131:5: note: in expansion of macro 'RUN_IN_LOCALE_SECTION' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:549:7: note: in definition of macro 'RUN_IN_LOCALE_SECTION' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:549:7: note: in definition of macro 'RUN_IN_LOCALE_SECTION' guile30-3.0.9-build/guile-3.0.9/libguile/chars.h:42:5: note: in definition of macro 'SCM_MAKE_CHAR' guile30-3.0.9-build/guile-3.0.9/libguile/chars.h:42:5: note: in definition of macro 'SCM_MAKE_CHAR' guile30-3.0.9-build/guile-3.0.9/libguile/chars.h:42:5: note: in definition of macro 'SCM_MAKE_CHAR' # 1142| # 1143| if (convlen == 1) # 1144|-> convchar = SCM_MAKE_CHAR ((scm_t_wchar) convbuf[0]); # 1145| else # 1146| convchar = chr; Error: GCC_ANALYZER_WARNING (CWE-688): guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1265:3: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1242:3: note: in expansion of macro 'SCM_STRING_TO_U32_BUF' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1245:5: note: in expansion of macro 'RUN_IN_LOCALE_SECTION' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:549:7: note: in definition of macro 'RUN_IN_LOCALE_SECTION' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:549:7: note: in definition of macro 'RUN_IN_LOCALE_SECTION' guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1254:3: note: in expansion of macro 'SCM_CLEANUP_U32_BUF' <built-in>: note: argument 2 of '__builtin_memcpy' must be non-null # 1263| # 1264| convstr = scm_i_make_wide_string (convlen, &c_buf, 0); # 1265|-> memcpy (c_buf, c_convstr, convlen * sizeof (scm_t_wchar)); # 1266| free (c_convstr); # 1267| Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/i18n.c:1265:3: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull' # 1263| # 1264| convstr = scm_i_make_wide_string (convlen, &c_buf, 0); # 1265|-> memcpy (c_buf, c_convstr, convlen * sizeof (scm_t_wchar)); # 1266| free (c_convstr); # 1267| Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/instructions.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/integers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:564: error[uninitvar]: Uninitialized variable: zx # 562| # 563| mpz_t zx, q; # 564|-> alias_bignum_to_mpz (x, zx); # 565| mpz_init (q); # 566| if (y > 0) Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:581: error[uninitvar]: Uninitialized variable: zx # 579| { # 580| mpz_t zx, zy, q; # 581|-> alias_bignum_to_mpz (x, zx); # 582| alias_bignum_to_mpz (y, zy); # 583| mpz_init (q); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:582: error[uninitvar]: Uninitialized variable: zy # 580| mpz_t zx, zy, q; # 581| alias_bignum_to_mpz (x, zx); # 582|-> alias_bignum_to_mpz (y, zy); # 583| mpz_init (q); # 584| mpz_fdiv_q (q, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:610: error[uninitvar]: Uninitialized variable: zy # 608| mpz_t r, zy; # 609| mpz_init (r); # 610|-> alias_bignum_to_mpz (y, zy); # 611| mpz_sub_ui (r, zy, -x); # 612| scm_remember_upto_here_1 (y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:624: error[uninitvar]: Uninitialized variable: zy # 622| mpz_t r, zy; # 623| mpz_init (r); # 624|-> alias_bignum_to_mpz (y, zy); # 625| mpz_add_ui (r, zy, x); # 626| scm_remember_upto_here_1 (y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:640: error[uninitvar]: Uninitialized variable: zx # 638| scm_t_inum r; # 639| mpz_t zx; # 640|-> alias_bignum_to_mpz (x, zx); # 641| if (y > 0) # 642| r = mpz_fdiv_ui (zx, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:654: error[uninitvar]: Uninitialized variable: zx # 652| { # 653| mpz_t zx, zy, r; # 654|-> alias_bignum_to_mpz (x, zx); # 655| alias_bignum_to_mpz (y, zy); # 656| mpz_init (r); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:655: error[uninitvar]: Uninitialized variable: zy # 653| mpz_t zx, zy, r; # 654| alias_bignum_to_mpz (x, zx); # 655|-> alias_bignum_to_mpz (y, zy); # 656| mpz_init (r); # 657| mpz_fdiv_r (r, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:690: error[uninitvar]: Uninitialized variable: zy # 688| { # 689| mpz_t zy, r; # 690|-> alias_bignum_to_mpz (y, zy); # 691| mpz_init (r); # 692| mpz_sub_ui (r, zy, -x); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:711: error[uninitvar]: Uninitialized variable: zy # 709| { # 710| mpz_t zy, r; # 711|-> alias_bignum_to_mpz (y, zy); # 712| mpz_init (r); # 713| mpz_add_ui (r, zy, x); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:727: error[uninitvar]: Uninitialized variable: zx # 725| # 726| mpz_t zx, q, r; # 727|-> alias_bignum_to_mpz (x, zx); # 728| mpz_init (q); # 729| mpz_init (r); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:748: error[uninitvar]: Uninitialized variable: zx # 746| mpz_init (q); # 747| mpz_init (r); # 748|-> alias_bignum_to_mpz (x, zx); # 749| alias_bignum_to_mpz (y, zy); # 750| mpz_fdiv_qr (q, r, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:749: error[uninitvar]: Uninitialized variable: zy # 747| mpz_init (r); # 748| alias_bignum_to_mpz (x, zx); # 749|-> alias_bignum_to_mpz (y, zy); # 750| mpz_fdiv_qr (q, r, zx, zy); # 751| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:808: error[uninitvar]: Uninitialized variable: zx # 806| mpz_t q, zx; # 807| mpz_init (q); # 808|-> alias_bignum_to_mpz (x, zx); # 809| if (y > 0) # 810| mpz_cdiv_q_ui (q, zx, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:826: error[uninitvar]: Uninitialized variable: zx # 824| mpz_t q, zx, zy; # 825| mpz_init (q); # 826|-> alias_bignum_to_mpz (x, zx); # 827| alias_bignum_to_mpz (y, zy); # 828| mpz_cdiv_q (q, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:827: error[uninitvar]: Uninitialized variable: zy # 825| mpz_init (q); # 826| alias_bignum_to_mpz (x, zx); # 827|-> alias_bignum_to_mpz (y, zy); # 828| mpz_cdiv_q (q, zx, zy); # 829| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:856: error[uninitvar]: Uninitialized variable: zy # 854| mpz_t r, zy; # 855| mpz_init (r); # 856|-> alias_bignum_to_mpz (y, zy); # 857| mpz_sub_ui (r, zy, x); # 858| scm_remember_upto_here_1 (y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:878: error[uninitvar]: Uninitialized variable: zy # 876| mpz_t r, zy; # 877| mpz_init (r); # 878|-> alias_bignum_to_mpz (y, zy); # 879| mpz_add_ui (r, zy, -x); # 880| scm_remember_upto_here_1 (y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:894: error[uninitvar]: Uninitialized variable: zx # 892| { # 893| mpz_t zx; # 894|-> alias_bignum_to_mpz (x, zx); # 895| scm_t_inum r; # 896| if (y > 0) Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:910: error[uninitvar]: Uninitialized variable: zx # 908| mpz_t r, zx, zy; # 909| mpz_init (r); # 910|-> alias_bignum_to_mpz (x, zx); # 911| alias_bignum_to_mpz (y, zy); # 912| mpz_cdiv_r (r, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:911: error[uninitvar]: Uninitialized variable: zy # 909| mpz_init (r); # 910| alias_bignum_to_mpz (x, zx); # 911|-> alias_bignum_to_mpz (y, zy); # 912| mpz_cdiv_r (r, zx, zy); # 913| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:952: error[uninitvar]: Uninitialized variable: zy # 950| mpz_t r, zy; # 951| mpz_init (r); # 952|-> alias_bignum_to_mpz (y, zy); # 953| mpz_sub_ui (r, zy, x); # 954| scm_remember_upto_here_1 (y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:982: error[uninitvar]: Uninitialized variable: zy # 980| mpz_t r, zy; # 981| mpz_init (r); # 982|-> alias_bignum_to_mpz (y, zy); # 983| mpz_add_ui (r, zy, -x); # 984| scm_remember_upto_here_1 (y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1001: error[uninitvar]: Uninitialized variable: zx # 999| mpz_init (q); # 1000| mpz_init (r); # 1001|-> alias_bignum_to_mpz (x, zx); # 1002| if (y > 0) # 1003| mpz_cdiv_qr_ui (q, r, zx, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1021: error[uninitvar]: Uninitialized variable: zx # 1019| mpz_init (q); # 1020| mpz_init (r); # 1021|-> alias_bignum_to_mpz (x, zx); # 1022| alias_bignum_to_mpz (y, zy); # 1023| mpz_cdiv_qr (q, r, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1022: error[uninitvar]: Uninitialized variable: zy # 1020| mpz_init (r); # 1021| alias_bignum_to_mpz (x, zx); # 1022|-> alias_bignum_to_mpz (y, zy); # 1023| mpz_cdiv_qr (q, r, zx, zy); # 1024| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1066: error[uninitvar]: Uninitialized variable: zx # 1064| mpz_t q, zx; # 1065| mpz_init (q); # 1066|-> alias_bignum_to_mpz (x, zx); # 1067| if (y > 0) # 1068| mpz_tdiv_q_ui (q, zx, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1084: error[uninitvar]: Uninitialized variable: zx # 1082| mpz_t q, zx, zy; # 1083| mpz_init (q); # 1084|-> alias_bignum_to_mpz (x, zx); # 1085| alias_bignum_to_mpz (y, zy); # 1086| mpz_tdiv_q (q, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1085: error[uninitvar]: Uninitialized variable: zy # 1083| mpz_init (q); # 1084| alias_bignum_to_mpz (x, zx); # 1085|-> alias_bignum_to_mpz (y, zy); # 1086| mpz_tdiv_q (q, zx, zy); # 1087| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1125: error[uninitvar]: Uninitialized variable: zx # 1123| { # 1124| mpz_t zx; # 1125|-> alias_bignum_to_mpz (x, zx); # 1126| scm_t_inum r = mpz_tdiv_ui (zx, (y > 0) ? y : -y) * mpz_sgn (zx); # 1127| scm_remember_upto_here_1 (x); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1137: error[uninitvar]: Uninitialized variable: zx # 1135| mpz_t r, zx, zy; # 1136| mpz_init (r); # 1137|-> alias_bignum_to_mpz (x, zx); # 1138| alias_bignum_to_mpz (y, zy); # 1139| mpz_tdiv_r (r, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1138: error[uninitvar]: Uninitialized variable: zy # 1136| mpz_init (r); # 1137| alias_bignum_to_mpz (x, zx); # 1138|-> alias_bignum_to_mpz (y, zy); # 1139| mpz_tdiv_r (r, zx, zy); # 1140| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1185: error[uninitvar]: Uninitialized variable: zx # 1183| mpz_t q, zx; # 1184| mpz_init (q); # 1185|-> alias_bignum_to_mpz (x, zx); # 1186| scm_t_inum r; # 1187| if (y > 0) Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1207: error[uninitvar]: Uninitialized variable: zx # 1205| mpz_init (q); # 1206| mpz_init (r); # 1207|-> alias_bignum_to_mpz (x, zx); # 1208| alias_bignum_to_mpz (y, zy); # 1209| mpz_tdiv_qr (q, r, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1208: error[uninitvar]: Uninitialized variable: zy # 1206| mpz_init (r); # 1207| alias_bignum_to_mpz (x, zx); # 1208|-> alias_bignum_to_mpz (y, zy); # 1209| mpz_tdiv_qr (q, r, zx, zy); # 1210| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1222: error[uninitvar]: Uninitialized variable: zx # 1220| mpz_init (r); # 1221| mpz_init (min_r); # 1222|-> alias_bignum_to_mpz (x, zx); # 1223| alias_bignum_to_mpz (y, zy); # 1224| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1223: error[uninitvar]: Uninitialized variable: zy # 1221| mpz_init (min_r); # 1222| alias_bignum_to_mpz (x, zx); # 1223|-> alias_bignum_to_mpz (y, zy); # 1224| # 1225| /* Note that x might be small enough to fit into a fixnum, so we must Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1308: error[uninitvar]: Uninitialized variable: zx # 1306| mpz_t q, zx; # 1307| mpz_init (q); # 1308|-> alias_bignum_to_mpz (x, zx); # 1309| scm_t_inum r; # 1310| /* Arrange for r to initially be non-positive, because that Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1344: error[uninitvar]: Uninitialized variable: zx # 1342| mpz_init (r); # 1343| mpz_init (min_r); # 1344|-> alias_bignum_to_mpz (x, zx); # 1345| alias_bignum_to_mpz (y, zy); # 1346| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1345: error[uninitvar]: Uninitialized variable: zy # 1343| mpz_init (min_r); # 1344| alias_bignum_to_mpz (x, zx); # 1345|-> alias_bignum_to_mpz (y, zy); # 1346| # 1347| /* Note that x might be small enough to fit into a Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1420: error[uninitvar]: Uninitialized variable: zx # 1418| { # 1419| mpz_t zx; # 1420|-> alias_bignum_to_mpz (x, zx); # 1421| # 1422| if (y == 0) Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1458: error[uninitvar]: Uninitialized variable: zx # 1456| mpz_init (r); # 1457| mpz_init (min_r); # 1458|-> alias_bignum_to_mpz (x, zx); # 1459| alias_bignum_to_mpz (y, zy); # 1460| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1459: error[uninitvar]: Uninitialized variable: zy # 1457| mpz_init (min_r); # 1458| alias_bignum_to_mpz (x, zx); # 1459|-> alias_bignum_to_mpz (y, zy); # 1460| # 1461| /* Note that x might be small enough to fit into a fixnum, so we must Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1546: error[uninitvar]: Uninitialized variable: zx # 1544| mpz_t q, zx; # 1545| mpz_init (q); # 1546|-> alias_bignum_to_mpz (x, zx); # 1547| scm_t_inum r; # 1548| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1593: error[uninitvar]: Uninitialized variable: zx # 1591| mpz_init (r); # 1592| mpz_init (r2); # 1593|-> alias_bignum_to_mpz (x, zx); # 1594| alias_bignum_to_mpz (y, zy); # 1595| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1594: error[uninitvar]: Uninitialized variable: zy # 1592| mpz_init (r2); # 1593| alias_bignum_to_mpz (x, zx); # 1594|-> alias_bignum_to_mpz (y, zy); # 1595| # 1596| mpz_fdiv_qr (q, r, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1665: error[uninitvar]: Uninitialized variable: zx # 1663| mpz_t q, zx; # 1664| mpz_init (q); # 1665|-> alias_bignum_to_mpz (x, zx); # 1666| scm_t_inum r; # 1667| int needs_adjustment; Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1700: error[uninitvar]: Uninitialized variable: zx # 1698| mpz_init (q); # 1699| mpz_init (r); # 1700|-> alias_bignum_to_mpz (x, zx); # 1701| alias_bignum_to_mpz (y, zy); # 1702| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1701: error[uninitvar]: Uninitialized variable: zy # 1699| mpz_init (r); # 1700| alias_bignum_to_mpz (x, zx); # 1701|-> alias_bignum_to_mpz (y, zy); # 1702| # 1703| mpz_fdiv_qr (q, r, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1732: error[uninitvar]: Uninitialized variable: zx # 1730| mpz_init (r); # 1731| mpz_init (r2); # 1732|-> alias_bignum_to_mpz (x, zx); # 1733| alias_bignum_to_mpz (y, zy); # 1734| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1733: error[uninitvar]: Uninitialized variable: zy # 1731| mpz_init (r2); # 1732| alias_bignum_to_mpz (x, zx); # 1733|-> alias_bignum_to_mpz (y, zy); # 1734| # 1735| mpz_fdiv_qr (q, r, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1806: error[uninitvar]: Uninitialized variable: zx # 1804| # 1805| mpz_init (q); # 1806|-> alias_bignum_to_mpz (x, zx); # 1807| # 1808| if (y > 0) Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1849: error[uninitvar]: Uninitialized variable: zx # 1847| mpz_init (r); # 1848| mpz_init (r2); # 1849|-> alias_bignum_to_mpz (x, zx); # 1850| alias_bignum_to_mpz (y, zy); # 1851| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1850: error[uninitvar]: Uninitialized variable: zy # 1848| mpz_init (r2); # 1849| alias_bignum_to_mpz (x, zx); # 1850|-> alias_bignum_to_mpz (y, zy); # 1851| # 1852| mpz_fdiv_qr (q, r, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:1923: error[uninitvar]: Uninitialized variable: zx # 1921| mpz_t q, zx; # 1922| mpz_init (q); # 1923|-> alias_bignum_to_mpz (x, zx); # 1924| scm_t_inum r; # 1925| int needs_adjustment; Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2019: error[uninitvar]: Uninitialized variable: zx # 2017| y = -y; # 2018| mpz_t zx; # 2019|-> alias_bignum_to_mpz (x, zx); # 2020| result = mpz_gcd_ui (NULL, zx, y); # 2021| scm_remember_upto_here_1 (x); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2030: error[uninitvar]: Uninitialized variable: zx # 2028| mpz_t result, zx, zy; # 2029| mpz_init (result); # 2030|-> alias_bignum_to_mpz (x, zx); # 2031| alias_bignum_to_mpz (y, zy); # 2032| mpz_gcd (result, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2031: error[uninitvar]: Uninitialized variable: zy # 2029| mpz_init (result); # 2030| alias_bignum_to_mpz (x, zx); # 2031|-> alias_bignum_to_mpz (y, zy); # 2032| mpz_gcd (result, zx, zy); # 2033| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2055: error[uninitvar]: Uninitialized variable: zx # 2053| mpz_t result, zx; # 2054| mpz_init (result); # 2055|-> alias_bignum_to_mpz (x, zx); # 2056| mpz_lcm_ui (result, zx, y); # 2057| scm_remember_upto_here_1 (x); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2066: error[uninitvar]: Uninitialized variable: zx # 2064| mpz_t result, zx, zy; # 2065| mpz_init (result); # 2066|-> alias_bignum_to_mpz (x, zx); # 2067| alias_bignum_to_mpz (y, zy); # 2068| mpz_lcm (result, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2067: error[uninitvar]: Uninitialized variable: zy # 2065| mpz_init (result); # 2066| alias_bignum_to_mpz (x, zx); # 2067|-> alias_bignum_to_mpz (y, zy); # 2068| mpz_lcm (result, zx, zy); # 2069| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2136: error[uninitvar]: Uninitialized variable: zx # 2134| mpz_t result, zx, zy; # 2135| mpz_init (result); # 2136|-> alias_bignum_to_mpz (x, zx); # 2137| mpz_init_set_si (zy, y); # 2138| mpz_and (result, zy, zx); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2149: error[uninitvar]: Uninitialized variable: zx # 2147| mpz_t result, zx, zy; # 2148| mpz_init (result); # 2149|-> alias_bignum_to_mpz (x, zx); # 2150| alias_bignum_to_mpz (y, zy); # 2151| mpz_and (result, zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2150: error[uninitvar]: Uninitialized variable: zy # 2148| mpz_init (result); # 2149| alias_bignum_to_mpz (x, zx); # 2150|-> alias_bignum_to_mpz (y, zy); # 2151| mpz_and (result, zx, zy); # 2152| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2170: error[uninitvar]: Uninitialized variable: zx # 2168| mpz_t result, zx, zy; # 2169| mpz_init (result); # 2170|-> alias_bignum_to_mpz (x, zx); # 2171| mpz_init_set_si (zy, y); # 2172| mpz_ior (result, zy, zx); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2183: error[uninitvar]: Uninitialized variable: zx # 2181| mpz_t result, zx, zy; # 2182| mpz_init (result); # 2183|-> alias_bignum_to_mpz (x, zx); # 2184| alias_bignum_to_mpz (y, zy); # 2185| mpz_ior (result, zy, zx); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2184: error[uninitvar]: Uninitialized variable: zy # 2182| mpz_init (result); # 2183| alias_bignum_to_mpz (x, zx); # 2184|-> alias_bignum_to_mpz (y, zy); # 2185| mpz_ior (result, zy, zx); # 2186| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2201: error[uninitvar]: Uninitialized variable: zx # 2199| mpz_t result, zx, zy; # 2200| mpz_init (result); # 2201|-> alias_bignum_to_mpz (x, zx); # 2202| mpz_init_set_si (zy, y); # 2203| mpz_xor (result, zy, zx); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2214: error[uninitvar]: Uninitialized variable: zx # 2212| mpz_t result, zx, zy; # 2213| mpz_init (result); # 2214|-> alias_bignum_to_mpz (x, zx); # 2215| alias_bignum_to_mpz (y, zy); # 2216| mpz_xor (result, zy, zx); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2215: error[uninitvar]: Uninitialized variable: zy # 2213| mpz_init (result); # 2214| alias_bignum_to_mpz (x, zx); # 2215|-> alias_bignum_to_mpz (y, zy); # 2216| mpz_xor (result, zy, zx); # 2217| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2253: error[uninitvar]: Uninitialized variable: zn # 2251| { # 2252| mpz_t zn; # 2253|-> alias_bignum_to_mpz (n, zn); # 2254| int val = mpz_tstbit (zn, index); # 2255| scm_remember_upto_here_1 (n); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2270: error[uninitvar]: Uninitialized variable: zn # 2268| mpz_t result, zn; # 2269| mpz_init (result); # 2270|-> alias_bignum_to_mpz (n, zn); # 2271| mpz_com (result, zn); # 2272| scm_remember_upto_here_1 (n); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2315: error[uninitvar]: Uninitialized variable: zn # 2313| mpz_t res, zn; # 2314| mpz_init (res); # 2315|-> alias_bignum_to_mpz (n, zn); # 2316| mpz_pow_ui (res, zn, k); # 2317| scm_remember_upto_here_1 (n); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2330: error[uninitvar]: Uninitialized variable: zn # 2328| ASSERT (SCM_BIGP (n)); # 2329| mpz_t zn; # 2330|-> alias_bignum_to_mpz (scm_bignum (n), zn); # 2331| mpz_init_set (z, zn); # 2332| scm_remember_upto_here_1 (n); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2344: error[uninitvar]: Uninitialized variable: n_tmp # 2342| mpz_t n_tmp, k_tmp, m_tmp; # 2343| # 2344|-> integer_init_mpz (n_tmp, n); # 2345| integer_init_mpz (k_tmp, k); # 2346| integer_init_mpz (m_tmp, m); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2345: error[uninitvar]: Uninitialized variable: k_tmp # 2343| # 2344| integer_init_mpz (n_tmp, n); # 2345|-> integer_init_mpz (k_tmp, k); # 2346| integer_init_mpz (m_tmp, m); # 2347| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2346: error[uninitvar]: Uninitialized variable: m_tmp # 2344| integer_init_mpz (n_tmp, n); # 2345| integer_init_mpz (k_tmp, k); # 2346|-> integer_init_mpz (m_tmp, m); # 2347| # 2348| /* if the exponent K is negative, and we simply call mpz_powm, we Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2414: error[uninitvar]: Uninitialized variable: zn # 2412| mpz_t result, zn; # 2413| mpz_init (result); # 2414|-> alias_bignum_to_mpz (n, zn); # 2415| mpz_mul_2exp (result, zn, count); # 2416| scm_remember_upto_here_1 (n); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2438: error[uninitvar]: Uninitialized variable: zn # 2436| mpz_t result, zn; # 2437| mpz_init (result); # 2438|-> alias_bignum_to_mpz (n, zn); # 2439| mpz_fdiv_q_2exp (result, zn, count); # 2440| scm_remember_upto_here_1 (n); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2471: error[uninitvar]: Uninitialized variable: zn # 2469| mpz_t q, zn; # 2470| mpz_init (q); # 2471|-> alias_bignum_to_mpz (n, zn); # 2472| mpz_fdiv_q_2exp (q, zn, count); # 2473| if (mpz_tstbit (zn, count-1) Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2510: error[uninitvar]: Uninitialized variable: zn # 2508| { # 2509| mpz_t zn; # 2510|-> alias_bignum_to_mpz (n, zn); # 2511| # 2512| if (bits == 1) Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2553: error[uninitvar]: Uninitialized variable: zn # 2551| unsigned long count; # 2552| mpz_t zn; # 2553|-> alias_bignum_to_mpz (n, zn); # 2554| if (mpz_sgn (zn) >= 0) # 2555| count = mpz_popcount (zn); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2594: error[uninitvar]: Uninitialized variable: zn # 2592| 1 too big, so check for that and adjust. */ # 2593| mpz_t zn; # 2594|-> alias_bignum_to_mpz (n, zn); # 2595| size_t size = mpz_sizeinbase (zn, 2); # 2596| /* If negative and no 0 bits above the lowest 1, adjust result. */ Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2616: error[uninitvar]: Uninitialized variable: zn # 2614| { # 2615| mpz_t zn; # 2616|-> alias_bignum_to_mpz (n, zn); # 2617| char *str = mpz_get_str (NULL, base, zn); # 2618| scm_remember_upto_here_1 (n); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2659: error[uninitvar]: Uninitialized variable: zx # 2657| { # 2658| mpz_t zx, zy; # 2659|-> alias_bignum_to_mpz (x, zx); # 2660| alias_bignum_to_mpz (y, zy); # 2661| int cmp = mpz_cmp (zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2660: error[uninitvar]: Uninitialized variable: zy # 2658| mpz_t zx, zy; # 2659| alias_bignum_to_mpz (x, zx); # 2660|-> alias_bignum_to_mpz (y, zy); # 2661| int cmp = mpz_cmp (zx, zy); # 2662| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2672: error[uninitvar]: Uninitialized variable: zx # 2670| return 0; # 2671| mpz_t zx; # 2672|-> alias_bignum_to_mpz (x, zx); # 2673| int cmp = mpz_cmp_d (zx, y); # 2674| scm_remember_upto_here_1 (x); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2732: error[uninitvar]: Uninitialized variable: zx # 2730| { # 2731| mpz_t zx, zy; # 2732|-> alias_bignum_to_mpz (x, zx); # 2733| alias_bignum_to_mpz (y, zy); # 2734| int cmp = mpz_cmp (zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2733: error[uninitvar]: Uninitialized variable: zy # 2731| mpz_t zx, zy; # 2732| alias_bignum_to_mpz (x, zx); # 2733|-> alias_bignum_to_mpz (y, zy); # 2734| int cmp = mpz_cmp (zx, zy); # 2735| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2745: error[uninitvar]: Uninitialized variable: zx # 2743| return 0; # 2744| mpz_t zx; # 2745|-> alias_bignum_to_mpz (x, zx); # 2746| int cmp = mpz_cmp_d (zx, y); # 2747| scm_remember_upto_here_1 (x); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2757: error[uninitvar]: Uninitialized variable: zy # 2755| return 0; # 2756| mpz_t zy; # 2757|-> alias_bignum_to_mpz (y, zy); # 2758| int cmp = mpz_cmp_d (zy, x); # 2759| scm_remember_upto_here_1 (y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:2791: error[uninitvar]: Uninitialized variable: zx # 2789| { # 2790| mpz_t zx; # 2791|-> alias_bignum_to_mpz (x, zx); # 2792| # 2793| size_t bits = mpz_sizeinbase (zx, 2); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:3156: error[uninitvar]: Uninitialized variable: zx # 3154| scm_t_inum abs_y = y < 0 ? -y : y; # 3155| mpz_t zx; # 3156|-> alias_bignum_to_mpz (x, zx); # 3157| int divisible = mpz_divisible_ui_p (zx, abs_y); # 3158| scm_remember_upto_here_1 (x); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:3168: error[uninitvar]: Uninitialized variable: zx # 3166| { # 3167| mpz_t zx, zy; # 3168|-> alias_bignum_to_mpz (x, zx); # 3169| alias_bignum_to_mpz (y, zy); # 3170| int divisible_p = mpz_divisible_p (zx, zy); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:3169: error[uninitvar]: Uninitialized variable: zy # 3167| mpz_t zx, zy; # 3168| alias_bignum_to_mpz (x, zx); # 3169|-> alias_bignum_to_mpz (y, zy); # 3170| int divisible_p = mpz_divisible_p (zx, zy); # 3171| scm_remember_upto_here_2 (x, y); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:3209: error[uninitvar]: Uninitialized variable: zn # 3207| mpz_t q, zn; # 3208| mpz_init (q); # 3209|-> alias_bignum_to_mpz (n, zn); # 3210| if (d > 0) # 3211| mpz_divexact_ui (q, zn, d); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:3226: error[uninitvar]: Uninitialized variable: zn # 3224| mpz_t q, zn, zd; # 3225| mpz_init (q); # 3226|-> alias_bignum_to_mpz (n, zn); # 3227| alias_bignum_to_mpz (d, zd); # 3228| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:3227: error[uninitvar]: Uninitialized variable: zd # 3225| mpz_init (q); # 3226| alias_bignum_to_mpz (n, zn); # 3227|-> alias_bignum_to_mpz (d, zd); # 3228| # 3229| mpz_divexact (q, zn, zd); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:3296: error[uninitvar]: Uninitialized variable: zn # 3294| { # 3295| mpz_t zn; # 3296|-> alias_bignum_to_mpz (z, zn); # 3297| mpz_set (n, zn); # 3298| scm_remember_upto_here_1 (z); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:3328: error[uninitvar]: Uninitialized variable: zk # 3326| { # 3327| mpz_t zk, zs, zr; # 3328|-> alias_bignum_to_mpz (k, zk); # 3329| mpz_init (zs); # 3330| mpz_init (zr); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:3353: error[uninitvar]: Uninitialized variable: zk # 3351| { # 3352| mpz_t zk; # 3353|-> alias_bignum_to_mpz (k, zk); # 3354| int result = mpz_perfect_square_p (zk); # 3355| scm_remember_upto_here_1 (k); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:3374: error[uninitvar]: Uninitialized variable: zk # 3372| { # 3373| mpz_t zk, zs; # 3374|-> alias_bignum_to_mpz (k, zk); # 3375| mpz_init (zs); # 3376| mpz_sqrt (zs, zk); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/integers.c:3420: error[uninitvar]: Uninitialized variable: zn # 3418| { # 3419| mpz_t zn; # 3420|-> alias_bignum_to_mpz (n, zn); # 3421| unsigned long pos = mpz_scan1 (zn, 0L); # 3422| scm_remember_upto_here_1 (n); Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c: scope_hint: In function 'scm_dup_to_fdes' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:158:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'rv' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:44: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:149:15: note: in expansion of macro 'scm_to_int' # 156| } # 157| } # 158|-> return fd; # 159| } # 160| #undef FUNC_NAME Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/jit.c:5773:11: warning[deadcode.DeadStores]: Value stored to 'attrs' is never read # 5771| case scm_op_call: # 5772| case scm_op_call_label: # 5773|-> attrs = OP_ATTR_BLOCK; # 5774| target = j->next_ip; # 5775| j->op_attrs[target - j->start] |= OP_ATTR_BLOCK | OP_ATTR_ENTRY; Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/keywords.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/lightening/lightening/lightening.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/load.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/loader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): guile30-3.0.9-build/guile-3.0.9/libguile/loader.c: scope_hint: In function 'alloc_aligned' guile30-3.0.9-build/guile-3.0.9/libguile/loader.c:225:11: warning[-Wanalyzer-malloc-leak]: leak of 'ret' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/loader.c:45: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/loader.c:587:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/loader.c:41: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.h:154:3: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/loader.c:595:3: note: in expansion of macro 'SCM_VALIDATE_BYTEVECTOR' guile30-3.0.9-build/guile-3.0.9/libguile/loader.c:225:22: note: in expansion of macro 'ALIGN' # 223| if (!ret) # 224| abort (); # 225|-> ret = (char *) ALIGN ((uintptr_t) ret, (uintptr_t) alignment); # 226| } # 227| Error: GCC_ANALYZER_WARNING (CWE-688): guile30-3.0.9-build/guile-3.0.9/libguile/loader.c: scope_hint: In function 'copy_and_align_elf_data' guile30-3.0.9-build/guile-3.0.9/libguile/loader.c:239:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'alloc_aligned(len, (unsigned int)elf_alignment(data, len))' where non-null expected guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/loader.c:587:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.h:154:3: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/loader.c:595:3: note: in expansion of macro 'SCM_VALIDATE_BYTEVECTOR' <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 237| alignment = elf_alignment (data, len); # 238| copy = alloc_aligned (len, alignment); # 239|-> memcpy(copy, data, len); # 240| # 241| return copy; Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/modules.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/net_db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/net_db.c:92:4: warning[deadcode.DeadStores]: Value stored to 'errmsg' is never read # 90| case HOST_NOT_FOUND: # 91| key = scm_host_not_found_key; # 92|-> errmsg = "Unknown host"; # 93| break; # 94| case TRY_AGAIN: Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/net_db.c:96:4: warning[deadcode.DeadStores]: Value stored to 'errmsg' is never read # 94| case TRY_AGAIN: # 95| key = scm_try_again_key; # 96|-> errmsg = "Host name lookup failure"; # 97| break; # 98| case NO_RECOVERY: Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/net_db.c:100:4: warning[deadcode.DeadStores]: Value stored to 'errmsg' is never read # 98| case NO_RECOVERY: # 99| key = scm_no_recovery_key; # 100|-> errmsg = "Unknown server error"; # 101| break; # 102| case NO_DATA: Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/net_db.c:104:4: warning[deadcode.DeadStores]: Value stored to 'errmsg' is never read # 102| case NO_DATA: # 103| key = scm_no_data_key; # 104|-> errmsg = "No address associated with name"; # 105| break; # 106| default: Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/net_db.c:303: warning[uninitvar]: Uninitialized variable: eno # 301| # 302| if (!entry) # 303|-> SCM_SYSERROR_MSG ("no such protocol ~A", scm_list_1 (protocol), eno); # 304| # 305| SCM_SIMPLE_VECTOR_SET(result, 0, scm_from_locale_string (entry->p_name)); Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/numbers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/numbers.c:301: error[uninitvar]: Uninitialized variable: dd # 299| } # 300| else # 301|-> scm_integer_init_set_mpz_z (scm_bignum (d), dd); # 302| # 303| if (SCM_I_INUMP (n)) Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/numbers.c:306: error[uninitvar]: Uninitialized variable: nn # 304| mpz_init_set_si (nn, SCM_I_INUM (n)); # 305| else # 306|-> scm_integer_init_set_mpz_z (scm_bignum (n), nn); # 307| # 308| neg = (mpz_sgn (nn) < 0) ^ (mpz_sgn (dd) < 0); Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/numbers.c:3546: error[uninitvar]: Uninitialized variable: num_buf # 3544| { # 3545| char num_buf [FLOBUFLEN]; # 3546|-> return scm_from_latin1_stringn (num_buf, iflo2str (n, num_buf, base)); # 3547| } # 3548| else Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/numbers.c:3561: error[uninitvar]: Uninitialized variable: num_buf # 3559| { # 3560| char num_buf[FLOBUFLEN]; # 3561|-> scm_lfwrite (num_buf, iflo2str (sexp, num_buf, 10), port); # 3562| return !0; # 3563| } Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/numbers.c:3569: error[uninitvar]: Uninitialized variable: num_buf # 3567| { # 3568| char num_buf[FLOBUFLEN]; # 3569|-> scm_lfwrite (num_buf, idbl2str (val, num_buf, 10), port); # 3570| } # 3571| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/numbers.c:3577: error[uninitvar]: Uninitialized variable: num_buf # 3575| { # 3576| char num_buf[FLOBUFLEN]; # 3577|-> scm_lfwrite (num_buf, iflo2str (sexp, num_buf, 10), port); # 3578| return !0; # 3579| } Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/numbers.c:3585: error[uninitvar]: Uninitialized variable: num_buf # 3583| { # 3584| char num_buf[FLOBUFLEN]; # 3585|-> scm_lfwrite (num_buf, icmplx2str (real, imag, num_buf, 10), port); # 3586| } # 3587| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:155: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 153| scm_cons (SCM x, SCM y) # 154| { # 155|-> return scm_cell (SCM_UNPACK (x), SCM_UNPACK (y)); # 156| } # 157| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:182: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 180| #endif # 181| # 182|-> return SCM_I_CONSP (x); # 183| } # 184| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:190: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 188| if (SCM_UNLIKELY (!scm_is_pair (x))) # 189| scm_wrong_type_arg_msg ("car", 0, x, "pair"); # 190|-> return SCM_CAR (x); # 191| } # 192| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:198: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 196| if (SCM_UNLIKELY (!scm_is_pair (x))) # 197| scm_wrong_type_arg_msg ("cdr", 0, x, "pair"); # 198|-> return SCM_CDR (x); # 199| } # 200| #endif Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:222: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 220| pair in the read-only section would cause a segmentation fault, so # 221| to avoid that, we really do need to enforce the restriction. */ # 222|-> return scm_is_pair (x) && GC_is_heap_ptr (SCM2PTR (x)); # 223| } # 224| #endif /* BUILDING_LIBGUILE */ Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/poll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/ports.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/ports.c:1675:3: warning[deadcode.DeadStores]: Value stored to 'read_buf' is never read # 1673| # 1674| pt = SCM_PORT (port); # 1675|-> read_buf = pt->read_buf; # 1676| # 1677| if (pt->rw_random) Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/ports.c:3205:7: warning[deadcode.DeadStores]: Value stored to 'saved_errno' is never read # 3203| scm_port_acquire_iconv_descriptors (port, NULL, &output_cd); # 3204| res = iconv (output_cd, &input, &input_left, &output, &output_left); # 3205|-> saved_errno = errno; # 3206| iconv (output_cd, NULL, NULL, &output, &output_left); # 3207| scm_port_release_iconv_descriptors (port); Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/ports.c:3216:7: warning[deadcode.DeadStores]: Value stored to 'saved_errno' is never read # 3214| scm_port_acquire_iconv_descriptors (port, NULL, &output_cd); # 3215| res = iconv (output_cd, &input, &input_left, &output, &output_left); # 3216|-> saved_errno = errno; # 3217| iconv (output_cd, NULL, NULL, &output, &output_left); # 3218| scm_port_release_iconv_descriptors (port); Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/posix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/posix.c: scope_hint: In function 'do_spawn' guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1396:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'fd_slot[0]' guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.h:27: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/bitvectors.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:60: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1530:16: note: in expansion of macro 'scm_to_int' guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:24: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/config.h:1962:34: note: in definition of macro '__builtin_expect' guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:188:7: note: in expansion of macro 'SCM_UNLIKELY' guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:182:10: note: in expansion of macro 'SCM_I_CONSP' guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:182:10: note: in expansion of macro 'SCM_I_CONSP' guile30-3.0.9-build/guile-3.0.9/libguile/posix.c: scope_hint: In function 'do_spawn' guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1531:16: note: in expansion of macro 'scm_to_int' guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:123:41: note: in definition of macro 'SCM_VALIDATE_PAIR' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:61:31: note: in expansion of macro 'SCM_GC_CELL_OBJECT' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:63:30: note: in expansion of macro 'SCM_CELL_OBJECT' guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:71:56: note: in expansion of macro 'SCM_CELL_OBJECT_1' guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:198:10: note: in expansion of macro 'SCM_CDR' guile30-3.0.9-build/guile-3.0.9/libguile/posix.c: scope_hint: In function 'do_spawn' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:427:35: note: in expansion of macro 'SCM_IMP' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:467:4: note: in expansion of macro 'SCM_NIMP' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/ports.h:52:23: note: in expansion of macro 'SCM_HAS_TYP7' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:46:4: note: in expansion of macro 'SCM_PORTP' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:47:26: note: in expansion of macro 'SCM_FPORTP' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:49:29: note: in expansion of macro 'SCM_OPFPORTP' guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1545:9: note: in expansion of macro 'SCM_OPOUTFPORTP' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:427:35: note: in expansion of macro 'SCM_IMP' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:467:4: note: in expansion of macro 'SCM_NIMP' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/ports.h:52:23: note: in expansion of macro 'SCM_HAS_TYP7' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:46:4: note: in expansion of macro 'SCM_PORTP' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:47:26: note: in expansion of macro 'SCM_FPORTP' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:48:28: note: in expansion of macro 'SCM_OPFPORTP' guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1549:21: note: in expansion of macro 'SCM_OPINFPORTP' # 1394| to 0, 1, 2 don't trample each other */ # 1395| # 1396|-> posix_spawn_file_actions_adddup2 (&actions, in, fd_slot[0]); # 1397| posix_spawn_file_actions_adddup2 (&actions, out, fd_slot[1]); # 1398| posix_spawn_file_actions_adddup2 (&actions, err, fd_slot[2]); Error: COMPILER_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/posix.c: scope_hint: In function 'do_spawn' guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1396:3: warning[-Wmaybe-uninitialized]: 'fd_slot' may be used uninitialized # 1396 | posix_spawn_file_actions_adddup2 (&actions, in, fd_slot[0]); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1382:7: note: 'fd_slot' declared here # 1382 | int fd_slot[3]; # | ^~~~~~~ # 1394| to 0, 1, 2 don't trample each other */ # 1395| # 1396|-> posix_spawn_file_actions_adddup2 (&actions, in, fd_slot[0]); # 1397| posix_spawn_file_actions_adddup2 (&actions, out, fd_slot[1]); # 1398| posix_spawn_file_actions_adddup2 (&actions, err, fd_slot[2]); Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1396:3: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value # 1394| to 0, 1, 2 don't trample each other */ # 1395| # 1396|-> posix_spawn_file_actions_adddup2 (&actions, in, fd_slot[0]); # 1397| posix_spawn_file_actions_adddup2 (&actions, out, fd_slot[1]); # 1398| posix_spawn_file_actions_adddup2 (&actions, err, fd_slot[2]); Error: COMPILER_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1397:3: warning[-Wmaybe-uninitialized]: 'fd_slot' may be used uninitialized # 1397 | posix_spawn_file_actions_adddup2 (&actions, out, fd_slot[1]); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1382:7: note: 'fd_slot' declared here # 1382 | int fd_slot[3]; # | ^~~~~~~ # 1395| # 1396| posix_spawn_file_actions_adddup2 (&actions, in, fd_slot[0]); # 1397|-> posix_spawn_file_actions_adddup2 (&actions, out, fd_slot[1]); # 1398| posix_spawn_file_actions_adddup2 (&actions, err, fd_slot[2]); # 1399| posix_spawn_file_actions_adddup2 (&actions, fd_slot[0], 0); Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1397:3: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value # 1395| # 1396| posix_spawn_file_actions_adddup2 (&actions, in, fd_slot[0]); # 1397|-> posix_spawn_file_actions_adddup2 (&actions, out, fd_slot[1]); # 1398| posix_spawn_file_actions_adddup2 (&actions, err, fd_slot[2]); # 1399| posix_spawn_file_actions_adddup2 (&actions, fd_slot[0], 0); Error: COMPILER_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1398:3: warning[-Wmaybe-uninitialized]: 'fd_slot' may be used uninitialized # 1398 | posix_spawn_file_actions_adddup2 (&actions, err, fd_slot[2]); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1382:7: note: 'fd_slot' declared here # 1382 | int fd_slot[3]; # | ^~~~~~~ # 1396| posix_spawn_file_actions_adddup2 (&actions, in, fd_slot[0]); # 1397| posix_spawn_file_actions_adddup2 (&actions, out, fd_slot[1]); # 1398|-> posix_spawn_file_actions_adddup2 (&actions, err, fd_slot[2]); # 1399| posix_spawn_file_actions_adddup2 (&actions, fd_slot[0], 0); # 1400| posix_spawn_file_actions_adddup2 (&actions, fd_slot[1], 1); Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:1398:3: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value # 1396| posix_spawn_file_actions_adddup2 (&actions, in, fd_slot[0]); # 1397| posix_spawn_file_actions_adddup2 (&actions, out, fd_slot[1]); # 1398|-> posix_spawn_file_actions_adddup2 (&actions, err, fd_slot[2]); # 1399| posix_spawn_file_actions_adddup2 (&actions, fd_slot[0], 0); # 1400| posix_spawn_file_actions_adddup2 (&actions, fd_slot[1], 1); Error: COMPILER_WARNING (CWE-252): guile30-3.0.9-build/guile-3.0.9/libguile/posix.c: scope_hint: In function 'scm_nice' guile30-3.0.9-build/guile-3.0.9/libguile/posix.c:2091:3: warning[-Wunused-result]: ignoring return value of 'nice' declared with attribute 'warn_unused_result' # 2091 | nice (scm_to_int (incr)); # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 2089| from "prio-NZERO", so an error must be detected from errno changed */ # 2090| errno = 0; # 2091|-> nice (scm_to_int (incr)); # 2092| if (errno != 0) # 2093| SCM_SYSERROR; Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/print.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/print.c:948: error[uninitvar]: Uninitialized variable: num_buf # 946| { # 947| char num_buf[SCM_INTBUFLEN]; # 948|-> scm_lfwrite (num_buf, scm_iint2str (n, radix, num_buf), port); # 949| } # 950| Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/print.c:955: error[uninitvar]: Uninitialized variable: num_buf # 953| { # 954| char num_buf[SCM_INTBUFLEN]; # 955|-> scm_lfwrite (num_buf, scm_iuint2str (n, radix, num_buf), port); # 956| } # 957| Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/print.c:1159:3: warning[deadcode.DeadStores]: Value stored to 'p' is never read # 1157| SCM_VALIDATE_REST_ARGUMENT (args); # 1158| # 1159|-> p = 0; # 1160| start = 0; # 1161| end = scm_i_string_length (message); Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/procprop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/sort.c:65: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/quicksort.i.c: scope_hint: In function 'quicksort' guile30-3.0.9-build/guile-3.0.9/libguile/quicksort.i.c:54:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*top.lo' guile30-3.0.9-build/guile-3.0.9/libguile/quicksort.i.c:149:17: note: in expansion of macro 'POP' guile30-3.0.9-build/guile-3.0.9/libguile/smob.h:29: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/threads.h:29: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/async.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/sort.c:44: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/sort.c:456:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/sort.c:410:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:438:27: note: in expansion of macro 'SCM_IMP' guile30-3.0.9-build/guile-3.0.9/libguile/pairs.h:182:10: note: in expansion of macro 'SCM_I_CONSP' guile30-3.0.9-build/guile-3.0.9/libguile/sort.c: scope_hint: In function 'quicksort' guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/sort.c:74:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/quicksort.i.c:58:1: note: in expansion of macro 'NAME' guile30-3.0.9-build/guile-3.0.9/libguile/quicksort.i.c:76:14: note: in expansion of macro 'STACK_NOT_EMPTY' guile30-3.0.9-build/guile-3.0.9/libguile/quicksort.i.c:149:17: note: in expansion of macro 'POP' guile30-3.0.9-build/guile-3.0.9/libguile/quicksort.i.c:149:17: note: in expansion of macro 'POP' # 52| #define STACK_SIZE (8 * sizeof (size_t)) /* assume 8 bit char */ # 53| #define PUSH(low, high) ((void) ((top->lo = (low)), (top->hi = (high)), ++top)) # 54|-> #define POP(low, high) ((void) (--top, (low = top->lo), (high = top->hi))) # 55| #define STACK_NOT_EMPTY (stack < top) # 56| Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/r6rs-ports.c:251:4: warning[deadcode.DeadStores]: Value stored to 'result' is never read # 249| { # 250| if (SCM_LIKELY (scm_is_true (stream->set_position_x))) # 251|-> result = scm_call_1 (stream->set_position_x, scm_from_off_t (offset)); # 252| else # 253| scm_wrong_type_arg_msg (FUNC_NAME, 0, port, Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/rdelim.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/read.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/read.c:363:32: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c' # 361| { # 362| ans = scm_read_expression (port); # 363|-> if (terminating_char != (c = flush_ws (port, FUNC_NAME))) # 364| scm_i_input_error (FUNC_NAME, port, "missing close paren", # 365| SCM_EOL); Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/regex-posix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): guile30-3.0.9-build/guile-3.0.9/libguile/boolean.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/procs.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/threads.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/async.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:36: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c: scope_hint: In function 'scm_redirect_port' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:176:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'ans' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:599:33: note: in expansion of macro 'SCM_PACK' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:117:10: note: in expansion of macro 'SCM_UNSPECIFIED' guile30-3.0.9-build/guile-3.0.9/libguile/procs.h:26: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/error.h:106:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:110:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:54:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:92:3: note: in expansion of macro 'SCM_VALIDATE_OPFPORT' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:24: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/config.h:1962:34: note: in definition of macro '__builtin_expect' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:44:12: note: in expansion of macro 'SCM_UNLIKELY' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:106:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:426:38: note: in expansion of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:427:35: note: in expansion of macro 'SCM_IMP' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:467:4: note: in expansion of macro 'SCM_NIMP' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/ports.h:52:23: note: in expansion of macro 'SCM_HAS_TYP7' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:46:4: note: in expansion of macro 'SCM_PORTP' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:47:26: note: in expansion of macro 'SCM_FPORTP' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:106:22: note: in expansion of macro 'SCM_OPFPORTP' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:110:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:54:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:93:3: note: in expansion of macro 'SCM_VALIDATE_OPFPORT' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:106:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:110:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:54:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:93:3: note: in expansion of macro 'SCM_VALIDATE_OPFPORT' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:41: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:43:28: note: in expansion of macro 'SCM_FSTREAM' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:94:11: note: in expansion of macro 'SCM_FPORT_FDES' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:26: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:101:11: note: in expansion of macro 'SCM_OUTPUT_PORT_P' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:115:35: note: in expansion of macro 'SCM_PORT' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:599:33: note: in expansion of macro 'SCM_PACK' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:117:10: note: in expansion of macro 'SCM_UNSPECIFIED' # 174| /* There is no typechecking on SCM_PACK, since all kinds of types # 175| (unsigned long, void*) go in SCM_PACK. */ # 176|-> # define SCM_PACK(x) ((SCM) (x)) # 177| # 178| #else Error: GCC_ANALYZER_WARNING (CWE-775): guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c: scope_hint: In function 'scm_dup2' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:176:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'rv' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:599:33: note: in expansion of macro 'SCM_PACK' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:184:10: note: in expansion of macro 'SCM_UNSPECIFIED' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:599:33: note: in expansion of macro 'SCM_PACK' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:184:10: note: in expansion of macro 'SCM_UNSPECIFIED' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:599:33: note: in expansion of macro 'SCM_PACK' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:184:10: note: in expansion of macro 'SCM_UNSPECIFIED' # 174| /* There is no typechecking on SCM_PACK, since all kinds of types # 175| (unsigned long, void*) go in SCM_PACK. */ # 176|-> # define SCM_PACK(x) ((SCM) (x)) # 177| # 178| #else Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/scmsigs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): guile30-3.0.9-build/guile-3.0.9/libguile/script.c: scope_hint: In function 'scm_get_meta_args' guile30-3.0.9-build/guile-3.0.9/libguile/script.c:164:28: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*<unknown>, "r")' # 162| if (len >= size) # 163| { # 164|-> size = (size + 1) * 2; # 165| buf = realloc0 (buf, size); # 166| if (! buf) Error: GCC_ANALYZER_WARNING (CWE-401): guile30-3.0.9-build/guile-3.0.9/libguile/script.c:164:28: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*<unknown>, "r")' # 162| if (len >= size) # 163| { # 164|-> size = (size + 1) * 2; # 165| buf = realloc0 (buf, size); # 166| if (! buf) Error: GCC_ANALYZER_WARNING (CWE-775): guile30-3.0.9-build/guile-3.0.9/libguile/script.c:185:14: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*<unknown>, "r")' # 183| through. */ # 184| case ' ': # 185|-> buf[len] = '\0'; # 186| return buf; # 187| Error: GCC_ANALYZER_WARNING (CWE-401): guile30-3.0.9-build/guile-3.0.9/libguile/script.c:185:14: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*<unknown>, "r")' # 183| through. */ # 184| case ' ': # 185|-> buf[len] = '\0'; # 186| return buf; # 187| Error: GCC_ANALYZER_WARNING (CWE-775): guile30-3.0.9-build/guile-3.0.9/libguile/script.c:235:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*<unknown>, "r")' # 233| nargc--; /* to compensate for replacement of '\\' */ # 234| while (1) # 235|-> switch (getc (f)) # 236| { # 237| case EOF: Error: GCC_ANALYZER_WARNING (CWE-401): guile30-3.0.9-build/guile-3.0.9/libguile/script.c:235:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*<unknown>, "r")' # 233| nargc--; /* to compensate for replacement of '\\' */ # 234| while (1) # 235|-> switch (getc (f)) # 236| { # 237| case EOF: Error: GCC_ANALYZER_WARNING (CWE-126): guile30-3.0.9-build/guile-3.0.9/libguile/socket.c: scope_hint: In function 'scm_getsockopt' guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:536:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read guile30-3.0.9-build/guile-3.0.9/libguile/chars.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/print.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/arrays.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:59: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/error.h:106:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:110:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:54:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:523:3: note: in expansion of macro 'SCM_VALIDATE_OPFPORT' guile30-3.0.9-build/guile-3.0.9/libguile/array-handle.h:27: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/uniform.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/bytevectors.h:28: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:61: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:524:12: note: in expansion of macro 'scm_to_int' guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:536:14: note: read of 8 bytes from after the end of 'optval' # └─────────────────────────────────┘ # ^ # 534| struct timeval *opt_time = (struct timeval *) &optval; # 535| # 536|-> return scm_cons (scm_from_long (opt_time->tv_sec), # 537| scm_from_long (opt_time->tv_usec)); # 538| } Error: COMPILER_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:536:47: warning[-Warray-bounds=]: array subscript 'struct timeval[0]' is partly outside array bounds of 'union scm_t_getsockopt_result[1]' # 536 | return scm_cons (scm_from_long (opt_time->tv_sec), # | ^~ guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:516:27: note: object 'optval' of size 8 # 516 | scm_t_getsockopt_result optval; # | ^~~~~~ # 534| struct timeval *opt_time = (struct timeval *) &optval; # 535| # 536|-> return scm_cons (scm_from_long (opt_time->tv_sec), # 537| scm_from_long (opt_time->tv_usec)); # 538| } Error: COMPILER_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/socket.c: scope_hint: In function 'scm_getsockopt' guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:537:47: warning[-Warray-bounds=]: array subscript 'struct timeval[0]' is partly outside array bounds of 'union scm_t_getsockopt_result[1]' # 537 | scm_from_long (opt_time->tv_usec)); # | ^~ guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:516:27: note: object 'optval' of size 8 # 516 | scm_t_getsockopt_result optval; # | ^~~~~~ # 535| # 536| return scm_cons (scm_from_long (opt_time->tv_sec), # 537|-> scm_from_long (opt_time->tv_usec)); # 538| } # 539| #endif Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:1039:3: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 1037| { # 1038| SCM result = SCM_EOL; # 1039|-> short int fam = ((struct sockaddr *) address)->sa_family; # 1040| # 1041| switch (fam) Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/socket.c:1098:7: warning[deadcode.DeadStores]: Value stored to 'result' is never read # 1096| #endif # 1097| default: # 1098|-> result = SCM_UNSPECIFIED; # 1099| scm_misc_error (proc, "unrecognised address family: ~A", # 1100| scm_list_1 (scm_from_int (fam))); Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/sort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/srfi-1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/srfi-13.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/srfi-13.c:2945: error[uninitvar]: Uninitialized variable: result # 2943| scm_i_substring (s2, cstart2, cend2), # 2944| scm_i_substring (s1, cend1, scm_i_string_length (s1))))); # 2945|-> return result; # 2946| } # 2947| #undef FUNC_NAME Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/srfi-14.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/srfi-60.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/srfi-60.c:182: error[uninitvar]: Uninitialized variable: zn # 180| if (cc == 0) # 181| return n; # 182|-> scm_integer_init_set_mpz_z (scm_bignum (n), zn); # 183| } # 184| else Error: CPPCHECK_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/srfi-60.c:272: error[uninitvar]: Uninitialized variable: b # 270| if (ee - ss <= 1) # 271| return n; # 272|-> scm_integer_init_set_mpz_z (scm_bignum (n), b); # 273| } # 274| else Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/stacks.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/stime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: scope_hint: In function 'unistring_escapes_to_r6rs_escapes' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:1857:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '<unknown>' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:47:47: note: in expansion of macro 'SCM_GC_CELL_OBJECT' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:55:29: note: in expansion of macro 'SCM_GC_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:59:28: note: in expansion of macro 'SCM_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:253:40: note: in expansion of macro 'SCM_CELL_WORD_3' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:530:10: note: in expansion of macro 'STRING_LENGTH' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: scope_hint: In function 'unistring_escapes_to_r6rs_escapes' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:47:47: note: in expansion of macro 'SCM_GC_CELL_OBJECT' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:55:29: note: in expansion of macro 'SCM_GC_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:56:28: note: in expansion of macro 'SCM_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:93:34: note: in expansion of macro 'SCM_CELL_WORD_0' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:548:11: note: in expansion of macro 'STRINGBUF_WIDE' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: scope_hint: In function 'unistring_escapes_to_r6rs_escapes' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:592:27: note: in expansion of macro 'STRINGBUF_CHARS' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:46: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:2281:11: note: in expansion of macro 'SCM_R6RS_ESCAPES_P' # 1855| # 1856| /* Add the R6RS hex escape initial sequence. */ # 1857|-> after[j] = '\\'; # 1858| after[j + 1] = 'x'; # 1859| Error: GCC_ANALYZER_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:1892:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '<unknown>' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:47:47: note: in expansion of macro 'SCM_GC_CELL_OBJECT' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:55:29: note: in expansion of macro 'SCM_GC_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:59:28: note: in expansion of macro 'SCM_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:253:40: note: in expansion of macro 'SCM_CELL_WORD_3' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:530:10: note: in expansion of macro 'STRING_LENGTH' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: scope_hint: In function 'unistring_escapes_to_r6rs_escapes' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:47:47: note: in expansion of macro 'SCM_GC_CELL_OBJECT' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:55:29: note: in expansion of macro 'SCM_GC_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:56:28: note: in expansion of macro 'SCM_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:93:34: note: in expansion of macro 'SCM_CELL_WORD_0' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:548:11: note: in expansion of macro 'STRINGBUF_WIDE' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: scope_hint: In function 'unistring_escapes_to_r6rs_escapes' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:592:27: note: in expansion of macro 'STRINGBUF_CHARS' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:2281:11: note: in expansion of macro 'SCM_R6RS_ESCAPES_P' # 1890| else # 1891| { # 1892|-> after[j] = before[i]; # 1893| i++; # 1894| j++; Error: GCC_ANALYZER_WARNING (CWE-688): guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:1898:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL '<unknown>' where non-null expected guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:47:47: note: in expansion of macro 'SCM_GC_CELL_OBJECT' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:55:29: note: in expansion of macro 'SCM_GC_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:59:28: note: in expansion of macro 'SCM_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:253:40: note: in expansion of macro 'SCM_CELL_WORD_3' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:530:10: note: in expansion of macro 'STRING_LENGTH' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: scope_hint: In function 'unistring_escapes_to_r6rs_escapes' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:47:47: note: in expansion of macro 'SCM_GC_CELL_OBJECT' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:55:29: note: in expansion of macro 'SCM_GC_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:56:28: note: in expansion of macro 'SCM_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:93:34: note: in expansion of macro 'SCM_CELL_WORD_0' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:548:11: note: in expansion of macro 'STRINGBUF_WIDE' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: scope_hint: In function 'unistring_escapes_to_r6rs_escapes' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:592:27: note: in expansion of macro 'STRINGBUF_CHARS' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:2281:11: note: in expansion of macro 'SCM_R6RS_ESCAPES_P' <built-in>: note: argument 2 of '__builtin_memcpy' must be non-null # 1896| } # 1897| *lenp = j; # 1898|-> memcpy (before, after, j); # 1899| if (malloc_p) # 1900| free (after); Error: GCC_ANALYZER_WARNING (CWE-457): guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:1898:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '<unknown>' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:47:47: note: in expansion of macro 'SCM_GC_CELL_OBJECT' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:55:29: note: in expansion of macro 'SCM_GC_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:59:28: note: in expansion of macro 'SCM_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:253:40: note: in expansion of macro 'SCM_CELL_WORD_3' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:530:10: note: in expansion of macro 'STRING_LENGTH' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: scope_hint: In function 'unistring_escapes_to_r6rs_escapes' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:47:47: note: in expansion of macro 'SCM_GC_CELL_OBJECT' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:55:29: note: in expansion of macro 'SCM_GC_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:56:28: note: in expansion of macro 'SCM_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:93:34: note: in expansion of macro 'SCM_CELL_WORD_0' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:548:11: note: in expansion of macro 'STRINGBUF_WIDE' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: scope_hint: In function 'unistring_escapes_to_r6rs_escapes' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:592:27: note: in expansion of macro 'STRINGBUF_CHARS' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:2281:11: note: in expansion of macro 'SCM_R6RS_ESCAPES_P' # 1896| } # 1897| *lenp = j; # 1898|-> memcpy (before, after, j); # 1899| if (malloc_p) # 1900| free (after); Error: GCC_ANALYZER_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: scope_hint: In function 'normalize_str' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:2355:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '<unknown>' guile30-3.0.9-build/guile-3.0.9/libguile/generalized-vectors.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:40: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:2407:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:47:47: note: in expansion of macro 'SCM_GC_CELL_OBJECT' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:55:29: note: in expansion of macro 'SCM_GC_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/gc.h:56:28: note: in expansion of macro 'SCM_CELL_WORD' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:93:34: note: in expansion of macro 'SCM_CELL_WORD_0' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:548:11: note: in expansion of macro 'STRINGBUF_WIDE' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c: scope_hint: In function 'normalize_str' guile30-3.0.9-build/guile-3.0.9/libguile/strings.c:592:27: note: in expansion of macro 'STRINGBUF_CHARS' # 2353| # 2354| for (i = 0; i < len; i ++) # 2355|-> w_str[i] = (unsigned char) buf[i]; # 2356| w_str[len] = 0; # 2357| } Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/strings.h:290: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 288| scm_is_string (SCM x) # 289| { # 290|-> return SCM_HAS_TYP7 (x, scm_tc7_string); # 291| } # 292| Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/struct.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-685): guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:387:12: warning[-Wanalyzer-va-list-exhausted]: 'foo' has no more arguments (0 consumed) guile30-3.0.9-build/guile-3.0.9/config.h:1962:34: note: in definition of macro '__builtin_expect' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:44:12: note: in expansion of macro 'SCM_UNLIKELY' guile30-3.0.9-build/guile-3.0.9/libguile/strings.h:300:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:504:3: note: in expansion of macro 'SCM_VALIDATE_STRING' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/strings.h:290:10: note: in expansion of macro 'SCM_HAS_TYP7' guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:66:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/config.h:1962:34: note: in definition of macro '__builtin_expect' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:44:12: note: in expansion of macro 'SCM_UNLIKELY' guile30-3.0.9-build/guile-3.0.9/libguile/strings.h:300:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:84:3: note: in expansion of macro 'SCM_VALIDATE_STRING' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/strings.h:290:10: note: in expansion of macro 'SCM_HAS_TYP7' guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:66:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:26: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:739:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/config.h:1962:34: note: in definition of macro '__builtin_expect' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:40:12: note: in expansion of macro 'SCM_UNLIKELY' guile30-3.0.9-build/guile-3.0.9/libguile/struct.h:124:5: note: in expansion of macro 'SCM_ASSERT' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:621:5: note: in expansion of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/boolean.h:55:4: note: in expansion of macro 'SCM_MATCHES_BITS_IN_COMMON' guile30-3.0.9-build/guile-3.0.9/libguile/boolean.h:59:27: note: in expansion of macro 'scm_is_false_or_nil' guile30-3.0.9-build/guile-3.0.9/libguile/boolean.h:60:28: note: in expansion of macro 'scm_is_false' guile30-3.0.9-build/guile-3.0.9/libguile/struct.h:124:17: note: in expansion of macro 'scm_is_true' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:744:3: note: in expansion of macro 'SCM_VALIDATE_VTABLE' guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:299:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/config.h:1962:34: note: in definition of macro '__builtin_expect' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:40:12: note: in expansion of macro 'SCM_UNLIKELY' guile30-3.0.9-build/guile-3.0.9/libguile/struct.h:124:5: note: in expansion of macro 'SCM_ASSERT' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:621:5: note: in expansion of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/boolean.h:55:4: note: in expansion of macro 'SCM_MATCHES_BITS_IN_COMMON' guile30-3.0.9-build/guile-3.0.9/libguile/boolean.h:59:27: note: in expansion of macro 'scm_is_false_or_nil' guile30-3.0.9-build/guile-3.0.9/libguile/boolean.h:60:28: note: in expansion of macro 'scm_is_false' guile30-3.0.9-build/guile-3.0.9/libguile/struct.h:124:17: note: in expansion of macro 'scm_is_true' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:744:3: note: in expansion of macro 'SCM_VALIDATE_VTABLE' guile30-3.0.9-build/guile-3.0.9/libguile/struct.h:124:5: note: in expansion of macro 'SCM_ASSERT' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:744:3: note: in expansion of macro 'SCM_VALIDATE_VTABLE' guile30-3.0.9-build/guile-3.0.9/config.h:1962:34: note: in definition of macro '__builtin_expect' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:44:12: note: in expansion of macro 'SCM_UNLIKELY' guile30-3.0.9-build/guile-3.0.9/libguile/symbols.h:42:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:426:38: note: in expansion of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:427:35: note: in expansion of macro 'SCM_IMP' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:467:4: note: in expansion of macro 'SCM_NIMP' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/symbols.h:33:38: note: in expansion of macro 'SCM_HAS_TYP7' guile30-3.0.9-build/guile-3.0.9/libguile/symbols.h:42:22: note: in expansion of macro 'scm_is_symbol' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:745:3: note: in expansion of macro 'SCM_VALIDATE_SYMBOL' guile30-3.0.9-build/guile-3.0.9/libguile/symbols.h:42:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:745:3: note: in expansion of macro 'SCM_VALIDATE_SYMBOL' guile30-3.0.9-build/guile-3.0.9/libguile/eval.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:39: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/struct.h:140:42: note: in expansion of macro 'SCM_STRUCT_SLOT_SET' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:746:3: note: in expansion of macro 'SCM_SET_VTABLE_NAME' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:66:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/config.h:1962:34: note: in definition of macro '__builtin_expect' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:44:12: note: in expansion of macro 'SCM_UNLIKELY' guile30-3.0.9-build/guile-3.0.9/libguile/strings.h:300:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:84:3: note: in expansion of macro 'SCM_VALIDATE_STRING' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/strings.h:290:10: note: in expansion of macro 'SCM_HAS_TYP7' guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:66:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:379:3: note: in expansion of macro 'SCM_ASSERT' # 385| { # 386| v[i] = init; # 387|-> init = va_arg (foo, scm_t_bits); # 388| } # 389| va_end (foo); Error: GCC_ANALYZER_WARNING (CWE-685): guile30-3.0.9-build/guile-3.0.9/libguile/struct.c: scope_hint: In function 'scm_c_make_struct' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:387:12: warning[-Wanalyzer-va-list-exhausted]: 'foo' has no more arguments (1 consumed) guile30-3.0.9-build/guile-3.0.9/libguile/smob.h:29: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/threads.h:29: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/async.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:33: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:534:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/alist.h:25: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:32: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:66:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:22: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/config.h:1962:34: note: in definition of macro '__builtin_expect' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:44:12: note: in expansion of macro 'SCM_UNLIKELY' guile30-3.0.9-build/guile-3.0.9/libguile/strings.h:300:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:84:3: note: in expansion of macro 'SCM_VALIDATE_STRING' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/strings.h:290:10: note: in expansion of macro 'SCM_HAS_TYP7' guile30-3.0.9-build/guile-3.0.9/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE' guile30-3.0.9-build/guile-3.0.9/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:66:1: note: in expansion of macro 'SCM_DEFINE' guile30-3.0.9-build/guile-3.0.9/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK' guile30-3.0.9-build/guile-3.0.9/libguile/struct.c:379:3: note: in expansion of macro 'SCM_ASSERT' # 385| { # 386| v[i] = init; # 387|-> init = va_arg (foo, scm_t_bits); # 388| } # 389| va_end (foo); Error: GCC_ANALYZER_WARNING (CWE-775): guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:49: included_from: Included from here. guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c: scope_hint: In function 'scm_primitive_move_to_fdes' guile30-3.0.9-build/guile-3.0.9/libguile/syscalls.h:38:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'rv' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:280:3: note: in expansion of macro 'SCM_SYSCALL' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:106:5: note: in expansion of macro 'SCM_ASSERT_TYPE' guile30-3.0.9-build/guile-3.0.9/libguile/error.h:110:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' guile30-3.0.9-build/guile-3.0.9/libguile/fports.h:54:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:266:3: note: in expansion of macro 'SCM_VALIDATE_OPFPORT' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:280:3: note: in expansion of macro 'SCM_SYSCALL' guile30-3.0.9-build/guile-3.0.9/libguile/ioext.c:280:3: note: in expansion of macro 'SCM_SYSCALL' # 36| } \ # 37| } \ # 38|-> while (errno == EINTR) # 39| # 40| Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/threads.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/threads.c:409:17: warning[deadcode.DeadStores]: Value stored to 't_ptr' during its initialization is never read # 407| /* The switcheroo. */ # 408| { # 409|-> scm_thread *t_ptr = &t; # 410| # 411| GC_disable (); Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/values.h:30: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 28| scm_is_values (SCM x) # 29| { # 30|-> return SCM_HAS_TYP7 (x, scm_tc7_values); # 31| } # 32| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/values.h:37: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 35| scm_i_nvalues (SCM x) # 36| { # 37|-> return SCM_CELL_WORD_0 (x) >> 8; # 38| } # 39| Error: CPPCHECK_WARNING (CWE-476): guile30-3.0.9-build/guile-3.0.9/libguile/values.h:43: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0 # 41| scm_i_value_ref (SCM x, size_t n) # 42| { # 43|-> return SCM_CELL_OBJECT (x, n+1); # 44| } # 45| #endif Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/vectors.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/vm.c:725:14: warning[deadcode.DeadStores]: Value stored to 'slot' during its initialization is never read # 723| { # 724| ptrdiff_t nlocals = SCM_FRAME_NUM_LOCALS (fp, sp); # 725|-> size_t slot = nlocals - 1; # 726| for (slot = nlocals - 1; sp < fp; sp++, slot--) # 727| { Error: CPPCHECK_WARNING: guile30-3.0.9-build/guile-3.0.9/libguile/weak-set.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.