Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
guile30-3.0.7-build/guile-3.0.7/lib/malloca.c: scope_hint: In function 'mmalloca'
guile30-3.0.7-build/guile-3.0.7/lib/malloca.c:65:31: warning[-Wanalyzer-malloc-leak]: leak of 'mem'
#   63|                So, the memory range [p, p+n) lies in the allocated memory range
#   64|                [mem, mem + nplus).  */
#   65|->           ((small_t *) p)[-1] = p - mem;
#   66|             /* p ≡ sa_alignment_max mod 2*sa_alignment_max.  */
#   67|             return p;

Error: CPPCHECK_WARNING (CWE-401): [#def2]
guile30-3.0.7-build/guile-3.0.7/lib/malloca.c:67: error[memleak]: Memory leak: mem
#   65|             ((small_t *) p)[-1] = p - mem;
#   66|             /* p ≡ sa_alignment_max mod 2*sa_alignment_max.  */
#   67|->           return p;
#   68|           }
#   69|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c:986:14: warning[-Wanalyzer-malloc-leak]: leak of '*set.elems'
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c:1287:7: note: in expansion of macro '__glibc_unlikely'
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c:1300:19: note: in expansion of macro 're_realloc'
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c:1300:19: note: in expansion of macro 're_realloc'
guile30-3.0.7-build/guile-3.0.7/lib/cdefs.h:443:52: note: in definition of macro '__glibc_likely'
guile30-3.0.7-build/guile-3.0.7/lib/cdefs.h:443:52: note: in definition of macro '__glibc_likely'
#  984|     set->alloc = 1;
#  985|     set->nelem = 1;
#  986|->   set->elems = re_malloc (Idx, 1);
#  987|     if (__glibc_unlikely (set->elems == NULL))
#  988|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c:986:14: warning[-Wanalyzer-malloc-leak]: leak of 'new_nodes.elems'
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.h:46:26: note: in expansion of macro 'assume'
guile30-3.0.7-build/guile-3.0.7/lib/regexec.c:3080:3: note: in expansion of macro 'DEBUG_ASSERT'
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c:973:16: note: in expansion of macro 're_malloc'
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c:1287:7: note: in expansion of macro '__glibc_unlikely'
guile30-3.0.7-build/guile-3.0.7/lib/cdefs.h:443:52: note: in definition of macro '__glibc_likely'
guile30-3.0.7-build/guile-3.0.7/lib/cdefs.h:443:52: note: in definition of macro '__glibc_likely'
#  984|     set->alloc = 1;
#  985|     set->nelem = 1;
#  986|->   set->elems = re_malloc (Idx, 1);
#  987|     if (__glibc_unlikely (set->elems == NULL))
#  988|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
guile30-3.0.7-build/guile-3.0.7/lib/regex.c:72: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c: scope_hint: In function 're_node_set_init_1'
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c:986:14: warning[-Wanalyzer-malloc-leak]: leak of 'union_set.elems'
guile30-3.0.7-build/guile-3.0.7/lib/regex.c:74: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.h:40: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/lib/regex.c:70: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.h:46:26: note: in expansion of macro 'assume'
guile30-3.0.7-build/guile-3.0.7/lib/regexec.c:3011:7: note: in expansion of macro 'DEBUG_ASSERT'
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c:1205:25: note: in expansion of macro 're_realloc'
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c:1205:25: note: in expansion of macro 're_realloc'
guile30-3.0.7-build/guile-3.0.7/lib/libc-config.h:157: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/lib/regex.c:23: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/lib/cdefs.h:443:52: note: in definition of macro '__glibc_likely'
guile30-3.0.7-build/guile-3.0.7/lib/cdefs.h:443:52: note: in definition of macro '__glibc_likely'
#  984|     set->alloc = 1;
#  985|     set->nelem = 1;
#  986|->   set->elems = re_malloc (Idx, 1);
#  987|     if (__glibc_unlikely (set->elems == NULL))
#  988|       {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def6]
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c: scope_hint: In function 're_node_set_merge'
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.c:1215:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
guile30-3.0.7-build/guile-3.0.7/lib/regex_internal.h:46:26: note: in expansion of macro 'assume'
guile30-3.0.7-build/guile-3.0.7/lib/regexec.c:3011:7: note: in expansion of macro 'DEBUG_ASSERT'
guile30-3.0.7-build/guile-3.0.7/lib/cdefs.h:442:52: note: in definition of macro '__glibc_unlikely'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
# 1213|       {
# 1214|         dest->nelem = src->nelem;
# 1215|->       memcpy (dest->elems, src->elems, src->nelem * sizeof (Idx));
# 1216|         return REG_NOERROR;
# 1217|       }

Error: CLANG_WARNING: [#def7]
guile30-3.0.7-build/guile-3.0.7/lib/regex.c:74: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/lib/regexec.c:819:5: warning[deadcode.DeadStores]: Value stored to 'match_last' is never read
#  817|   		  if (__glibc_unlikely (err != REG_NOMATCH))
#  818|   		    goto free_return;
#  819|-> 		  match_last = -1;
#  820|   		}
#  821|   	      else

Error: CPPCHECK_WARNING (CWE-476): [#def8]
guile30-3.0.7-build/guile-3.0.7/libguile/arrays.c:799: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  797|         if (n != 0)
#  798|   	errmsg = "too few elements for array dimension ~a, need ~a";
#  799|->       if (!scm_is_null (lst))
#  800|   	errmsg = "too many elements for array dimension ~a, want ~a";
#  801|         if (errmsg)

Error: CPPCHECK_WARNING (CWE-476): [#def9]
guile30-3.0.7-build/guile-3.0.7/libguile/arrays.c:837: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  835|   	{
#  836|   	  shape = scm_cons (scm_length (row), shape);
#  837|-> 	  if (k > 0 && !scm_is_null (row))
#  838|   	    row = scm_car (row);
#  839|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def10]
guile30-3.0.7-build/guile-3.0.7/libguile/arrays.c:859: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  857|   	  if (scm_is_pair (shape_spec))
#  858|   	    {
#  859|-> 	      if (!scm_is_null (row))
#  860|   		row = scm_car (row);
#  861|   	    }

Error: CPPCHECK_WARNING (CWE-476): [#def11]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:171: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  169|     int rv;
#  170|   
#  171|->   object = SCM_COERCE_OUTPORT (object);
#  172|   
#  173|   #ifdef HAVE_FCHOWN

Error: CPPCHECK_WARNING (CWE-476): [#def12]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:174: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  172|   
#  173|   #ifdef HAVE_FCHOWN
#  174|->   if (scm_is_integer (object) || (SCM_OPFPORTP (object)))
#  175|       {
#  176|         int fdes = (SCM_OPFPORTP (object)?

Error: CPPCHECK_WARNING (CWE-476): [#def13]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:176: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  174|     if (scm_is_integer (object) || (SCM_OPFPORTP (object)))
#  175|       {
#  176|->       int fdes = (SCM_OPFPORTP (object)?
#  177|   		  SCM_FPORT_FDES (object) : scm_to_int (object));
#  178|   

Error: CPPCHECK_WARNING (CWE-476): [#def14]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:177: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  175|       {
#  176|         int fdes = (SCM_OPFPORTP (object)?
#  177|-> 		  SCM_FPORT_FDES (object) : scm_to_int (object));
#  178|   
#  179|         SCM_SYSCALL (rv = fchown (fdes, scm_to_int (owner), scm_to_int (group)));

Error: CPPCHECK_WARNING (CWE-476): [#def15]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:208: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  206|   
#  207|     iflags = SCM_NUM2INT (2, flags);
#  208|->   imode = SCM_NUM2INT_DEF (3, mode, 0666);
#  209|     STRING_SYSCALL (path, c_path, fd = open_or_open64 (c_path, iflags, imode));
#  210|     if (fd == -1)

Error: CPPCHECK_WARNING (CWE-476): [#def16]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:290: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  288|     int fd;
#  289|   
#  290|->   fd_or_port = SCM_COERCE_OUTPORT (fd_or_port);
#  291|   
#  292|     if (SCM_PORTP (fd_or_port))

Error: CPPCHECK_WARNING (CWE-476): [#def17]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:292: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  290|     fd_or_port = SCM_COERCE_OUTPORT (fd_or_port);
#  291|   
#  292|->   if (SCM_PORTP (fd_or_port))
#  293|       return scm_close_port (fd_or_port);
#  294|     fd = scm_to_int (fd_or_port);

Error: CPPCHECK_WARNING (CWE-476): [#def18]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:349: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  347|     SCM ans = scm_c_make_vector (18, SCM_UNSPECIFIED);
#  348|     
#  349|->   SCM_SIMPLE_VECTOR_SET(ans, 0, scm_from_ulong (stat_temp->st_dev));
#  350|     SCM_SIMPLE_VECTOR_SET(ans, 1, scm_from_ino_t_or_ino64_t (stat_temp->st_ino));
#  351|     SCM_SIMPLE_VECTOR_SET(ans, 2, scm_from_ulong (stat_temp->st_mode));

Error: CPPCHECK_WARNING (CWE-476): [#def19]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:350: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  348|     
#  349|     SCM_SIMPLE_VECTOR_SET(ans, 0, scm_from_ulong (stat_temp->st_dev));
#  350|->   SCM_SIMPLE_VECTOR_SET(ans, 1, scm_from_ino_t_or_ino64_t (stat_temp->st_ino));
#  351|     SCM_SIMPLE_VECTOR_SET(ans, 2, scm_from_ulong (stat_temp->st_mode));
#  352|     SCM_SIMPLE_VECTOR_SET(ans, 3, scm_from_ulong (stat_temp->st_nlink));

Error: CPPCHECK_WARNING (CWE-476): [#def20]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:351: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  349|     SCM_SIMPLE_VECTOR_SET(ans, 0, scm_from_ulong (stat_temp->st_dev));
#  350|     SCM_SIMPLE_VECTOR_SET(ans, 1, scm_from_ino_t_or_ino64_t (stat_temp->st_ino));
#  351|->   SCM_SIMPLE_VECTOR_SET(ans, 2, scm_from_ulong (stat_temp->st_mode));
#  352|     SCM_SIMPLE_VECTOR_SET(ans, 3, scm_from_ulong (stat_temp->st_nlink));
#  353|     SCM_SIMPLE_VECTOR_SET(ans, 4, scm_from_ulong (stat_temp->st_uid));

Error: CPPCHECK_WARNING (CWE-476): [#def21]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:352: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  350|     SCM_SIMPLE_VECTOR_SET(ans, 1, scm_from_ino_t_or_ino64_t (stat_temp->st_ino));
#  351|     SCM_SIMPLE_VECTOR_SET(ans, 2, scm_from_ulong (stat_temp->st_mode));
#  352|->   SCM_SIMPLE_VECTOR_SET(ans, 3, scm_from_ulong (stat_temp->st_nlink));
#  353|     SCM_SIMPLE_VECTOR_SET(ans, 4, scm_from_ulong (stat_temp->st_uid));
#  354|     SCM_SIMPLE_VECTOR_SET(ans, 5, scm_from_ulong (stat_temp->st_gid));

Error: CPPCHECK_WARNING (CWE-476): [#def22]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:353: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  351|     SCM_SIMPLE_VECTOR_SET(ans, 2, scm_from_ulong (stat_temp->st_mode));
#  352|     SCM_SIMPLE_VECTOR_SET(ans, 3, scm_from_ulong (stat_temp->st_nlink));
#  353|->   SCM_SIMPLE_VECTOR_SET(ans, 4, scm_from_ulong (stat_temp->st_uid));
#  354|     SCM_SIMPLE_VECTOR_SET(ans, 5, scm_from_ulong (stat_temp->st_gid));
#  355|   #ifdef HAVE_STRUCT_STAT_ST_RDEV

Error: CPPCHECK_WARNING (CWE-476): [#def23]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:354: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  352|     SCM_SIMPLE_VECTOR_SET(ans, 3, scm_from_ulong (stat_temp->st_nlink));
#  353|     SCM_SIMPLE_VECTOR_SET(ans, 4, scm_from_ulong (stat_temp->st_uid));
#  354|->   SCM_SIMPLE_VECTOR_SET(ans, 5, scm_from_ulong (stat_temp->st_gid));
#  355|   #ifdef HAVE_STRUCT_STAT_ST_RDEV
#  356|     SCM_SIMPLE_VECTOR_SET(ans, 6, scm_from_ulong (stat_temp->st_rdev));

Error: CPPCHECK_WARNING (CWE-476): [#def24]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:356: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  354|     SCM_SIMPLE_VECTOR_SET(ans, 5, scm_from_ulong (stat_temp->st_gid));
#  355|   #ifdef HAVE_STRUCT_STAT_ST_RDEV
#  356|->   SCM_SIMPLE_VECTOR_SET(ans, 6, scm_from_ulong (stat_temp->st_rdev));
#  357|   #else
#  358|     SCM_SIMPLE_VECTOR_SET(ans, 6, SCM_BOOL_F);

Error: CPPCHECK_WARNING (CWE-476): [#def25]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:360: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  358|     SCM_SIMPLE_VECTOR_SET(ans, 6, SCM_BOOL_F);
#  359|   #endif
#  360|->   SCM_SIMPLE_VECTOR_SET(ans, 7, scm_from_off_t_or_off64_t (stat_temp->st_size));
#  361|     SCM_SIMPLE_VECTOR_SET(ans, 8, scm_from_ulong (stat_temp->st_atime));
#  362|     SCM_SIMPLE_VECTOR_SET(ans, 9, scm_from_ulong (stat_temp->st_mtime));

Error: CPPCHECK_WARNING (CWE-476): [#def26]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:361: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  359|   #endif
#  360|     SCM_SIMPLE_VECTOR_SET(ans, 7, scm_from_off_t_or_off64_t (stat_temp->st_size));
#  361|->   SCM_SIMPLE_VECTOR_SET(ans, 8, scm_from_ulong (stat_temp->st_atime));
#  362|     SCM_SIMPLE_VECTOR_SET(ans, 9, scm_from_ulong (stat_temp->st_mtime));
#  363|     SCM_SIMPLE_VECTOR_SET(ans, 10, scm_from_ulong (stat_temp->st_ctime));

Error: CPPCHECK_WARNING (CWE-476): [#def27]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:362: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  360|     SCM_SIMPLE_VECTOR_SET(ans, 7, scm_from_off_t_or_off64_t (stat_temp->st_size));
#  361|     SCM_SIMPLE_VECTOR_SET(ans, 8, scm_from_ulong (stat_temp->st_atime));
#  362|->   SCM_SIMPLE_VECTOR_SET(ans, 9, scm_from_ulong (stat_temp->st_mtime));
#  363|     SCM_SIMPLE_VECTOR_SET(ans, 10, scm_from_ulong (stat_temp->st_ctime));
#  364|   #ifdef HAVE_STRUCT_STAT_ST_BLKSIZE

Error: CPPCHECK_WARNING (CWE-476): [#def28]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:363: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  361|     SCM_SIMPLE_VECTOR_SET(ans, 8, scm_from_ulong (stat_temp->st_atime));
#  362|     SCM_SIMPLE_VECTOR_SET(ans, 9, scm_from_ulong (stat_temp->st_mtime));
#  363|->   SCM_SIMPLE_VECTOR_SET(ans, 10, scm_from_ulong (stat_temp->st_ctime));
#  364|   #ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
#  365|     SCM_SIMPLE_VECTOR_SET(ans, 11, scm_from_ulong (stat_temp->st_blksize));

Error: CPPCHECK_WARNING (CWE-476): [#def29]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:365: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  363|     SCM_SIMPLE_VECTOR_SET(ans, 10, scm_from_ulong (stat_temp->st_ctime));
#  364|   #ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
#  365|->   SCM_SIMPLE_VECTOR_SET(ans, 11, scm_from_ulong (stat_temp->st_blksize));
#  366|   #else
#  367|     SCM_SIMPLE_VECTOR_SET(ans, 11, scm_from_ulong (4096L));

Error: CPPCHECK_WARNING (CWE-476): [#def30]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:370: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  368|   #endif
#  369|   #ifdef HAVE_STRUCT_STAT_ST_BLOCKS
#  370|->   SCM_SIMPLE_VECTOR_SET(ans, 12, scm_from_blkcnt_t_or_blkcnt64_t (stat_temp->st_blocks));
#  371|   #else
#  372|     SCM_SIMPLE_VECTOR_SET(ans, 12, SCM_BOOL_F);

Error: CPPCHECK_WARNING (CWE-476): [#def31]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:378: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  376|       
#  377|       if (S_ISREG (mode))
#  378|->       SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_regular);
#  379|       else if (S_ISDIR (mode))
#  380|         SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_directory);

Error: CPPCHECK_WARNING (CWE-476): [#def32]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:380: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  378|         SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_regular);
#  379|       else if (S_ISDIR (mode))
#  380|->       SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_directory);
#  381|   #ifdef S_ISLNK
#  382|       /* systems without symlinks probably don't have S_ISLNK */

Error: CPPCHECK_WARNING (CWE-476): [#def33]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:384: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  382|       /* systems without symlinks probably don't have S_ISLNK */
#  383|       else if (S_ISLNK (mode))
#  384|->       SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_symlink);
#  385|   #endif
#  386|       else if (S_ISBLK (mode))

Error: CPPCHECK_WARNING (CWE-476): [#def34]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:387: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  385|   #endif
#  386|       else if (S_ISBLK (mode))
#  387|->       SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_block_special);
#  388|       else if (S_ISCHR (mode))
#  389|         SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_char_special);

Error: CPPCHECK_WARNING (CWE-476): [#def35]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:389: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  387|         SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_block_special);
#  388|       else if (S_ISCHR (mode))
#  389|->       SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_char_special);
#  390|       else if (S_ISFIFO (mode))
#  391|         SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_fifo);

Error: CPPCHECK_WARNING (CWE-476): [#def36]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:391: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  389|         SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_char_special);
#  390|       else if (S_ISFIFO (mode))
#  391|->       SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_fifo);
#  392|   #ifdef S_ISSOCK
#  393|       else if (S_ISSOCK (mode))

Error: CPPCHECK_WARNING (CWE-476): [#def37]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:394: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  392|   #ifdef S_ISSOCK
#  393|       else if (S_ISSOCK (mode))
#  394|->       SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_sock);
#  395|   #endif
#  396|       else

Error: CPPCHECK_WARNING (CWE-476): [#def38]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:397: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  395|   #endif
#  396|       else
#  397|->       SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_unknown);
#  398|   
#  399|       SCM_SIMPLE_VECTOR_SET(ans, 14, scm_from_int ((~S_IFMT) & mode));

Error: CPPCHECK_WARNING (CWE-476): [#def39]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:399: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  397|         SCM_SIMPLE_VECTOR_SET(ans, 13, scm_sym_unknown);
#  398|   
#  399|->     SCM_SIMPLE_VECTOR_SET(ans, 14, scm_from_int ((~S_IFMT) & mode));
#  400|   
#  401|       /* the layout of the bits in ve[14] is intended to be portable.

Error: CPPCHECK_WARNING (CWE-476): [#def40]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:433: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  431|     }  
#  432|   #ifdef HAVE_STRUCT_STAT_ST_ATIM
#  433|->   SCM_SIMPLE_VECTOR_SET(ans, 15, scm_from_long (stat_temp->st_atim.tv_nsec));
#  434|   #else
#  435|     SCM_SIMPLE_VECTOR_SET(ans, 15, SCM_I_MAKINUM (0));

Error: CPPCHECK_WARNING (CWE-476): [#def41]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:438: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  436|   #endif
#  437|   #ifdef HAVE_STRUCT_STAT_ST_MTIM
#  438|->   SCM_SIMPLE_VECTOR_SET(ans, 16, scm_from_long (stat_temp->st_mtim.tv_nsec));
#  439|   #else
#  440|     SCM_SIMPLE_VECTOR_SET(ans, 16, SCM_I_MAKINUM (0));

Error: CPPCHECK_WARNING (CWE-476): [#def42]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:443: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  441|   #endif
#  442|   #ifdef HAVE_STRUCT_STAT_ST_CTIM
#  443|->   SCM_SIMPLE_VECTOR_SET(ans, 17, scm_from_ulong (stat_temp->st_ctim.tv_sec));
#  444|   #else
#  445|     SCM_SIMPLE_VECTOR_SET(ans, 17, SCM_I_MAKINUM (0));

Error: CPPCHECK_WARNING (CWE-476): [#def43]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:454: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  452|   is_file_name_separator (SCM c)
#  453|   {
#  454|->   if (scm_is_eq (c, SCM_MAKE_CHAR ('/')))
#  455|       return 1;
#  456|   #ifdef __MINGW32__

Error: CPPCHECK_WARNING (CWE-476): [#def44]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:545: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  543|     else
#  544|       {
#  545|->       object = SCM_COERCE_OUTPORT (object);
#  546|         SCM_VALIDATE_OPFPORT (1, object);
#  547|         fdes = SCM_FPORT_FDES (object);

Error: CPPCHECK_WARNING (CWE-476): [#def45]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:546: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  544|       {
#  545|         object = SCM_COERCE_OUTPORT (object);
#  546|->       SCM_VALIDATE_OPFPORT (1, object);
#  547|         fdes = SCM_FPORT_FDES (object);
#  548|         SCM_SYSCALL (rv = fstat_or_fstat64 (fdes, &stat_temp));

Error: CPPCHECK_WARNING (CWE-476): [#def46]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:547: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  545|         object = SCM_COERCE_OUTPORT (object);
#  546|         SCM_VALIDATE_OPFPORT (1, object);
#  547|->       fdes = SCM_FPORT_FDES (object);
#  548|         SCM_SYSCALL (rv = fstat_or_fstat64 (fdes, &stat_temp));
#  549|       }

Error: CPPCHECK_WARNING (CWE-476): [#def47]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:553: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  551|     if (rv == -1)
#  552|       {
#  553|->       if (SCM_UNBNDP (exception_on_error) || scm_is_true (exception_on_error))
#  554|           {
#  555|             int en = errno;

Error: CPPCHECK_WARNING (CWE-476): [#def48]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:657: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  655|         size_t cur;
#  656|   
#  657|->       element = SCM_COERCE_OUTPORT (element);
#  658|         SCM_ASSERT (SCM_OPFPORTP (element), element, pos, "select");
#  659|         if (pos == SCM_ARG1)

Error: CPPCHECK_WARNING (CWE-476): [#def49]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:658: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  656|   
#  657|         element = SCM_COERCE_OUTPORT (element);
#  658|->       SCM_ASSERT (SCM_OPFPORTP (element), element, pos, "select");
#  659|         if (pos == SCM_ARG1)
#  660|   	{

Error: CPPCHECK_WARNING (CWE-476): [#def50]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:662: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  660|   	{
#  661|   	  /* Check whether port has input buffered.  */
#  662|-> 	  if (scm_port_buffer_can_take (SCM_PORT (element)->read_buf, &cur) > 0)
#  663|   	    use_buf = 1;
#  664|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def51]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:669: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  667|   	  /* Check whether port's output buffer has room.  > 1 since
#  668|                writing the last byte in the buffer causes flush.  */
#  669|-> 	  if (scm_port_buffer_can_put (SCM_PORT (element)->write_buf, &cur) > 1)
#  670|   	    use_buf = 1;
#  671|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def52]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:672: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  670|   	    use_buf = 1;
#  671|   	}
#  672|->       fd = use_buf ? -1 : SCM_FPORT_FDES (element);
#  673|       }
#  674|     if (fd == -1)

Error: CPPCHECK_WARNING (CWE-476): [#def53]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:693: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  691|     if (scm_is_vector (list_or_vec))
#  692|       {
#  693|->       int i = SCM_SIMPLE_VECTOR_LENGTH (list_or_vec);
#  694|         
#  695|         while (--i >= 0)

Error: CPPCHECK_WARNING (CWE-476): [#def54]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:698: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  696|   	{
#  697|   	  int fd = set_element (set, ports_ready,
#  698|-> 				SCM_SIMPLE_VECTOR_REF (list_or_vec, i), pos);
#  699|   
#  700|   	  if (fd > max_fd)

Error: CPPCHECK_WARNING (CWE-476): [#def55]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:706: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  704|     else
#  705|       {
#  706|->       while (!SCM_NULL_OR_NIL_P (list_or_vec))
#  707|   	{
#  708|   	  int fd = set_element (set, ports_ready, SCM_CAR (list_or_vec), pos);

Error: CPPCHECK_WARNING (CWE-476): [#def56]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:708: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  706|         while (!SCM_NULL_OR_NIL_P (list_or_vec))
#  707|   	{
#  708|-> 	  int fd = set_element (set, ports_ready, SCM_CAR (list_or_vec), pos);
#  709|   
#  710|   	  if (fd > max_fd)

Error: CPPCHECK_WARNING (CWE-476): [#def57]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:712: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  710|   	  if (fd > max_fd)
#  711|   	    max_fd = fd;
#  712|-> 	  list_or_vec = SCM_CDR (list_or_vec);
#  713|   	}
#  714|       }

Error: CPPCHECK_WARNING (CWE-476): [#def58]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:732: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  730|     else
#  731|       {
#  732|->       fd = SCM_FPORT_FDES (SCM_COERCE_OUTPORT (element));
#  733|       }
#  734|     if (FD_ISSET (fd, set))

Error: CPPCHECK_WARNING (CWE-476): [#def59]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:754: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  752|     if (scm_is_vector (list_or_vec))
#  753|       {
#  754|->       int i = SCM_SIMPLE_VECTOR_LENGTH (list_or_vec);
#  755|   
#  756|         while (--i >= 0)

Error: CPPCHECK_WARNING (CWE-476): [#def60]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:759: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  757|   	{
#  758|   	  answer_list = get_element (set,
#  759|-> 				     SCM_SIMPLE_VECTOR_REF (list_or_vec, i),
#  760|   				     answer_list);
#  761|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def61]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:767: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  765|       {
#  766|         /* list_or_vec must be a list.  */
#  767|->       while (!SCM_NULL_OR_NIL_P (list_or_vec))
#  768|   	{
#  769|   	  answer_list = get_element (set, SCM_CAR (list_or_vec), answer_list);

Error: CPPCHECK_WARNING (CWE-476): [#def62]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:769: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  767|         while (!SCM_NULL_OR_NIL_P (list_or_vec))
#  768|   	{
#  769|-> 	  answer_list = get_element (set, SCM_CAR (list_or_vec), answer_list);
#  770|   	  list_or_vec = SCM_CDR (list_or_vec);
#  771|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def63]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:770: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  768|   	{
#  769|   	  answer_list = get_element (set, SCM_CAR (list_or_vec), answer_list);
#  770|-> 	  list_or_vec = SCM_CDR (list_or_vec);
#  771|   	}
#  772|         return answer_list;

Error: CPPCHECK_WARNING (CWE-476): [#def64]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:827: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  825|     if (scm_is_vector (reads))
#  826|       {
#  827|->       read_count = SCM_SIMPLE_VECTOR_LENGTH (reads);
#  828|       }
#  829|     else

Error: CPPCHECK_WARNING (CWE-476): [#def65]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:836: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  834|     if (scm_is_vector (writes))
#  835|       {
#  836|->       write_count = SCM_SIMPLE_VECTOR_LENGTH (writes);
#  837|       }
#  838|     else

Error: CPPCHECK_WARNING (CWE-476): [#def66]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:845: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  843|     if (scm_is_vector (excepts))
#  844|       {
#  845|->       except_count = SCM_SIMPLE_VECTOR_LENGTH (excepts);
#  846|       }
#  847|     else

Error: CPPCHECK_WARNING (CWE-476): [#def67]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:873: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  871|     /* if there's a port with a ready buffer, don't block, just
#  872|        check for ready file descriptors.  */
#  873|->   if (!scm_is_null (read_ports_ready) || !scm_is_null (write_ports_ready))
#  874|       {
#  875|         timeout.tv_sec = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def68]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:879: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  877|         time_ptr = &timeout;
#  878|       }
#  879|->   else if (SCM_UNBNDP (secs) || scm_is_false (secs))
#  880|       time_ptr = 0;
#  881|     else

Error: CPPCHECK_WARNING (CWE-476): [#def69]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:886: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  884|   	{
#  885|   	  timeout.tv_sec = scm_to_ulong (secs);
#  886|-> 	  if (SCM_UNBNDP (usecs))
#  887|   	    timeout.tv_usec = 0;
#  888|   	  else

Error: CPPCHECK_WARNING (CWE-476): [#def70]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:895: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  893|   	  double fl = scm_to_double (secs);
#  894|   
#  895|-> 	  if (!SCM_UNBNDP (usecs))
#  896|   	    SCM_WRONG_TYPE_ARG (4, secs);
#  897|   	  if (fl > LONG_MAX)

Error: CPPCHECK_WARNING (CWE-476): [#def71]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:965: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  963|     int ivalue;
#  964|   
#  965|->   object = SCM_COERCE_OUTPORT (object);
#  966|   
#  967|     if (SCM_OPFPORTP (object))

Error: CPPCHECK_WARNING (CWE-476): [#def72]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:967: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  965|     object = SCM_COERCE_OUTPORT (object);
#  966|   
#  967|->   if (SCM_OPFPORTP (object))
#  968|       fdes = SCM_FPORT_FDES (object);
#  969|     else

Error: CPPCHECK_WARNING (CWE-476): [#def73]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:968: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  966|   
#  967|     if (SCM_OPFPORTP (object))
#  968|->     fdes = SCM_FPORT_FDES (object);
#  969|     else
#  970|       fdes = scm_to_int (object);

Error: CPPCHECK_WARNING (CWE-476): [#def74]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:972: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  970|       fdes = scm_to_int (object);
#  971|   
#  972|->   if (SCM_UNBNDP (value))
#  973|       ivalue = 0;
#  974|     else

Error: CPPCHECK_WARNING (CWE-476): [#def75]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:995: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  993|     int fdes;
#  994|   
#  995|->   object = SCM_COERCE_OUTPORT (object);
#  996|   
#  997|     if (SCM_OPFPORTP (object))

Error: CPPCHECK_WARNING (CWE-476): [#def76]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:997: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  995|     object = SCM_COERCE_OUTPORT (object);
#  996|   
#  997|->   if (SCM_OPFPORTP (object))
#  998|       {
#  999|         scm_flush (object);

Error: CPPCHECK_WARNING (CWE-476): [#def77]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1000: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  998|       {
#  999|         scm_flush (object);
# 1000|->       fdes = SCM_FPORT_FDES (object);
# 1001|       }
# 1002|     else

Error: CPPCHECK_WARNING (CWE-476): [#def78]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1147: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1145|     int in_fd, out_fd;
# 1146|   
# 1147|->   VALIDATE_FD_OR_PORT (out_fd, out, 1);
# 1148|     VALIDATE_FD_OR_PORT (in_fd, in, 2);
# 1149|     c_count = scm_to_size_t (count);

Error: CPPCHECK_WARNING (CWE-476): [#def79]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1148: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1146|   
# 1147|     VALIDATE_FD_OR_PORT (out_fd, out, 1);
# 1148|->   VALIDATE_FD_OR_PORT (in_fd, in, 2);
# 1149|     c_count = scm_to_size_t (count);
# 1150|     c_offset = SCM_UNBNDP (offset) ? 0 : scm_to_off_t (offset);

Error: CPPCHECK_WARNING (CWE-476): [#def80]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1150: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1148|     VALIDATE_FD_OR_PORT (in_fd, in, 2);
# 1149|     c_count = scm_to_size_t (count);
# 1150|->   c_offset = SCM_UNBNDP (offset) ? 0 : scm_to_off_t (offset);
# 1151|   
# 1152|   #if defined HAVE_SYS_SENDFILE_H && defined HAVE_SENDFILE

Error: CPPCHECK_WARNING (CWE-476): [#def81]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1158: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1156|       off_t *offset_ptr;
# 1157|   
# 1158|->     offset_ptr = SCM_UNBNDP (offset) ? NULL : &c_offset;
# 1159|   
# 1160|       /* On Linux, when OUT_FD is a file, everything is transferred at once and

Error: CPPCHECK_WARNING (CWE-476): [#def82]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1192: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1190|       int reached_eof = 0;
# 1191|   
# 1192|->     if (!SCM_UNBNDP (offset))
# 1193|         {
# 1194|   	if (SCM_PORTP (in))

Error: CPPCHECK_WARNING (CWE-476): [#def83]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1194: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1192|       if (!SCM_UNBNDP (offset))
# 1193|         {
# 1194|-> 	if (SCM_PORTP (in))
# 1195|   	  scm_seek (in, scm_from_off_t (c_offset), scm_from_int (SEEK_SET));
# 1196|   	else

Error: CPPCHECK_WARNING (CWE-476): [#def84]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1286: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1284|     mode_t c_mode;
# 1285|   
# 1286|->   c_mode = SCM_UNBNDP (mode) ? 0777 : scm_to_uint (mode);
# 1287|   
# 1288|     STRING_SYSCALL (path, c_path, rv = mkdir (c_path, c_mode));

Error: CPPCHECK_WARNING (CWE-476): [#def85]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1410: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1408|     int rv;
# 1409|   
# 1410|->   object = SCM_COERCE_OUTPORT (object);
# 1411|   
# 1412|   #if HAVE_FCHMOD

Error: CPPCHECK_WARNING (CWE-476): [#def86]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1413: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1411|   
# 1412|   #if HAVE_FCHMOD
# 1413|->   if (scm_is_integer (object) || SCM_OPFPORTP (object))
# 1414|       {
# 1415|         int fdes;

Error: CPPCHECK_WARNING (CWE-476): [#def87]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1419: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1417|   	fdes = scm_to_int (object);
# 1418|         else
# 1419|-> 	fdes = SCM_FPORT_FDES (object);
# 1420|         SCM_SYSCALL (rv = fchmod (fdes, scm_to_int (mode)));
# 1421|       }

Error: CPPCHECK_WARNING (CWE-476): [#def88]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1443: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1441|   {
# 1442|     mode_t mask;
# 1443|->   if (SCM_UNBNDP (mode))
# 1444|       {
# 1445|         mask = umask (0);

Error: CPPCHECK_WARNING (CWE-476): [#def89]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1496: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1494|   
# 1495|     SCM_VALIDATE_STRING (SCM_ARG1, tmpl);
# 1496|->   if (!SCM_UNBNDP (mode))
# 1497|       SCM_VALIDATE_STRING (SCM_ARG2, mode);
# 1498|   

Error: CPPCHECK_WARNING (CWE-476): [#def90]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1503: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1501|     c_tmpl = scm_to_locale_string (tmpl);
# 1502|     scm_dynwind_free (c_tmpl);
# 1503|->   if (SCM_UNBNDP (mode))
# 1504|       {
# 1505|         /* mkostemp will create a read/write file and add on additional

Error: CPPCHECK_WARNING (CWE-476): [#def91]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1695: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1693|     scm_dynwind_end ();
# 1694|   
# 1695|->   if (!SCM_UNBNDP (suffix) &&
# 1696|         scm_is_true (scm_string_suffix_p (suffix, filename,
# 1697|                                           SCM_UNDEFINED, SCM_UNDEFINED,

Error: CPPCHECK_WARNING (CWE-476): [#def92]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1696: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1694|   
# 1695|     if (!SCM_UNBNDP (suffix) &&
# 1696|->       scm_is_true (scm_string_suffix_p (suffix, filename,
# 1697|                                           SCM_UNDEFINED, SCM_UNDEFINED,
# 1698|                                           SCM_UNDEFINED, SCM_UNDEFINED)))

Error: CPPCHECK_WARNING (CWE-476): [#def93]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1773: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1771|   	 instance.  */
# 1772|         if (len > 0
# 1773|-> 	  && scm_is_true (scm_string_prefix_p (dir, scanon,
# 1774|   					       SCM_UNDEFINED, SCM_UNDEFINED,
# 1775|   					       SCM_UNDEFINED, SCM_UNDEFINED))

Error: CPPCHECK_WARNING (CWE-476): [#def94]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1811: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1809|   #define FUNC_NAME s_scm_directory_stream_p
# 1810|   {
# 1811|->   return scm_from_bool (SCM_DIRP (obj));
# 1812|   }
# 1813|   #undef FUNC_NAME

Error: CPPCHECK_WARNING (CWE-476): [#def95]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1832: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1830|       SCM_SYSERROR;
# 1831|   
# 1832|->   SCM_RETURN_NEWSMOB2 (scm_tc16_dir | (SCM_DIR_FLAG_OPEN << 16),
# 1833|   		       ds, SCM_UNPACK (SCM_PACK_POINTER (mutex)));
# 1834|   }

Error: CPPCHECK_WARNING (CWE-476): [#def96]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1849: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1847|     struct dirent_or_dirent64 *rdent;
# 1848|   
# 1849|->   SCM_VALIDATE_DIR (1, port);
# 1850|     if (!SCM_DIR_OPEN_P (port))
# 1851|       SCM_MISC_ERROR ("Directory ~S is not open.", scm_list_1 (port));

Error: CPPCHECK_WARNING (CWE-476): [#def97]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1850: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1848|   
# 1849|     SCM_VALIDATE_DIR (1, port);
# 1850|->   if (!SCM_DIR_OPEN_P (port))
# 1851|       SCM_MISC_ERROR ("Directory ~S is not open.", scm_list_1 (port));
# 1852|   

Error: CPPCHECK_WARNING (CWE-476): [#def98]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1853: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1851|       SCM_MISC_ERROR ("Directory ~S is not open.", scm_list_1 (port));
# 1852|   
# 1853|->   mutex = (scm_i_pthread_mutex_t *) SCM_SMOB_DATA_2 (port);
# 1854|   
# 1855|     scm_dynwind_begin (0);

Error: CPPCHECK_WARNING (CWE-476): [#def99]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1859: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1857|   
# 1858|     errno = 0;
# 1859|->   SCM_SYSCALL (rdent = readdir_or_readdir64 ((DIR *) SCM_SMOB_DATA_1 (port)));
# 1860|     if (errno != 0)
# 1861|       SCM_SYSERROR;

Error: CPPCHECK_WARNING (CWE-476): [#def100]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1881: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1879|     scm_i_pthread_mutex_t *mutex;
# 1880|   
# 1881|->   SCM_VALIDATE_DIR (1, port);
# 1882|     if (!SCM_DIR_OPEN_P (port))
# 1883|       SCM_MISC_ERROR ("Directory ~S is not open.", scm_list_1 (port));

Error: CPPCHECK_WARNING (CWE-476): [#def101]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1882: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1880|   
# 1881|     SCM_VALIDATE_DIR (1, port);
# 1882|->   if (!SCM_DIR_OPEN_P (port))
# 1883|       SCM_MISC_ERROR ("Directory ~S is not open.", scm_list_1 (port));
# 1884|   

Error: CPPCHECK_WARNING (CWE-476): [#def102]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1885: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1883|       SCM_MISC_ERROR ("Directory ~S is not open.", scm_list_1 (port));
# 1884|   
# 1885|->   mutex = (scm_i_pthread_mutex_t *) SCM_SMOB_DATA_2 (port);
# 1886|   
# 1887|     scm_i_pthread_mutex_lock (mutex);

Error: CPPCHECK_WARNING (CWE-476): [#def103]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1888: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1886|   
# 1887|     scm_i_pthread_mutex_lock (mutex);
# 1888|->   rewinddir ((DIR *) SCM_SMOB_DATA_1 (port));
# 1889|     scm_i_pthread_mutex_unlock (mutex);
# 1890|   

Error: CPPCHECK_WARNING (CWE-476): [#def104]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1902: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1900|   #define FUNC_NAME s_scm_closedir
# 1901|   {
# 1902|->   SCM_VALIDATE_DIR (1, port);
# 1903|   
# 1904|     if (SCM_DIR_OPEN_P (port))

Error: CPPCHECK_WARNING (CWE-476): [#def105]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1904: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1902|     SCM_VALIDATE_DIR (1, port);
# 1903|   
# 1904|->   if (SCM_DIR_OPEN_P (port))
# 1905|       {
# 1906|         int sts;

Error: CPPCHECK_WARNING (CWE-476): [#def106]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1908: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1906|         int sts;
# 1907|   
# 1908|->       SCM_SYSCALL (sts = closedir ((DIR *) SCM_SMOB_DATA_1 (port)));
# 1909|         if (sts != 0)
# 1910|   	SCM_SYSERROR;

Error: CPPCHECK_WARNING (CWE-476): [#def107]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1912: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1910|   	SCM_SYSERROR;
# 1911|   
# 1912|->       SCM_SET_SMOB_DATA_0 (port, scm_tc16_dir);
# 1913|       }
# 1914|   

Error: CPPCHECK_WARNING (CWE-476): [#def108]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1925: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1923|   {
# 1924|     scm_puts ("#<", port);
# 1925|->   if (!SCM_DIR_OPEN_P (exp))
# 1926|       scm_puts ("closed: ", port);
# 1927|     scm_puts ("directory stream ", port);

Error: CPPCHECK_WARNING (CWE-476): [#def109]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1928: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1926|       scm_puts ("closed: ", port);
# 1927|     scm_puts ("directory stream ", port);
# 1928|->   scm_uintprint (SCM_SMOB_DATA_1 (exp), 16, port);
# 1929|     scm_putc ('>', port);
# 1930|     return 1;

Error: CPPCHECK_WARNING (CWE-476): [#def110]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1939: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1937|     scm_i_pthread_mutex_t *mutex;
# 1938|   
# 1939|->   if (SCM_DIR_OPEN_P (p))
# 1940|       closedir ((DIR *) SCM_SMOB_DATA_1 (p));
# 1941|   

Error: CPPCHECK_WARNING (CWE-476): [#def111]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1940: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1938|   
# 1939|     if (SCM_DIR_OPEN_P (p))
# 1940|->     closedir ((DIR *) SCM_SMOB_DATA_1 (p));
# 1941|   
# 1942|     mutex = (scm_i_pthread_mutex_t *) SCM_SMOB_DATA_2 (p);

Error: CPPCHECK_WARNING (CWE-476): [#def112]
guile30-3.0.7-build/guile-3.0.7/libguile/filesys.c:1942: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
# 1940|       closedir ((DIR *) SCM_SMOB_DATA_1 (p));
# 1941|   
# 1942|->   mutex = (scm_i_pthread_mutex_t *) SCM_SMOB_DATA_2 (p);
# 1943|     scm_i_pthread_mutex_destroy (mutex);
# 1944|   

Error: CPPCHECK_WARNING (CWE-476): [#def113]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:61: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#   59|   {
#   60|     scm_puts ("#<frame ", port);
#   61|->   scm_uintprint (SCM_UNPACK (frame), 16, port);
#   62|     if (scm_module_system_booted_p)
#   63|       {

Error: CPPCHECK_WARNING (CWE-476): [#def114]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:66: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#   64|         SCM name = scm_frame_procedure_name (frame);
#   65|   
#   66|->       if (scm_is_true (name))
#   67|           {
#   68|             scm_putc (' ', port);

Error: CPPCHECK_WARNING (CWE-476): [#def115]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:99: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#   97|   #define FUNC_NAME "frame-stack-top"
#   98|   {
#   99|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  100|   
#  101|     return frame_stack_top (SCM_VM_FRAME_KIND (frame),

Error: CPPCHECK_WARNING (CWE-476): [#def116]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:101: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#   99|     SCM_VALIDATE_VM_FRAME (1, frame);
#  100|   
#  101|->   return frame_stack_top (SCM_VM_FRAME_KIND (frame),
#  102|                             SCM_VM_FRAME_DATA (frame));
#  103|   }

Error: CPPCHECK_WARNING (CWE-476): [#def117]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:102: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  100|   
#  101|     return frame_stack_top (SCM_VM_FRAME_KIND (frame),
#  102|->                           SCM_VM_FRAME_DATA (frame));
#  103|   }
#  104|   #undef FUNC_NAME

Error: CPPCHECK_WARNING (CWE-476): [#def118]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:114: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  112|   #define FUNC_NAME s_scm_frame_p
#  113|   {
#  114|->   return scm_from_bool (SCM_VM_FRAME_P (obj));
#  115|   }
#  116|   #undef FUNC_NAME

Error: CPPCHECK_WARNING (CWE-476): [#def119]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:152: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  150|     scm_i_pthread_once (&once, init_frame_procedure_name_var);
#  151|   
#  152|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  153|   
#  154|     return scm_call_1 (scm_variable_ref (frame_procedure_name_var), frame);

Error: CPPCHECK_WARNING (CWE-476): [#def120]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:175: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  173|     scm_i_pthread_once (&once, init_frame_arguments_var);
#  174|   
#  175|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  176|   
#  177|     return scm_call_1 (scm_variable_ref (frame_arguments_var), frame);

Error: CPPCHECK_WARNING (CWE-476): [#def121]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:196: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  194|     scm_i_pthread_once (&once, init_frame_call_representation_var);
#  195|   
#  196|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  197|   
#  198|     return scm_call_1 (scm_variable_ref (frame_call_representation_var), frame);

Error: CPPCHECK_WARNING (CWE-476): [#def122]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:207: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  205|   #define FUNC_NAME s_scm_frame_source
#  206|   {
#  207|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  208|   
#  209|     return scm_find_source_for_addr (scm_frame_instruction_pointer (frame));

Error: CPPCHECK_WARNING (CWE-476): [#def123]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:220: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  218|     union scm_vm_stack_element *fp, *sp;
#  219|   
#  220|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  221|   
#  222|     fp = SCM_VM_FRAME_FP (frame);

Error: CPPCHECK_WARNING (CWE-476): [#def124]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:222: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  220|     SCM_VALIDATE_VM_FRAME (1, frame);
#  221|   
#  222|->   fp = SCM_VM_FRAME_FP (frame);
#  223|     sp = SCM_VM_FRAME_SP (frame);
#  224|   

Error: CPPCHECK_WARNING (CWE-476): [#def125]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:223: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  221|   
#  222|     fp = SCM_VM_FRAME_FP (frame);
#  223|->   sp = SCM_VM_FRAME_SP (frame);
#  224|   
#  225|     return scm_from_ptrdiff_t (SCM_FRAME_NUM_LOCALS (fp, sp));

Error: CPPCHECK_WARNING (CWE-476): [#def126]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:240: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  238|   scm_to_stack_item_representation (SCM x, const char *subr, int pos)
#  239|   {
#  240|->   if (scm_is_eq (x, scm_from_latin1_symbol ("scm")))
#  241|       return STACK_ITEM_SCM;
#  242|     if (scm_is_eq (x, scm_from_latin1_symbol ("f64")))

Error: CPPCHECK_WARNING (CWE-476): [#def127]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:242: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  240|     if (scm_is_eq (x, scm_from_latin1_symbol ("scm")))
#  241|       return STACK_ITEM_SCM;
#  242|->   if (scm_is_eq (x, scm_from_latin1_symbol ("f64")))
#  243|       return STACK_ITEM_F64;
#  244|     if (scm_is_eq (x, scm_from_latin1_symbol ("u64")))

Error: CPPCHECK_WARNING (CWE-476): [#def128]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:244: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  242|     if (scm_is_eq (x, scm_from_latin1_symbol ("f64")))
#  243|       return STACK_ITEM_F64;
#  244|->   if (scm_is_eq (x, scm_from_latin1_symbol ("u64")))
#  245|       return STACK_ITEM_U64;
#  246|     if (scm_is_eq (x, scm_from_latin1_symbol ("s64")))

Error: CPPCHECK_WARNING (CWE-476): [#def129]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:246: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  244|     if (scm_is_eq (x, scm_from_latin1_symbol ("u64")))
#  245|       return STACK_ITEM_U64;
#  246|->   if (scm_is_eq (x, scm_from_latin1_symbol ("s64")))
#  247|       return STACK_ITEM_S64;
#  248|   

Error: CPPCHECK_WARNING (CWE-476): [#def130]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:262: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  260|     enum stack_item_representation repr;
#  261|   
#  262|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  263|     SCM_VALIDATE_UINT_COPY (2, index, i);
#  264|     repr = scm_to_stack_item_representation (representation, FUNC_NAME, SCM_ARG3);

Error: CPPCHECK_WARNING (CWE-476): [#def131]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:266: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  264|     repr = scm_to_stack_item_representation (representation, FUNC_NAME, SCM_ARG3);
#  265|   
#  266|->   fp = SCM_VM_FRAME_FP (frame);
#  267|     sp = SCM_VM_FRAME_SP (frame);
#  268|   

Error: CPPCHECK_WARNING (CWE-476): [#def132]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:267: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  265|   
#  266|     fp = SCM_VM_FRAME_FP (frame);
#  267|->   sp = SCM_VM_FRAME_SP (frame);
#  268|   
#  269|     if (i < SCM_FRAME_NUM_LOCALS (fp, sp))

Error: CPPCHECK_WARNING (CWE-476): [#def133]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:300: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  298|     enum stack_item_representation repr;
#  299|   
#  300|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  301|     SCM_VALIDATE_UINT_COPY (2, index, i);
#  302|     repr = scm_to_stack_item_representation (representation, FUNC_NAME, SCM_ARG3);

Error: CPPCHECK_WARNING (CWE-476): [#def134]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:304: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  302|     repr = scm_to_stack_item_representation (representation, FUNC_NAME, SCM_ARG3);
#  303|   
#  304|->   fp = SCM_VM_FRAME_FP (frame);
#  305|     sp = SCM_VM_FRAME_SP (frame);
#  306|   

Error: CPPCHECK_WARNING (CWE-476): [#def135]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:305: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  303|   
#  304|     fp = SCM_VM_FRAME_FP (frame);
#  305|->   sp = SCM_VM_FRAME_SP (frame);
#  306|   
#  307|     if (i < SCM_FRAME_NUM_LOCALS (fp, sp))

Error: CPPCHECK_WARNING (CWE-476): [#def136]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:344: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  342|     size_t n;
#  343|   
#  344|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  345|   
#  346|     ip = SCM_VM_FRAME_IP (frame);

Error: CPPCHECK_WARNING (CWE-476): [#def137]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:346: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  344|     SCM_VALIDATE_VM_FRAME (1, frame);
#  345|   
#  346|->   ip = SCM_VM_FRAME_IP (frame);
#  347|     fp = SCM_VM_FRAME_FP (frame);
#  348|     sp = SCM_VM_FRAME_SP (frame);

Error: CPPCHECK_WARNING (CWE-476): [#def138]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:347: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  345|   
#  346|     ip = SCM_VM_FRAME_IP (frame);
#  347|->   fp = SCM_VM_FRAME_FP (frame);
#  348|     sp = SCM_VM_FRAME_SP (frame);
#  349|   

Error: CPPCHECK_WARNING (CWE-476): [#def139]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:348: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  346|     ip = SCM_VM_FRAME_IP (frame);
#  347|     fp = SCM_VM_FRAME_FP (frame);
#  348|->   sp = SCM_VM_FRAME_SP (frame);
#  349|   
#  350|     if ((*ip & 0xff) != scm_op_return_values)

Error: CPPCHECK_WARNING (CWE-476): [#def140]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:366: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  364|   #define FUNC_NAME s_scm_frame_address
#  365|   {
#  366|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  367|     return scm_from_ptrdiff_t (SCM_VM_FRAME_FP_OFFSET (frame));
#  368|   }

Error: CPPCHECK_WARNING (CWE-476): [#def141]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:367: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  365|   {
#  366|     SCM_VALIDATE_VM_FRAME (1, frame);
#  367|->   return scm_from_ptrdiff_t (SCM_VM_FRAME_FP_OFFSET (frame));
#  368|   }
#  369|   #undef FUNC_NAME

Error: CPPCHECK_WARNING (CWE-476): [#def142]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:376: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  374|   #define FUNC_NAME s_scm_frame_stack_pointer
#  375|   {
#  376|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  377|   
#  378|     return scm_from_ptrdiff_t (SCM_VM_FRAME_SP_OFFSET (frame));

Error: CPPCHECK_WARNING (CWE-476): [#def143]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:378: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  376|     SCM_VALIDATE_VM_FRAME (1, frame);
#  377|   
#  378|->   return scm_from_ptrdiff_t (SCM_VM_FRAME_SP_OFFSET (frame));
#  379|   }
#  380|   #undef FUNC_NAME

Error: CPPCHECK_WARNING (CWE-476): [#def144]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:387: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  385|   #define FUNC_NAME s_scm_frame_instruction_pointer
#  386|   {
#  387|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  388|   
#  389|     return scm_from_uintptr_t ((uintptr_t) SCM_VM_FRAME_IP (frame));

Error: CPPCHECK_WARNING (CWE-476): [#def145]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:389: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  387|     SCM_VALIDATE_VM_FRAME (1, frame);
#  388|   
#  389|->   return scm_from_uintptr_t ((uintptr_t) SCM_VM_FRAME_IP (frame));
#  390|   }
#  391|   #undef FUNC_NAME

Error: CPPCHECK_WARNING (CWE-476): [#def146]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:398: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  396|   #define FUNC_NAME s_scm_frame_return_address
#  397|   {
#  398|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  399|     return scm_from_uintptr_t ((uintptr_t) (SCM_FRAME_VIRTUAL_RETURN_ADDRESS
#  400|                                             (SCM_VM_FRAME_FP (frame))));

Error: CPPCHECK_WARNING (CWE-476): [#def147]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:399: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  397|   {
#  398|     SCM_VALIDATE_VM_FRAME (1, frame);
#  399|->   return scm_from_uintptr_t ((uintptr_t) (SCM_FRAME_VIRTUAL_RETURN_ADDRESS
#  400|                                             (SCM_VM_FRAME_FP (frame))));
#  401|   }

Error: CPPCHECK_WARNING (CWE-476): [#def148]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:409: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  407|   #define FUNC_NAME s_scm_frame_dynamic_link
#  408|   {
#  409|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  410|     /* fixme: munge fp if holder is a continuation */
#  411|     return scm_from_uintptr_t

Error: CPPCHECK_WARNING (CWE-476): [#def149]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:413: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  411|     return scm_from_uintptr_t
#  412|       ((uintptr_t)
#  413|->      SCM_FRAME_DYNAMIC_LINK (SCM_VM_FRAME_FP (frame)));
#  414|   }
#  415|   #undef FUNC_NAME

Error: CPPCHECK_WARNING (CWE-476): [#def150]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:453: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  451|     struct scm_frame tmp;
#  452|   
#  453|->   SCM_VALIDATE_VM_FRAME (1, frame);
#  454|   
#  455|     kind = SCM_VM_FRAME_KIND (frame);

Error: CPPCHECK_WARNING (CWE-476): [#def151]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:455: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  453|     SCM_VALIDATE_VM_FRAME (1, frame);
#  454|   
#  455|->   kind = SCM_VM_FRAME_KIND (frame);
#  456|     memcpy (&tmp, SCM_VM_FRAME_DATA (frame), sizeof tmp);
#  457|   

Error: CPPCHECK_WARNING (CWE-476): [#def152]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:456: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  454|   
#  455|     kind = SCM_VM_FRAME_KIND (frame);
#  456|->   memcpy (&tmp, SCM_VM_FRAME_DATA (frame), sizeof tmp);
#  457|   
#  458|     if (!scm_c_frame_previous (SCM_VM_FRAME_KIND (frame), &tmp))

Error: CPPCHECK_WARNING (CWE-476): [#def153]
guile30-3.0.7-build/guile-3.0.7/libguile/frames.c:458: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  456|     memcpy (&tmp, SCM_VM_FRAME_DATA (frame), sizeof tmp);
#  457|   
#  458|->   if (!scm_c_frame_previous (SCM_VM_FRAME_KIND (frame), &tmp))
#  459|       return SCM_BOOL_F;
#  460|   

Error: CPPCHECK_WARNING (CWE-457): [#def154]
guile30-3.0.7-build/guile-3.0.7/libguile/net_db.c:307: warning[uninitvar]: Uninitialized variable: eno
#  305|   
#  306|     if (!entry)
#  307|->     SCM_SYSERROR_MSG ("no such protocol ~A", scm_list_1 (protocol), eno);
#  308|   
#  309|     SCM_SIMPLE_VECTOR_SET(result, 0, scm_from_locale_string (entry->p_name));

Error: CPPCHECK_WARNING (CWE-476): [#def155]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:121: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  119|   scm_port_buffer_bytevector (SCM buf)
#  120|   {
#  121|->   return SCM_SIMPLE_VECTOR_REF (buf, SCM_PORT_BUFFER_FIELD_BYTEVECTOR);
#  122|   }
#  123|   

Error: CPPCHECK_WARNING (CWE-476): [#def156]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:127: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  125|   scm_port_buffer_cur (SCM buf)
#  126|   {
#  127|->   return SCM_SIMPLE_VECTOR_REF (buf, SCM_PORT_BUFFER_FIELD_CUR);
#  128|   }
#  129|   

Error: CPPCHECK_WARNING (CWE-476): [#def157]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:133: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  131|   scm_port_buffer_set_cur (SCM buf, SCM cur)
#  132|   {
#  133|->   SCM_SIMPLE_VECTOR_SET (buf, SCM_PORT_BUFFER_FIELD_CUR, cur);
#  134|   }
#  135|   

Error: CPPCHECK_WARNING (CWE-476): [#def158]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:139: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  137|   scm_port_buffer_end (SCM buf)
#  138|   {
#  139|->   return SCM_SIMPLE_VECTOR_REF (buf, SCM_PORT_BUFFER_FIELD_END);
#  140|   }
#  141|   

Error: CPPCHECK_WARNING (CWE-476): [#def159]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:145: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  143|   scm_port_buffer_set_end (SCM buf, SCM end)
#  144|   {
#  145|->   SCM_SIMPLE_VECTOR_SET (buf, SCM_PORT_BUFFER_FIELD_END, end);
#  146|   }
#  147|   

Error: CPPCHECK_WARNING (CWE-476): [#def160]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:151: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  149|   scm_port_buffer_has_eof_p (SCM buf)
#  150|   {
#  151|->   return SCM_SIMPLE_VECTOR_REF (buf, SCM_PORT_BUFFER_FIELD_HAS_EOF_P);
#  152|   }
#  153|   

Error: CPPCHECK_WARNING (CWE-476): [#def161]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:157: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  155|   scm_port_buffer_set_has_eof_p (SCM buf, SCM has_eof_p)
#  156|   {
#  157|->   SCM_SIMPLE_VECTOR_SET (buf, SCM_PORT_BUFFER_FIELD_HAS_EOF_P,
#  158|                            has_eof_p);
#  159|   }

Error: CPPCHECK_WARNING (CWE-476): [#def162]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:167: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  165|   scm_port_buffer_position (SCM buf)
#  166|   {
#  167|->   return SCM_SIMPLE_VECTOR_REF (buf, SCM_PORT_BUFFER_FIELD_POSITION);
#  168|   }
#  169|   

Error: CPPCHECK_WARNING (CWE-476): [#def163]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:198: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  196|   {
#  197|     SCM bv = scm_port_buffer_bytevector (buf);
#  198|->   if (SCM_LIKELY (SCM_BYTEVECTOR_P (bv)))
#  199|       return SCM_BYTEVECTOR_LENGTH (bv);
#  200|     scm_misc_error (NULL, "invalid port buffer ~a", scm_list_1 (bv));

Error: CPPCHECK_WARNING (CWE-476): [#def164]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:199: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  197|     SCM bv = scm_port_buffer_bytevector (buf);
#  198|     if (SCM_LIKELY (SCM_BYTEVECTOR_P (bv)))
#  199|->     return SCM_BYTEVECTOR_LENGTH (bv);
#  200|     scm_misc_error (NULL, "invalid port buffer ~a", scm_list_1 (bv));
#  201|     return -1;

Error: CPPCHECK_WARNING (CWE-476): [#def165]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:266: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  264|   scm_port_buffer_take_pointer (SCM buf, size_t cur)
#  265|   {
#  266|->   signed char *ret = SCM_BYTEVECTOR_CONTENTS (scm_port_buffer_bytevector (buf));
#  267|     return ((uint8_t *) ret) + cur;
#  268|   }

Error: CPPCHECK_WARNING (CWE-476): [#def166]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:273: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  271|   scm_port_buffer_put_pointer (SCM buf, size_t end)
#  272|   {
#  273|->   signed char *ret = SCM_BYTEVECTOR_CONTENTS (scm_port_buffer_bytevector (buf));
#  274|     return ((uint8_t *) ret) + end;
#  275|   }

Error: CPPCHECK_WARNING (CWE-476): [#def167]
guile30-3.0.7-build/guile-3.0.7/libguile/ports-internal.h:311: error[nullPointer]: Null pointer dereference: (volatile struct SCMSCM*)0
#  309|     cur -= count;
#  310|     scm_port_buffer_set_cur (buf, scm_from_size_t (cur));
#  311|->   memmove (SCM_BYTEVECTOR_CONTENTS (scm_port_buffer_bytevector (buf)) + cur,
#  312|              src, count);
#  313|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def168]
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c: scope_hint: In function 'renumber_file_descriptor.part.0'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1303:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'fdopen(err, "a")' where non-null expected
guile30-3.0.7-build/guile-3.0.7/lib/stdio.h:43: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:28: included_from: Included from here.
/usr/include/stdio.h:357:12: note: argument 1 of 'fprintf' must be non-null
# 1301|            cannot safely raise an exception in this environment.  */
# 1302|         char *msg = strerror (errno);
# 1303|->       fprintf (fdopen (err, "a"), "start_child: dup failed: %s\n", msg);
# 1304|         _exit (127);  /* Use exit status 127, as with other exec errors. */
# 1305|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1304:7: warning[-Wanalyzer-malloc-leak]: leak of 'fdopen(err, "a")'
# 1302|         char *msg = strerror (errno);
# 1303|         fprintf (fdopen (err, "a"), "start_child: dup failed: %s\n", msg);
# 1304|->       _exit (127);  /* Use exit status 127, as with other exec errors. */
# 1305|       }
# 1306|   

Error: GCC_ANALYZER_WARNING: [#def170]
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c: scope_hint: In function 'start_child'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1366:10: warning[-Wanalyzer-fd-use-without-check]: 'dup2' on possibly invalid file descriptor 'in'
# 1364|         if (err == 0)
# 1365|           err = renumber_file_descriptor (err, err);
# 1366|->       do dup2 (in, 0); while (errno == EINTR);
# 1367|         close (in);
# 1368|       }

Error: GCC_ANALYZER_WARNING (CWE-835): [#def171]
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1366:10: warning[-Wanalyzer-infinite-loop]: infinite loop
# 1364|         if (err == 0)
# 1365|           err = renumber_file_descriptor (err, err);
# 1366|->       do dup2 (in, 0); while (errno == EINTR);
# 1367|         close (in);
# 1368|       }

Error: GCC_ANALYZER_WARNING: [#def172]
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1373:10: warning[-Wanalyzer-fd-use-without-check]: 'dup2' on possibly invalid file descriptor 'out'
guile30-3.0.7-build/guile-3.0.7/libguile/smob.h:29: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/libguile/threads.h:29: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/libguile/async.h:25: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:66: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE'
guile30-3.0.7-build/guile-3.0.7/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1495:1: note: in expansion of macro 'SCM_DEFINE'
guile30-3.0.7-build/guile-3.0.7/libguile/boolean.h:25: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/libguile/procs.h:25: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/libguile/threads.h:25: included_from: Included from here.
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:789:43: note: in definition of macro 'SCM_UNLIKELY'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:438:27: note: in expansion of macro 'SCM_IMP'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:182:10: note: in expansion of macro 'SCM_I_CONSP'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:182:10: note: in expansion of macro 'SCM_I_CONSP'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c: scope_hint: In function 'start_child'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:123:41: note: in definition of macro 'SCM_VALIDATE_PAIR'
guile30-3.0.7-build/guile-3.0.7/libguile/gc.h:61:31: note: in expansion of macro 'SCM_GC_CELL_OBJECT'
guile30-3.0.7-build/guile-3.0.7/libguile/gc.h:63:30: note: in expansion of macro 'SCM_CELL_OBJECT'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:71:56: note: in expansion of macro 'SCM_CELL_OBJECT_1'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:198:10: note: in expansion of macro 'SCM_CDR'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c: scope_hint: In function 'start_child'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:182:10: note: in expansion of macro 'SCM_I_CONSP'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:182:10: note: in expansion of macro 'SCM_I_CONSP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:427:35: note: in expansion of macro 'SCM_IMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:467:4: note: in expansion of macro 'SCM_NIMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE'
guile30-3.0.7-build/guile-3.0.7/libguile/ports.h:52:23: note: in expansion of macro 'SCM_HAS_TYP7'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:46:4: note: in expansion of macro 'SCM_PORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:47:26: note: in expansion of macro 'SCM_FPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:49:29: note: in expansion of macro 'SCM_OPFPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1436:9: note: in expansion of macro 'SCM_OPOUTFPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:427:35: note: in expansion of macro 'SCM_IMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:467:4: note: in expansion of macro 'SCM_NIMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE'
guile30-3.0.7-build/guile-3.0.7/libguile/ports.h:52:23: note: in expansion of macro 'SCM_HAS_TYP7'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:46:4: note: in expansion of macro 'SCM_PORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:47:26: note: in expansion of macro 'SCM_FPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:49:29: note: in expansion of macro 'SCM_OPFPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1438:22: note: in expansion of macro 'SCM_OPOUTFPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:427:35: note: in expansion of macro 'SCM_IMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:467:4: note: in expansion of macro 'SCM_NIMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE'
guile30-3.0.7-build/guile-3.0.7/libguile/ports.h:52:23: note: in expansion of macro 'SCM_HAS_TYP7'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:46:4: note: in expansion of macro 'SCM_PORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:47:26: note: in expansion of macro 'SCM_FPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:48:28: note: in expansion of macro 'SCM_OPFPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1440:21: note: in expansion of macro 'SCM_OPINFPORTP'
# 1371|         if (err == 1)
# 1372|           err = renumber_file_descriptor (err, err);
# 1373|->       do dup2 (out, 1); while (errno == EINTR);
# 1374|         close (out);
# 1375|       }

Error: GCC_ANALYZER_WARNING (CWE-835): [#def173]
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1373:10: warning[-Wanalyzer-infinite-loop]: infinite loop
# 1371|         if (err == 1)
# 1372|           err = renumber_file_descriptor (err, err);
# 1373|->       do dup2 (out, 1); while (errno == EINTR);
# 1374|         close (out);
# 1375|       }

Error: GCC_ANALYZER_WARNING: [#def174]
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1378:10: warning[-Wanalyzer-fd-use-without-check]: 'dup2' on possibly invalid file descriptor 'err'
guile30-3.0.7-build/guile-3.0.7/libguile/snarf.h:80:29: note: in definition of macro 'SCM_SNARF_HERE'
guile30-3.0.7-build/guile-3.0.7/libguile/gsubr.h:94:20: note: in expansion of macro 'SCM_DEFINE_GSUBR'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1495:1: note: in expansion of macro 'SCM_DEFINE'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:789:43: note: in definition of macro 'SCM_UNLIKELY'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:438:27: note: in expansion of macro 'SCM_IMP'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:182:10: note: in expansion of macro 'SCM_I_CONSP'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:182:10: note: in expansion of macro 'SCM_I_CONSP'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c: scope_hint: In function 'start_child'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:123:41: note: in definition of macro 'SCM_VALIDATE_PAIR'
guile30-3.0.7-build/guile-3.0.7/libguile/gc.h:61:31: note: in expansion of macro 'SCM_GC_CELL_OBJECT'
guile30-3.0.7-build/guile-3.0.7/libguile/gc.h:63:30: note: in expansion of macro 'SCM_CELL_OBJECT'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:71:56: note: in expansion of macro 'SCM_CELL_OBJECT_1'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:198:10: note: in expansion of macro 'SCM_CDR'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c: scope_hint: In function 'start_child'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:182:10: note: in expansion of macro 'SCM_I_CONSP'
guile30-3.0.7-build/guile-3.0.7/libguile/pairs.h:182:10: note: in expansion of macro 'SCM_I_CONSP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:427:35: note: in expansion of macro 'SCM_IMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:467:4: note: in expansion of macro 'SCM_NIMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE'
guile30-3.0.7-build/guile-3.0.7/libguile/ports.h:52:23: note: in expansion of macro 'SCM_HAS_TYP7'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:46:4: note: in expansion of macro 'SCM_PORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:47:26: note: in expansion of macro 'SCM_FPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:49:29: note: in expansion of macro 'SCM_OPFPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1436:9: note: in expansion of macro 'SCM_OPOUTFPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:427:35: note: in expansion of macro 'SCM_IMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:467:4: note: in expansion of macro 'SCM_NIMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE'
guile30-3.0.7-build/guile-3.0.7/libguile/ports.h:52:23: note: in expansion of macro 'SCM_HAS_TYP7'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:46:4: note: in expansion of macro 'SCM_PORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:47:26: note: in expansion of macro 'SCM_FPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:49:29: note: in expansion of macro 'SCM_OPFPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1438:22: note: in expansion of macro 'SCM_OPOUTFPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:171:69: note: in definition of macro 'SCM_UNPACK'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:427:35: note: in expansion of macro 'SCM_IMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:467:4: note: in expansion of macro 'SCM_NIMP'
guile30-3.0.7-build/guile-3.0.7/libguile/scm.h:468:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE'
guile30-3.0.7-build/guile-3.0.7/libguile/ports.h:52:23: note: in expansion of macro 'SCM_HAS_TYP7'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:46:4: note: in expansion of macro 'SCM_PORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:47:26: note: in expansion of macro 'SCM_FPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/fports.h:48:28: note: in expansion of macro 'SCM_OPFPORTP'
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1440:21: note: in expansion of macro 'SCM_OPINFPORTP'
# 1376|     if (err > 2)
# 1377|       {
# 1378|->       do dup2 (err, 2); while (errno == EINTR);
# 1379|         close (err);
# 1380|       }

Error: GCC_ANALYZER_WARNING (CWE-835): [#def175]
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1378:10: warning[-Wanalyzer-infinite-loop]: infinite loop
# 1376|     if (err > 2)
# 1377|       {
# 1378|->       do dup2 (err, 2); while (errno == EINTR);
# 1379|         close (err);
# 1380|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def176]
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1387:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'fdopen(2, "a")' where non-null expected
/usr/include/stdio.h:357:12: note: argument 1 of 'fprintf' must be non-null
# 1385|     {
# 1386|       char *msg = strerror (errno);
# 1387|->     fprintf (fdopen (2, "a"), "In execvp of %s: %s\n",
# 1388|                exec_file, msg);
# 1389|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
guile30-3.0.7-build/guile-3.0.7/libguile/posix.c:1393:3: warning[-Wanalyzer-malloc-leak]: leak of 'fdopen(2, "a")'
# 1391|     /* Use exit status 127, like shells in this case, as per POSIX
# 1392|        <http://pubs.opengroup.org/onlinepubs/007904875/utilities/xcu_chap02.html#tag_02_09_01_01>.  */
# 1393|->   _exit (127);
# 1394|   
# 1395|     /* Not reached.  */

Error: CPPCHECK_WARNING (CWE-457): [#def178]
guile30-3.0.7-build/guile-3.0.7/libguile/rdelim.c:146: error[uninitvar]: Uninitialized variable: buf
#  144|   	  /* The line is getting longer than BUF so store its current
#  145|   	     contents in STRINGS.  */
#  146|-> 	  strings = scm_cons (scm_from_utf32_stringn (buf, index),
#  147|   			      scm_is_false (strings) ? SCM_EOL : strings);
#  148|   	  index = 0;

Error: CPPCHECK_WARNING (CWE-758): [#def179]
guile30-3.0.7-build/guile-3.0.7/libguile/srfi-60.c:375: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#  373|   	    (i < ((unsigned long) SCM_LONG_BIT-1)) 
#  374|   	    ? i : ((unsigned long) SCM_LONG_BIT-1);
#  375|->           int bit = (nn >> shift) & 1;
#  376|             ret = scm_cons (scm_from_bool (bit), ret);
#  377|           }

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-224.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameguile30-3.0.9-1.fc41
diffbase-store-results-to/tmp/tmplwwkcmzu/guile30-3.0.9-1.fc41.tar.xz
diffbase-time-created2024-07-03 13:15:59
diffbase-time-finished2024-07-03 13:32:26
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmplwwkcmzu/guile30-3.0.9-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmplwwkcmzu/guile30-3.0.9-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-224.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameguile30-3.0.7-12.fc40
store-results-to/tmp/tmp8n95duf7/guile30-3.0.7-12.fc40.tar.xz
time-created2024-07-03 13:08:06
time-finished2024-07-03 13:15:41
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp8n95duf7/guile30-3.0.7-12.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp8n95duf7/guile30-3.0.7-12.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9