fuse-overlayfs-1.13-5.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
fuse-overlayfs-1.13/direct.c:134:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
fuse-overlayfs-1.13/direct.c:138:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/direct.c:141:8: branch_false: ...to here
fuse-overlayfs-1.13/direct.c:141:8: acquire_memory: allocated here
fuse-overlayfs-1.13/direct.c:142:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/direct.c:145:3: branch_false: ...to here
fuse-overlayfs-1.13/direct.c:134:21: throw: if ‘cleanup_closep’ throws an exception...
fuse-overlayfs-1.13/direct.c:134:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  132|   direct_opendir (struct ovl_layer *l, const char *path)
#  133|   {
#  134|->   cleanup_close int cleanup_fd = -1;
#  135|     DIR *dp = NULL;
#  136|   

Error: COMPILER_WARNING (CWE-252): [#def2]
fuse-overlayfs-1.13/main.c: scope_hint: In function ‘print_stats’
fuse-overlayfs-1.13/main.c:187:10: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  187 |   (void) write (STDERR_FILENO, fmt, l + 1);
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  185|     int l = snprintf (fmt, sizeof (fmt) - 1, "# INODES: %zu\n# NODES: %zu\n", stats.inodes, stats.nodes);
#  186|     fmt[l] = '\0';
#  187|->   (void) write (STDERR_FILENO, fmt, l + 1);
#  188|   }
#  189|   

Error: COMPILER_WARNING: [#def3]
fuse-overlayfs-1.13/main.c: scope_hint: In function ‘check_writeable_proc’
fuse-overlayfs-1.13/main.c:311:67: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__fsid_t’
#  311 |       fprintf (stderr, "invalid file system type found on /proc: %d, expected %d\n", svfs.f_fsid, PROC_SUPER_MAGIC);
#      |                                                                  ~^                  ~~~~~~~~~~~
#      |                                                                   |                      |
#      |                                                                   int                    __fsid_t
#  309|     if (svfs.f_type != PROC_SUPER_MAGIC)
#  310|       {
#  311|->       fprintf (stderr, "invalid file system type found on /proc: %d, expected %d\n", svfs.f_fsid, PROC_SUPER_MAGIC);
#  312|         return;
#  313|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
fuse-overlayfs-1.13/main.c:360:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
fuse-overlayfs-1.13/main.c:5632:1: enter_function: entry to ‘main’
fuse-overlayfs-1.13/main.c:5636:20: call_function: calling ‘get_new_args’ from ‘main’
fuse-overlayfs-1.13/main.c:5636:20: return_function: returning to ‘main’ from ‘get_new_args’
fuse-overlayfs-1.13/main.c:5668:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5670:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5670:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5673:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5676:3: call_function: calling ‘read_overflowids’ from ‘main’
fuse-overlayfs-1.13/main.c:5676:3: return_function: returning to ‘main’ from ‘read_overflowids’
fuse-overlayfs-1.13/main.c:5680:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5687:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5687:11: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5695:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5701:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5704:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5717:3: call_function: calling ‘set_limits’ from ‘main’
fuse-overlayfs-1.13/main.c:5717:3: return_function: returning to ‘main’ from ‘set_limits’
fuse-overlayfs-1.13/main.c:5721:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5724:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5736:21: branch_true: following ‘true’ branch...
fuse-overlayfs-1.13/main.c:5736:34: branch_true: ...to here
fuse-overlayfs-1.13/main.c:5736:34: call_function: calling ‘read_mappings’ from ‘main’
#  358|           case 0:
#  359|             a = strtol (it, &endptr, 10);
#  360|->           if (*endptr != 0)
#  361|               error (EXIT_FAILURE, 0, "invalid mapping specified: %s", str);
#  362|             state++;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
fuse-overlayfs-1.13/main.c:423:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
fuse-overlayfs-1.13/main.c:5632:1: enter_function: entry to ‘main’
fuse-overlayfs-1.13/main.c:5636:20: call_function: calling ‘get_new_args’ from ‘main’
fuse-overlayfs-1.13/main.c:5636:20: return_function: returning to ‘main’ from ‘get_new_args’
fuse-overlayfs-1.13/main.c:5668:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5670:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5670:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5673:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5676:3: call_function: calling ‘read_overflowids’ from ‘main’
#  421|   read_file_as_int (const char *file)
#  422|   {
#  423|->   cleanup_close int fd = -1;
#  424|     long int ret;
#  425|     char buffer[256];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
fuse-overlayfs-1.13/main.c:719:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
fuse-overlayfs-1.13/main.c:5038:1: enter_function: entry to ‘ovl_mkdir’
fuse-overlayfs-1.13/main.c:5058:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5063:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5066:10: call_function: calling ‘do_lookup_file’ from ‘ovl_mkdir’
#  717|     ssize_t s;
#  718|   
#  719|->   s = l->ds->getxattr (l, path, PRIVILEGED_OPAQUE_XATTR, b, sizeof (b));
#  720|     if (s < 0 && errno == ENODATA)
#  721|       s = l->ds->getxattr (l, path, UNPRIVILEGED_OPAQUE_XATTR, b, sizeof (b));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
fuse-overlayfs-1.13/main.c:719:7: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
fuse-overlayfs-1.13/main.c:5038:1: enter_function: entry to ‘ovl_mkdir’
fuse-overlayfs-1.13/main.c:5058:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5063:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5066:10: call_function: calling ‘do_lookup_file’ from ‘ovl_mkdir’
#  717|     ssize_t s;
#  718|   
#  719|->   s = l->ds->getxattr (l, path, PRIVILEGED_OPAQUE_XATTR, b, sizeof (b));
#  720|     if (s < 0 && errno == ENODATA)
#  721|       s = l->ds->getxattr (l, path, UNPRIVILEGED_OPAQUE_XATTR, b, sizeof (b));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
fuse-overlayfs-1.13/main.c:721:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
fuse-overlayfs-1.13/main.c:5038:1: enter_function: entry to ‘ovl_mkdir’
fuse-overlayfs-1.13/main.c:5058:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5063:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5066:10: call_function: calling ‘do_lookup_file’ from ‘ovl_mkdir’
#  719|     s = l->ds->getxattr (l, path, PRIVILEGED_OPAQUE_XATTR, b, sizeof (b));
#  720|     if (s < 0 && errno == ENODATA)
#  721|->     s = l->ds->getxattr (l, path, UNPRIVILEGED_OPAQUE_XATTR, b, sizeof (b));
#  722|     if (s < 0 && errno == ENODATA)
#  723|       s = l->ds->getxattr (l, path, OPAQUE_XATTR, b, sizeof (b));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
fuse-overlayfs-1.13/main.c:721:9: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
fuse-overlayfs-1.13/main.c:5038:1: enter_function: entry to ‘ovl_mkdir’
fuse-overlayfs-1.13/main.c:5058:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5063:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5066:10: call_function: calling ‘do_lookup_file’ from ‘ovl_mkdir’
#  719|     s = l->ds->getxattr (l, path, PRIVILEGED_OPAQUE_XATTR, b, sizeof (b));
#  720|     if (s < 0 && errno == ENODATA)
#  721|->     s = l->ds->getxattr (l, path, UNPRIVILEGED_OPAQUE_XATTR, b, sizeof (b));
#  722|     if (s < 0 && errno == ENODATA)
#  723|       s = l->ds->getxattr (l, path, OPAQUE_XATTR, b, sizeof (b));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
fuse-overlayfs-1.13/main.c:723:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
fuse-overlayfs-1.13/main.c:5038:1: enter_function: entry to ‘ovl_mkdir’
fuse-overlayfs-1.13/main.c:5058:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5063:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5066:10: call_function: calling ‘do_lookup_file’ from ‘ovl_mkdir’
#  721|       s = l->ds->getxattr (l, path, UNPRIVILEGED_OPAQUE_XATTR, b, sizeof (b));
#  722|     if (s < 0 && errno == ENODATA)
#  723|->     s = l->ds->getxattr (l, path, OPAQUE_XATTR, b, sizeof (b));
#  724|   
#  725|     if (s < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
fuse-overlayfs-1.13/main.c:723:9: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
fuse-overlayfs-1.13/main.c:5038:1: enter_function: entry to ‘ovl_mkdir’
fuse-overlayfs-1.13/main.c:5058:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5063:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5066:10: call_function: calling ‘do_lookup_file’ from ‘ovl_mkdir’
#  721|       s = l->ds->getxattr (l, path, UNPRIVILEGED_OPAQUE_XATTR, b, sizeof (b));
#  722|     if (s < 0 && errno == ENODATA)
#  723|->     s = l->ds->getxattr (l, path, OPAQUE_XATTR, b, sizeof (b));
#  724|   
#  725|     if (s < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
fuse-overlayfs-1.13/main.c:731:11: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
fuse-overlayfs-1.13/main.c:5038:1: enter_function: entry to ‘ovl_mkdir’
fuse-overlayfs-1.13/main.c:5058:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5063:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5066:10: call_function: calling ‘do_lookup_file’ from ‘ovl_mkdir’
#  729|             char whiteout_opq_path[PATH_MAX];
#  730|   
#  731|->           strconcat3 (whiteout_opq_path, PATH_MAX, path, "/" OPAQUE_WHITEOUT, NULL);
#  732|   
#  733|             if (l->ds->file_exists (l, whiteout_opq_path) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
fuse-overlayfs-1.13/main.c:731:11: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
fuse-overlayfs-1.13/main.c:5038:1: enter_function: entry to ‘ovl_mkdir’
fuse-overlayfs-1.13/main.c:5058:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5063:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5066:10: call_function: calling ‘do_lookup_file’ from ‘ovl_mkdir’
#  729|             char whiteout_opq_path[PATH_MAX];
#  730|   
#  731|->           strconcat3 (whiteout_opq_path, PATH_MAX, path, "/" OPAQUE_WHITEOUT, NULL);
#  732|   
#  733|             if (l->ds->file_exists (l, whiteout_opq_path) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
fuse-overlayfs-1.13/main.c:733:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
fuse-overlayfs-1.13/main.c:5038:1: enter_function: entry to ‘ovl_mkdir’
fuse-overlayfs-1.13/main.c:5058:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5063:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5066:10: call_function: calling ‘do_lookup_file’ from ‘ovl_mkdir’
#  731|             strconcat3 (whiteout_opq_path, PATH_MAX, path, "/" OPAQUE_WHITEOUT, NULL);
#  732|   
#  733|->           if (l->ds->file_exists (l, whiteout_opq_path) == 0)
#  734|               return 1;
#  735|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
fuse-overlayfs-1.13/main.c:733:15: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
fuse-overlayfs-1.13/main.c:5038:1: enter_function: entry to ‘ovl_mkdir’
fuse-overlayfs-1.13/main.c:5058:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5063:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5066:10: call_function: calling ‘do_lookup_file’ from ‘ovl_mkdir’
#  731|             strconcat3 (whiteout_opq_path, PATH_MAX, path, "/" OPAQUE_WHITEOUT, NULL);
#  732|   
#  733|->           if (l->ds->file_exists (l, whiteout_opq_path) == 0)
#  734|               return 1;
#  735|   

Error: CPPCHECK_WARNING (CWE-457): [#def16]
fuse-overlayfs-1.13/main.c:790: error[uninitvar]: Uninitialized variable: st
#  788|             /* Check whether it is already a whiteout.  */
#  789|             if (TEMP_FAILURE_RETRY (fstatat (get_upper_layer (lo)->fd, whiteout_path, &st, AT_SYMLINK_NOFOLLOW)) == 0
#  790|->               && (st.st_mode & S_IFMT) == S_IFCHR
#  791|                 && major (st.st_rdev) == 0
#  792|                 && minor (st.st_rdev) == 0)

Error: CPPCHECK_WARNING (CWE-457): [#def17]
fuse-overlayfs-1.13/main.c:824: error[uninitvar]: Uninitialized variable: st
#  822|           {
#  823|             if (TEMP_FAILURE_RETRY (fstatat (dirfd, name, &st, AT_SYMLINK_NOFOLLOW)) == 0
#  824|->               && (st.st_mode & S_IFMT) == S_IFCHR
#  825|                 && major (st.st_rdev) == 0
#  826|                 && minor (st.st_rdev) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
fuse-overlayfs-1.13/main.c:1368:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
fuse-overlayfs-1.13/main.c:1880:1: enter_function: entry to ‘reload_dir’
fuse-overlayfs-1.13/main.c:1883:12: call_function: calling ‘load_dir’ from ‘reload_dir’
# 1366|       return;
# 1367|     if (n->children)
# 1368|->     hash_free (n->children);
# 1369|     free (n->name);
# 1370|     free (n->path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
fuse-overlayfs-1.13/main.c:1368:5: warning[-Wanalyzer-malloc-leak]: leak of ‘new_name’
fuse-overlayfs-1.13/main.c:1880:1: enter_function: entry to ‘reload_dir’
fuse-overlayfs-1.13/main.c:1883:12: call_function: calling ‘load_dir’ from ‘reload_dir’
# 1366|       return;
# 1367|     if (n->children)
# 1368|->     hash_free (n->children);
# 1369|     free (n->name);
# 1370|     free (n->path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
fuse-overlayfs-1.13/main.c:1368:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
fuse-overlayfs-1.13/main.c:1880:1: enter_function: entry to ‘reload_dir’
fuse-overlayfs-1.13/main.c:1883:12: call_function: calling ‘load_dir’ from ‘reload_dir’
# 1366|       return;
# 1367|     if (n->children)
# 1368|->     hash_free (n->children);
# 1369|     free (n->name);
# 1370|     free (n->path);

Error: CPPCHECK_WARNING (CWE-401): [#def21]
fuse-overlayfs-1.13/main.c:1399: error[memleak]: Memory leak: ret
# 1397|     new_name = strdup (name);
# 1398|     if (new_name == NULL)
# 1399|->     return NULL;
# 1400|   
# 1401|     node_set_name (ret, new_name);

Error: CPPCHECK_WARNING (CWE-401): [#def22]
fuse-overlayfs-1.13/main.c:1485: error[memleak]: Memory leak: ret
# 1483|     new_name = strdup (name);
# 1484|     if (new_name == NULL)
# 1485|->     return NULL;
# 1486|     node_set_name (ret, new_name);
# 1487|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
fuse-overlayfs-1.13/main.c:1653:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
fuse-overlayfs-1.13/main.c:1880:1: enter_function: entry to ‘reload_dir’
fuse-overlayfs-1.13/main.c:1883:12: call_function: calling ‘load_dir’ from ‘reload_dir’
# 1651|       }
# 1652|   
# 1653|->   ret = hash_insert_if_absent (parent->children, item, (const void **) &old);
# 1654|     if (ret < 0)
# 1655|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
fuse-overlayfs-1.13/main.c:1653:9: warning[-Wanalyzer-malloc-leak]: leak of ‘child’
fuse-overlayfs-1.13/main.c:1880:1: enter_function: entry to ‘reload_dir’
fuse-overlayfs-1.13/main.c:1883:12: call_function: calling ‘load_dir’ from ‘reload_dir’
# 1651|       }
# 1652|   
# 1653|->   ret = hash_insert_if_absent (parent->children, item, (const void **) &old);
# 1654|     if (ret < 0)
# 1655|       {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def25]
fuse-overlayfs-1.13/main.c:1903:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘layers’
fuse-overlayfs-1.13/main.c:5632:1: enter_function: entry to ‘main’
fuse-overlayfs-1.13/main.c:5636:20: call_function: calling ‘get_new_args’ from ‘main’
fuse-overlayfs-1.13/main.c:5636:20: return_function: returning to ‘main’ from ‘get_new_args’
fuse-overlayfs-1.13/main.c:5668:7: throw: if ‘fuse_opt_parse’ throws an exception...
fuse-overlayfs-1.13/main.c:5663:35: call_function: inlined call to ‘cleanup_layerp’ from ‘main’
# 1901|   {
# 1902|     struct ovl_layer *l = *p;
# 1903|->   free_layers (l);
# 1904|   }
# 1905|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def26]
fuse-overlayfs-1.13/main.c:1903:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘l’
fuse-overlayfs-1.13/main.c:5632:1: enter_function: entry to ‘main’
fuse-overlayfs-1.13/main.c:5636:20: call_function: calling ‘get_new_args’ from ‘main’
fuse-overlayfs-1.13/main.c:5636:20: return_function: returning to ‘main’ from ‘get_new_args’
fuse-overlayfs-1.13/main.c:5668:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5670:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5670:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5673:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5676:3: call_function: calling ‘read_overflowids’ from ‘main’
fuse-overlayfs-1.13/main.c:5676:3: return_function: returning to ‘main’ from ‘read_overflowids’
fuse-overlayfs-1.13/main.c:5680:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5687:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5687:11: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5695:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5701:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5704:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5717:3: call_function: calling ‘set_limits’ from ‘main’
fuse-overlayfs-1.13/main.c:5717:3: return_function: returning to ‘main’ from ‘set_limits’
fuse-overlayfs-1.13/main.c:5740:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5747:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5747:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5750:34: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5752:12: call_function: calling ‘read_dirs’ from ‘main’
# 1901|   {
# 1902|     struct ovl_layer *l = *p;
# 1903|->   free_layers (l);
# 1904|   }
# 1905|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
fuse-overlayfs-1.13/main.c:2010:15: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 56)’
fuse-overlayfs-1.13/main.c:5632:1: enter_function: entry to ‘main’
fuse-overlayfs-1.13/main.c:5636:20: call_function: calling ‘get_new_args’ from ‘main’
fuse-overlayfs-1.13/main.c:5636:20: return_function: returning to ‘main’ from ‘get_new_args’
fuse-overlayfs-1.13/main.c:5668:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5670:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5670:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5673:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5676:3: call_function: calling ‘read_overflowids’ from ‘main’
fuse-overlayfs-1.13/main.c:5676:3: return_function: returning to ‘main’ from ‘read_overflowids’
fuse-overlayfs-1.13/main.c:5680:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5687:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5687:11: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5695:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5701:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5704:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5717:3: call_function: calling ‘set_limits’ from ‘main’
fuse-overlayfs-1.13/main.c:5717:3: return_function: returning to ‘main’ from ‘set_limits’
fuse-overlayfs-1.13/main.c:5740:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5747:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5747:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5750:34: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5752:12: call_function: calling ‘read_dirs’ from ‘main’
# 2008|             l->fd = -1;
# 2009|   
# 2010|->           if (l->ds->load_data_source (l, data, path, i) < 0)
# 2011|               {
# 2012|                 fprintf (stderr, "cannot load store %s at %s\n", data, path);

Error: CPPCHECK_WARNING (CWE-401): [#def28]
fuse-overlayfs-1.13/main.c:2428: error[memleak]: Memory leak: buffer
# 2426|           {
# 2427|             fuse_reply_err (req, errno);
# 2428|->           return;
# 2429|           }
# 2430|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
fuse-overlayfs-1.13/main.c:5594:1: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
fuse-overlayfs-1.13/main.c:5632:1: enter_function: entry to ‘main’
fuse-overlayfs-1.13/main.c:5636:20: call_function: calling ‘get_new_args’ from ‘main’
fuse-overlayfs-1.13/main.c:5636:20: return_function: returning to ‘main’ from ‘get_new_args’
fuse-overlayfs-1.13/main.c:5668:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5670:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5670:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5673:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5676:3: call_function: calling ‘read_overflowids’ from ‘main’
fuse-overlayfs-1.13/main.c:5676:3: return_function: returning to ‘main’ from ‘read_overflowids’
fuse-overlayfs-1.13/main.c:5680:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5687:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5687:11: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5695:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5701:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5704:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5717:3: call_function: calling ‘set_limits’ from ‘main’
fuse-overlayfs-1.13/main.c:5717:3: return_function: returning to ‘main’ from ‘set_limits’
fuse-overlayfs-1.13/main.c:5721:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5724:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5736:21: branch_true: following ‘true’ branch...
fuse-overlayfs-1.13/main.c:5736:34: branch_true: ...to here
fuse-overlayfs-1.13/main.c:5736:34: call_function: calling ‘read_mappings’ from ‘main’
# 5592|     if (setrlimit (RLIMIT_NOFILE, &l) < 0)
# 5593|       error (EXIT_FAILURE, errno, "cannot set nofile rlimit");
# 5594|-> }
# 5595|   
# 5596|   static char *

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
fuse-overlayfs-1.13/main.c:5602:8: warning[-Wanalyzer-malloc-leak]: leak of ‘plugins’
fuse-overlayfs-1.13/main.c:5600:19: acquire_memory: allocated here
fuse-overlayfs-1.13/main.c:5602:8: throw: if ‘opendir’ throws an exception...
fuse-overlayfs-1.13/main.c:5602:8: danger: ‘plugins’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 5600|     char *plugins = strdup ("");
# 5601|   
# 5602|->   dp = opendir (PKGLIBEXECDIR);
# 5603|     if (dp == NULL)
# 5604|       return plugins;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
fuse-overlayfs-1.13/main.c:5610:14: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/usr/libexec/fuse-overlayfs")’
fuse-overlayfs-1.13/main.c:5602:8: acquire_memory: allocated here
fuse-overlayfs-1.13/main.c:5603:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5603:6: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5610:14: throw: if ‘readdir’ throws an exception...
fuse-overlayfs-1.13/main.c:5610:14: danger: ‘opendir("/usr/libexec/fuse-overlayfs")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
# 5608|         struct dirent *dent;
# 5609|   
# 5610|->       dent = readdir (dp);
# 5611|         if (dent == NULL)
# 5612|           break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
fuse-overlayfs-1.13/main.c:5610:14: warning[-Wanalyzer-malloc-leak]: leak of ‘plugins’
fuse-overlayfs-1.13/main.c:5600:19: acquire_memory: allocated here
fuse-overlayfs-1.13/main.c:5603:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5603:6: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5610:14: throw: if ‘readdir’ throws an exception...
fuse-overlayfs-1.13/main.c:5610:14: danger: ‘plugins’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
# 5608|         struct dirent *dent;
# 5609|   
# 5610|->       dent = readdir (dp);
# 5611|         if (dent == NULL)
# 5612|           break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
fuse-overlayfs-1.13/main.c:5626:3: warning[-Wanalyzer-malloc-leak]: leak of ‘plugins’
fuse-overlayfs-1.13/main.c:5600:19: acquire_memory: allocated here
fuse-overlayfs-1.13/main.c:5603:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5603:6: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5626:3: throw: if ‘closedir’ throws an exception...
fuse-overlayfs-1.13/main.c:5626:3: danger: ‘plugins’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
# 5624|           }
# 5625|       }
# 5626|->   closedir (dp);
# 5627|   
# 5628|     return plugins;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
fuse-overlayfs-1.13/main.c:5802:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
fuse-overlayfs-1.13/main.c:5632:1: enter_function: entry to ‘main’
fuse-overlayfs-1.13/main.c:5636:20: call_function: calling ‘get_new_args’ from ‘main’
fuse-overlayfs-1.13/main.c:5636:20: return_function: returning to ‘main’ from ‘get_new_args’
fuse-overlayfs-1.13/main.c:5668:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5670:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5670:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5673:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5676:3: call_function: calling ‘read_overflowids’ from ‘main’
fuse-overlayfs-1.13/main.c:5676:3: return_function: returning to ‘main’ from ‘read_overflowids’
fuse-overlayfs-1.13/main.c:5680:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5687:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5687:11: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5695:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5701:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5704:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5717:3: call_function: calling ‘set_limits’ from ‘main’
fuse-overlayfs-1.13/main.c:5717:3: return_function: returning to ‘main’ from ‘set_limits’
fuse-overlayfs-1.13/main.c:5740:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5747:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5747:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5750:34: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5752:12: call_function: calling ‘read_dirs’ from ‘main’
fuse-overlayfs-1.13/main.c:5752:12: return_function: returning to ‘main’ from ‘read_dirs’
fuse-overlayfs-1.13/main.c:5753:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5758:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5774:6: branch_true: following ‘true’ branch...
fuse-overlayfs-1.13/main.c:5776:11: branch_true: ...to here
fuse-overlayfs-1.13/main.c:5776:10: branch_true: following ‘true’ branch...
fuse-overlayfs-1.13/main.c:5781:14: branch_true: ...to here
fuse-overlayfs-1.13/main.c:5795:14: branch_true: following ‘true’ branch (when ‘s < 0’)...
fuse-overlayfs-1.13/main.c:5797:19: branch_true: ...to here
fuse-overlayfs-1.13/main.c:5797:18: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5802:32: call_function: inlined call to ‘get_upper_layer’ from ‘main’
fuse-overlayfs-1.13/main.c:5802:25: branch_true: ...to here
fuse-overlayfs-1.13/main.c:5802:25: danger: dereference of NULL ‘<unknown>’
# 5800|                   {
# 5801|                     struct stat st;
# 5802|->                   ret = fstat (get_upper_layer (&lo)->fd, &st);
# 5803|                     if (ret < 0)
# 5804|                       error (EXIT_FAILURE, errno, "stat upperdir");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
fuse-overlayfs-1.13/main.c:5806:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
fuse-overlayfs-1.13/main.c:5632:1: enter_function: entry to ‘main’
fuse-overlayfs-1.13/main.c:5636:20: call_function: calling ‘get_new_args’ from ‘main’
fuse-overlayfs-1.13/main.c:5636:20: return_function: returning to ‘main’ from ‘get_new_args’
fuse-overlayfs-1.13/main.c:5668:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5670:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5670:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5673:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5676:3: call_function: calling ‘read_overflowids’ from ‘main’
fuse-overlayfs-1.13/main.c:5676:3: return_function: returning to ‘main’ from ‘read_overflowids’
fuse-overlayfs-1.13/main.c:5680:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5687:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5687:11: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5695:12: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5701:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5704:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5717:3: call_function: calling ‘set_limits’ from ‘main’
fuse-overlayfs-1.13/main.c:5717:3: return_function: returning to ‘main’ from ‘set_limits’
fuse-overlayfs-1.13/main.c:5740:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5747:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5747:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5750:34: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5752:12: call_function: calling ‘read_dirs’ from ‘main’
fuse-overlayfs-1.13/main.c:5752:12: return_function: returning to ‘main’ from ‘read_dirs’
fuse-overlayfs-1.13/main.c:5753:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5758:7: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5774:6: branch_true: following ‘true’ branch...
fuse-overlayfs-1.13/main.c:5776:11: branch_true: ...to here
fuse-overlayfs-1.13/main.c:5776:10: branch_true: following ‘true’ branch...
fuse-overlayfs-1.13/main.c:5781:14: branch_true: ...to here
fuse-overlayfs-1.13/main.c:5795:14: branch_true: following ‘true’ branch (when ‘s < 0’)...
fuse-overlayfs-1.13/main.c:5797:19: branch_true: ...to here
fuse-overlayfs-1.13/main.c:5797:18: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/main.c:5802:32: call_function: inlined call to ‘get_upper_layer’ from ‘main’
fuse-overlayfs-1.13/main.c:5803:22: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
fuse-overlayfs-1.13/main.c:5808:71: branch_false: ...to here
fuse-overlayfs-1.13/main.c:5806:54: call_function: inlined call to ‘get_upper_layer’ from ‘main’
fuse-overlayfs-1.13/main.c:5806:25: branch_true: ...to here
fuse-overlayfs-1.13/main.c:5806:25: danger: dereference of NULL ‘<unknown>’
# 5804|                       error (EXIT_FAILURE, errno, "stat upperdir");
# 5805|   
# 5806|->                   ret = write_permission_xattr (&lo, get_upper_layer (&lo)->fd,
# 5807|                                                   lo.upperdir,
# 5808|                                                   st.st_uid, st.st_gid, st.st_mode);

Error: CPPCHECK_WARNING (CWE-401): [#def36]
fuse-overlayfs-1.13/main.c:5835: error[memleakOnRealloc]: Common realloc mistake: 'path' nulled but not freed upon failure
# 5833|           goto err_out1;
# 5834|         mkdir (path, 0700);
# 5835|->       path = realloc(path, strlen(path)+strlen("/work")+1);
# 5836|         if (!path)
# 5837|           error (EXIT_FAILURE, errno, "allocating workdir path");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
fuse-overlayfs-1.13/plugin-manager.c:32:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
fuse-overlayfs-1.13/plugin-manager.c:29:1: enter_function: entry to ‘load_plugins’
fuse-overlayfs-1.13/plugin-manager.c:36:6: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
fuse-overlayfs-1.13/plugin-manager.c:39:9: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:40:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/plugin-manager.c:43:13: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:43:44: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
fuse-overlayfs-1.13/plugin-manager.c:44:5: branch_true: ...to here
fuse-overlayfs-1.13/plugin-manager.c:44:5: call_function: calling ‘plugin_load_one’ from ‘load_plugins’
fuse-overlayfs-1.13/plugin-manager.c:44:5: return_function: returning to ‘load_plugins’ from ‘plugin_load_one’
fuse-overlayfs-1.13/plugin-manager.c:43:44: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
fuse-overlayfs-1.13/plugin-manager.c:32:22: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:32:22: throw: if ‘cleanup_freep’ throws an exception...
fuse-overlayfs-1.13/plugin-manager.c:32:22: danger: ‘<unknown>’ leaks here; was allocated at [(12)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/11)
#   30|   {
#   31|     char *saveptr = NULL, *it;
#   32|->   cleanup_free char *buf = NULL;
#   33|     struct ovl_plugin_context *ctx;
#   34|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
fuse-overlayfs-1.13/plugin-manager.c:32:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
fuse-overlayfs-1.13/plugin-manager.c:35:9: acquire_memory: allocated here
fuse-overlayfs-1.13/plugin-manager.c:36:6: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
fuse-overlayfs-1.13/plugin-manager.c:39:9: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:40:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/plugin-manager.c:43:13: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:43:44: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
fuse-overlayfs-1.13/plugin-manager.c:32:22: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:32:22: throw: if ‘cleanup_freep’ throws an exception...
fuse-overlayfs-1.13/plugin-manager.c:32:22: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   30|   {
#   31|     char *saveptr = NULL, *it;
#   32|->   cleanup_free char *buf = NULL;
#   33|     struct ovl_plugin_context *ctx;
#   34|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
fuse-overlayfs-1.13/plugin-manager.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
fuse-overlayfs-1.13/plugin-manager.c:56:6: branch_false: following ‘false’ branch (when ‘handle’ is non-NULL)...
fuse-overlayfs-1.13/plugin-manager.c:59:7: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:59:7: acquire_memory: allocated here
fuse-overlayfs-1.13/plugin-manager.c:60:6: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
fuse-overlayfs-1.13/plugin-manager.c:62:13: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:65:6: branch_false: following ‘false’ branch (when ‘version’ is non-NULL)...
fuse-overlayfs-1.13/plugin-manager.c:68:7: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:68:7: throw: if the called function throws an exception...
fuse-overlayfs-1.13/plugin-manager.c:68:7: danger: ‘p’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#   66|       error (EXIT_FAILURE, 0, "cannot find symbol `plugin_version` in plugin %s", path);
#   67|   
#   68|->   if (version () != 1)
#   69|       error (EXIT_FAILURE, 0, "invalid plugin version for %s", path);
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
fuse-overlayfs-1.13/plugin-manager.c:76:13: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
fuse-overlayfs-1.13/plugin-manager.c:56:6: branch_false: following ‘false’ branch (when ‘handle’ is non-NULL)...
fuse-overlayfs-1.13/plugin-manager.c:59:7: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:59:7: acquire_memory: allocated here
fuse-overlayfs-1.13/plugin-manager.c:60:6: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
fuse-overlayfs-1.13/plugin-manager.c:62:13: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:65:6: branch_false: following ‘false’ branch (when ‘version’ is non-NULL)...
fuse-overlayfs-1.13/plugin-manager.c:68:7: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:68:6: branch_false: following ‘false’ branch...
fuse-overlayfs-1.13/plugin-manager.c:71:3: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:73:6: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
fuse-overlayfs-1.13/plugin-manager.c:76:13: branch_false: ...to here
fuse-overlayfs-1.13/plugin-manager.c:76:13: throw: if the called function throws an exception...
fuse-overlayfs-1.13/plugin-manager.c:76:13: danger: ‘p’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#   74|       error (EXIT_FAILURE, 0, "cannot find symbol `plugin_name` in plugin %s", path);
#   75|   
#   76|->   p->name = name ();
#   77|   
#   78|     if (plugin_find (context, p->name))

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def41]
fuse-overlayfs-1.13/utils.c:206:5: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘*(void *)p’
fuse-overlayfs-1.13/utils.c:206:5: release_resource: first ‘close’ here
fuse-overlayfs-1.13/utils.c:206:5: branch_true: following ‘true’ branch...
fuse-overlayfs-1.13/utils.c:206:5: danger: second ‘close’ here; first ‘close’ was at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  204|     int *pp = p;
#  205|     if (*pp >= 0)
#  206|->     TEMP_FAILURE_RETRY (close (*pp));
#  207|   }
#  208|   

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-210.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namefuse-overlayfs-1.13-5.fc44
store-results-to/tmp/tmp9rcvzf0y/fuse-overlayfs-1.13-5.fc44.tar.xz
time-created2026-01-08 16:24:18
time-finished2026-01-08 16:26:04
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp9rcvzf0y/fuse-overlayfs-1.13-5.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp9rcvzf0y/fuse-overlayfs-1.13-5.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9