man-db-2.13.0-1.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-569): [#def1]
/etc/cron.daily/man-db.cron:22:15: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#   20|   [[ -f $LOCKFILE ]] && exit 0
#   21|   
#   22|-> trap "{ rm -f $LOCKFILE ; exit 0; }" EXIT
#   23|   touch $LOCKFILE
#   24|   # create/update the mandb database

Error: GCC_ANALYZER_WARNING (CWE-122): [#def2]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c: scope_hint: In function 'make_hol'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:491:22: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:63: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1863:1: note: in expansion of macro '__argp_state_help'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1701:3: note: in expansion of macro '__flockfile'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:33: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:469:17: note: in expansion of macro 'oalias'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
/usr/include/features.h:511: included_from: Included from here.
/usr/include/assert.h:35: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/config.h:3287: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:24: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp.h:627:8: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:61: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:491:22: note: write of 8 bytes to beyond the end of the region
#  489|         for (o = opts, entry = hol->entries; ! oend (o); entry++)
#  490|           {
#  491|->           entry->opt = o;
#  492|             entry->num = 0;
#  493|             entry->short_options = so;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def3]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:492:22: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1863:1: note: in expansion of macro '__argp_state_help'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1701:3: note: in expansion of macro '__flockfile'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:469:17: note: in expansion of macro 'oalias'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp.h:627:8: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:492:22: note: write of 4 bytes to beyond the end of the region
#  490|           {
#  491|             entry->opt = o;
#  492|->           entry->num = 0;
#  493|             entry->short_options = so;
#  494|             entry->group = cur_group =

Error: GCC_ANALYZER_WARNING (CWE-122): [#def4]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:493:32: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1863:1: note: in expansion of macro '__argp_state_help'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1701:3: note: in expansion of macro '__flockfile'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:469:17: note: in expansion of macro 'oalias'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp.h:627:8: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:493:32: note: write of 8 bytes to beyond the end of the region
#  491|             entry->opt = o;
#  492|             entry->num = 0;
#  493|->           entry->short_options = so;
#  494|             entry->group = cur_group =
#  495|               o->group

Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c: scope_hint: In function 'hol_find_entry'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:663:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*entry.opt'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1863:1: note: in expansion of macro '__argp_state_help'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1701:3: note: in expansion of macro '__flockfile'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:469:17: note: in expansion of macro 'oalias'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:474:17: note: in expansion of macro 'oalias'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c: scope_hint: In function 'hol_find_entry'
#  661|         do
#  662|           {
#  663|->           const struct argp_option *opt = entry->opt;
#  664|             unsigned num_opts = entry->num;
#  665|   

Error: CPPCHECK_WARNING (CWE-476): [#def6]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1046: error[ctunullpointer]: Null pointer dereference: argp
# 1044|   argp_hol (const struct argp *argp, struct hol_cluster *cluster)
# 1045|   {
# 1046|->   const struct argp_child *child = argp->children;
# 1047|     struct hol *hol = make_hol (argp, cluster);
# 1048|     if (child)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/file-set.c: scope_hint: In function 'record_file'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/file-set.c:43:8: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
#   41|     {
#   42|       struct F_triple *ent_from_table = hash_insert (ht, ent);
#   43|->     if (ent_from_table == NULL)
#   44|         {
#   45|           /* Insertion failed due to lack of memory.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/file-set.c:49:8: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
#   47|         }
#   48|   
#   49|->     if (ent_from_table != ent)
#   50|         {
#   51|           /* There was already a matching entry in the table, so ENT was

Error: CPPCHECK_WARNING (CWE-758): [#def9]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/getopt.c:272: warning[objectIndex]: The address of variable 'ambig_fallback' might be accessed at non-zero index.
#  270|   		      }
#  271|   		    if (ambig_set && ambig_set != &ambig_fallback)
#  272|-> 		      ambig_set[option_index] = 1;
#  273|   		  }
#  274|   	      }

Error: CPPCHECK_WARNING (CWE-457): [#def10]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h:952: error[uninitvar]: Uninitialized variables: result.count, result.i, result.j
#  950|   #endif
#  951|   
#  952|->   return result;
#  953|   }
#  954|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def11]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_linkedhash_list.c:77: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h: scope_hint: In function 'gl_linked_iterator'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h:952:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
#  950|   #endif
#  951|   
#  952|->   return result;
#  953|   }
#  954|   

Error: CPPCHECK_WARNING (CWE-457): [#def12]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h:1023: warning[uninitvar]: Uninitialized variables: result.count, result.i, result.j
# 1021|   #endif
# 1022|   
# 1023|->   return result;
# 1024|   }
# 1025|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def13]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h: scope_hint: In function 'gl_linked_iterator_from_to'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h:1023:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
# 1021|   #endif
# 1022|   
# 1023|->   return result;
# 1024|   }
# 1025|   

Error: CPPCHECK_WARNING (CWE-457): [#def14]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h:603: error[uninitvar]: Uninitialized variables: result.count, result.i, result.j
#  601|   #endif
#  602|   
#  603|->   return result;
#  604|   }
#  605|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def15]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_rbtree_list.c:37: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h: scope_hint: In function 'gl_tree_iterator'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h:603:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
#  601|   #endif
#  602|   
#  603|->   return result;
#  604|   }
#  605|   

Error: CPPCHECK_WARNING (CWE-457): [#def16]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h:627: warning[uninitvar]: Uninitialized variables: result.count, result.i, result.j
#  625|   #endif
#  626|   
#  627|->   return result;
#  628|   }
#  629|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h: scope_hint: In function 'gl_tree_iterator_from_to'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h:627:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
#  625|   #endif
#  626|   
#  627|->   return result;
#  628|   }
#  629|   

Error: CPPCHECK_WARNING (CWE-457): [#def18]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c:477: error[uninitvar]: Uninitialized variables: result.i, result.j
#  475|   #endif
#  476|   
#  477|->   return result;
#  478|   }
#  479|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def19]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c: scope_hint: In function 'gl_array_iterator'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c:477:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.i'
#  475|   #endif
#  476|   
#  477|->   return result;
#  478|   }
#  479|   

Error: CPPCHECK_WARNING (CWE-457): [#def20]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c:498: warning[uninitvar]: Uninitialized variables: result.i, result.j
#  496|   #endif
#  497|   
#  498|->   return result;
#  499|   }
#  500|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def21]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c: scope_hint: In function 'gl_array_iterator_from_to'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c:498:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.i'
#  496|   #endif
#  497|   
#  498|->   return result;
#  499|   }
#  500|   

Error: CPPCHECK_WARNING (CWE-457): [#def22]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_map.c:271: error[uninitvar]: Uninitialized variables: result.count, result.q
#  269|   #endif
#  270|   
#  271|->   return result;
#  272|   }
#  273|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def23]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_map.c: scope_hint: In function 'gl_hash_iterator'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_map.c:271:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
#  269|   #endif
#  270|   
#  271|->   return result;
#  272|   }
#  273|   

Error: CPPCHECK_WARNING (CWE-457): [#def24]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_set.c:254: error[uninitvar]: Uninitialized variables: result.count, result.q
#  252|   #endif
#  253|   
#  254|->   return result;
#  255|   }
#  256|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def25]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_set.c: scope_hint: In function 'gl_hash_iterator'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_set.c:254:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
#  252|   #endif
#  253|   
#  254|->   return result;
#  255|   }
#  256|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/ialloc.h:60:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s + 1)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc'
#   58|   imalloc (idx_t s)
#   59|   {
#   60|->   return s <= SIZE_MAX ? malloc (s) : _gl_alloc_nomem ();
#   61|   }
#   62|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/ialloc.h:60:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc'
#   58|   imalloc (idx_t s)
#   59|   {
#   60|->   return s <= SIZE_MAX ? malloc (s) : _gl_alloc_nomem ();
#   61|   }
#   62|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/ialloc.h:106:10: warning[-Wanalyzer-malloc-leak]: leak of 'xicalloc(s, 1)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xicalloc'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xicalloc'
#  104|         s = 0;
#  105|       }
#  106|->   return calloc (n, s);
#  107|   }
#  108|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/stdopen.c: scope_hint: In function 'stdopen'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/stdopen.c:40:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'new_fd'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/stdopen.c:25: included_from: Included from here.
#   38|   {
#   39|     int fd;
#   40|->   for (fd = STDIN_FILENO; fd <= STDERR_FILENO; fd++)
#   41|       {
#   42|         if (fcntl (fd, F_GETFD) < 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/stdopen.c:52:63: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'new_fd'
#   50|             int mode = fd == STDIN_FILENO ? O_WRONLY : O_RDONLY;
#   51|             int full_fd = fd == STDIN_FILENO ? open ("/dev/full", mode) : -1;
#   52|->           int new_fd = full_fd < 0 ? open ("/dev/null", mode) : full_fd;
#   53|             if (new_fd < 0)
#   54|               return errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/stdopen.c:55:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor
#   53|             if (new_fd < 0)
#   54|               return errno;
#   55|->           if (STDERR_FILENO < new_fd)
#   56|               {
#   57|                 /* 0, 1, and 2 are already open somehow.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xmalloc'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(n)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:22: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xmalloc'
#   43|   xmalloc (size_t s)
#   44|   {
#   45|->   return check_nonnull (malloc (s));
#   46|   }
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(s)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xmalloc'
#   43|   xmalloc (size_t s)
#   44|   {
#   45|->   return check_nonnull (malloc (s));
#   46|   }
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xcalloc'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:298:10: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(s, 1)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xcalloc'
#  296|   xcalloc (size_t n, size_t s)
#  297|   {
#  298|->   return check_nonnull (calloc (n, s));
#  299|   }
#  300|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xmemdup'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:314:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmemdup(string,  strlen(string) + 1)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xmemdup'
#  312|   xmemdup (void const *p, size_t s)
#  313|   {
#  314|->   return memcpy (xmalloc (s), p, s);
#  315|   }
#  316|   

Error: COMPILER_WARNING (CWE-1164): [#def36]
man-db-2.13.0-build/man-db-2.13.0/lib/security.c: scope_hint: At top level
man-db-2.13.0-build/man-db-2.13.0/lib/security.c:41:9: warning[-Wunused-macros]: macro "_" is not used
#   41 | #define _(String) gettext (String)
#      |         ^
#   39|   #include "error.h"
#   40|   #include "gettext.h"
#   41|-> #define _(String) gettext (String)
#   42|   
#   43|   #include "manconfig.h"

Error: COMPILER_WARNING: [#def37]
man-db-2.13.0-build/man-db-2.13.0/lib/security.c: scope_hint: In function 'running_setuid'
man-db-2.13.0-build/man-db-2.13.0/lib/security.c:99:21: warning[-Wsuggest-attribute=const]: function might be candidate for attribute 'const'
#   99 | bool ATTRIBUTE_PURE running_setuid (void)
#      |                     ^~~~~~~~~~~~~~
#   97|   }
#   98|   
#   99|-> bool ATTRIBUTE_PURE running_setuid (void)
#  100|   {
#  101|   #ifdef MAN_OWNER

Error: COMPILER_WARNING: [#def38]
man-db-2.13.0-build/man-db-2.13.0/src/manp.c:496:7: warning[-Wsuggest-attribute=malloc]: function might be candidate for attribute ‘malloc’
#  496 | char *add_nls_manpaths (const char *manpathlist, const char *locales)
#      |       ^~~~~~~~~~~~~~~~
#  494|   }
#  495|   
#  496|-> char *add_nls_manpaths (const char *manpathlist, const char *locales)
#  497|   {
#  498|   	char *manpath = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def39]
man-db-2.13.0-build/man-db-2.13.0/src/zsoelim.c:1940: warning[nullPointer]: Possible null pointer dereference: b
# 1938|   	yy_flush_buffer( b );
# 1939|   
# 1940|-> 	b->yy_input_file = file;
# 1941|   	b->yy_fill_buffer = 1;
# 1942|   

Error: CPPCHECK_WARNING (CWE-476): [#def40]
man-db-2.13.0-build/man-db-2.13.0/src/zsoelim.c:1941: warning[nullPointer]: Possible null pointer dereference: b
# 1939|   
# 1940|   	b->yy_input_file = file;
# 1941|-> 	b->yy_fill_buffer = 1;
# 1942|   
# 1943|       /* If b is the current buffer, then yy_init_buffer was _probably_

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-111.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameman-db-2.13.0-1.fc42
store-results-to/tmp/tmp_qg63j94/man-db-2.13.0-1.fc42.tar.xz
time-created2024-11-13 02:04:42
time-finished2024-11-13 02:08:02
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp_qg63j94/man-db-2.13.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp_qg63j94/man-db-2.13.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9