webkitgtk-2.51.4-2.fc44

List of Findings

Error: CPPCHECK_WARNING (CWE-562): [#def1]
webkitgtk-2.51.4/Source/ThirdParty/skia/src/sksl/ir/SkSLSymbolTable.h:124: error[returnDanglingLifetime]: Returning pointer to local variable 'symbol' that will be invalid when returning.
#  122|           T* ptr = symbol.get();
#  123|           this->addWithoutOwnership(context, this->takeOwnershipOfSymbol(std::move(symbol)));
#  124|->         return ptr;
#  125|       }
#  126|   

Error: CPPCHECK_WARNING (CWE-562): [#def2]
webkitgtk-2.51.4/Source/ThirdParty/skia/src/sksl/ir/SkSLSymbolTable.h:135: error[returnDanglingLifetime]: Returning pointer to local variable 'symbol' that will be invalid when returning.
#  133|           T* ptr = symbol.get();
#  134|           this->addWithoutOwnershipOrDie(this->takeOwnershipOfSymbol(std::move(symbol)));
#  135|->         return ptr;
#  136|       }
#  137|   

Error: CPPCHECK_WARNING (CWE-562): [#def3]
webkitgtk-2.51.4/Source/ThirdParty/skia/src/sksl/ir/SkSLSymbolTable.h:152: error[returnDanglingLifetime]: Returning pointer to local variable 'symbol' that will be invalid when returning.
#  150|           T* ptr = symbol.get();
#  151|           this->injectWithoutOwnership(this->takeOwnershipOfSymbol(std::move(symbol)));
#  152|->         return ptr;
#  153|       }
#  154|   

Error: CPPCHECK_WARNING (CWE-562): [#def4]
webkitgtk-2.51.4/Source/ThirdParty/skia/src/sksl/ir/SkSLSymbolTable.h:162: error[returnDanglingLifetime]: Returning pointer to local variable 'symbol' that will be invalid when returning.
#  160|           T* ptr = symbol.get();
#  161|           fOwnedSymbols.push_back(std::move(symbol));
#  162|->         return ptr;
#  163|       }
#  164|   

Error: CPPCHECK_WARNING (CWE-476): [#def5]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:117: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  115|     
#  116|     list = calloc (1, sizeof (XdgDirTimeList));
#  117|->   list->checked = XDG_CHECKED_UNCHECKED;
#  118|     list->directory_name = file_name;
#  119|     list->mtime = mtime;

Error: CPPCHECK_WARNING (CWE-476): [#def6]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:118: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  116|     list = calloc (1, sizeof (XdgDirTimeList));
#  117|     list->checked = XDG_CHECKED_UNCHECKED;
#  118|->   list->directory_name = file_name;
#  119|     list->mtime = mtime;
#  120|     list->next = dir_time_list;

Error: CPPCHECK_WARNING (CWE-476): [#def7]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:119: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  117|     list->checked = XDG_CHECKED_UNCHECKED;
#  118|     list->directory_name = file_name;
#  119|->   list->mtime = mtime;
#  120|     list->next = dir_time_list;
#  121|     dir_time_list = list;

Error: CPPCHECK_WARNING (CWE-476): [#def8]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:120: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  118|     list->directory_name = file_name;
#  119|     list->mtime = mtime;
#  120|->   list->next = dir_time_list;
#  121|     dir_time_list = list;
#  122|   }

Error: CPPCHECK_WARNING (CWE-476): [#def9]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:147: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  145|   
#  146|     file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
#  147|->   strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
#  148|     if (stat (file_name, &st) == 0)
#  149|       {

Error: CPPCHECK_WARNING (CWE-401): [#def10]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:156: error[memleakOnRealloc]: Common realloc mistake: '_caches' nulled but not freed upon failure
#  154|   	  xdg_dir_time_list_add (file_name, st.st_mtime);
#  155|   
#  156|-> 	  _caches = realloc (_caches, sizeof (XdgMimeCache *) * (n_caches + 2));
#  157|   	  _caches[n_caches] = cache;
#  158|             _caches[n_caches + 1] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def11]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:167: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  165|   
#  166|     file_name = malloc (strlen (directory) + strlen ("/mime/globs2") + 1);
#  167|->   strcpy (file_name, directory); strcat (file_name, "/mime/globs2");
#  168|     if (stat (file_name, &st) == 0)
#  169|       {

Error: CPPCHECK_WARNING (CWE-476): [#def12]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:177: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  175|         free (file_name);
#  176|         file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
#  177|->       strcpy (file_name, directory); strcat (file_name, "/mime/globs");
#  178|         if (stat (file_name, &st) == 0)
#  179|           {

Error: CPPCHECK_WARNING (CWE-476): [#def13]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  188|   
#  189|     file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
#  190|->   strcpy (file_name, directory); strcat (file_name, "/mime/magic");
#  191|     if (stat (file_name, &st) == 0)
#  192|       {

Error: CPPCHECK_WARNING (CWE-476): [#def14]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:202: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  200|   
#  201|     file_name = malloc (strlen (directory) + strlen ("/mime/aliases") + 1);
#  202|->   strcpy (file_name, directory); strcat (file_name, "/mime/aliases");
#  203|     _xdg_mime_alias_read_from_file (alias_list, file_name);
#  204|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def15]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:207: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  205|   
#  206|     file_name = malloc (strlen (directory) + strlen ("/mime/subclasses") + 1);
#  207|->   strcpy (file_name, directory); strcat (file_name, "/mime/subclasses");
#  208|     _xdg_mime_parent_read_from_file (parent_list, file_name);
#  209|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def16]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  210|   
#  211|     file_name = malloc (strlen (directory) + strlen ("/mime/icons") + 1);
#  212|->   strcpy (file_name, directory); strcat (file_name, "/mime/icons");
#  213|     _xdg_mime_icon_read_from_file (icon_list, file_name);
#  214|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def17]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:217: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  215|   
#  216|     file_name = malloc (strlen (directory) + strlen ("/mime/generic-icons") + 1);
#  217|->   strcpy (file_name, directory); strcat (file_name, "/mime/generic-icons");
#  218|     _xdg_mime_icon_read_from_file (generic_icon_list, file_name);
#  219|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def18]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:250: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: guessed_xdg_home
#  248|   
#  249|   	  guessed_xdg_home = malloc (strlen (home) + strlen ("/.local/share/") + 1);
#  250|-> 	  strcpy (guessed_xdg_home, home);
#  251|   	  strcat (guessed_xdg_home, "/.local/share/");
#  252|   	  stop_processing = (func) (guessed_xdg_home, user_data);

Error: CPPCHECK_WARNING (CWE-476): [#def19]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:251: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: guessed_xdg_home
#  249|   	  guessed_xdg_home = malloc (strlen (home) + strlen ("/.local/share/") + 1);
#  250|   	  strcpy (guessed_xdg_home, home);
#  251|-> 	  strcat (guessed_xdg_home, "/.local/share/");
#  252|   	  stop_processing = (func) (guessed_xdg_home, user_data);
#  253|   	  free (guessed_xdg_home);

Error: CPPCHECK_WARNING (CWE-476): [#def20]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:288: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dir
#  286|   	len = end_ptr - ptr + 1;
#  287|         dir = malloc (len + 1);
#  288|->       strncpy (dir, ptr, len);
#  289|         dir[len] = '\0';
#  290|         stop_processing = (func) (dir, user_data);

Error: CPPCHECK_WARNING (CWE-476): [#def21]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:289: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dir
#  287|         dir = malloc (len + 1);
#  288|         strncpy (dir, ptr, len);
#  289|->       dir[len] = '\0';
#  290|         stop_processing = (func) (dir, user_data);
#  291|         free (dir);

Error: CPPCHECK_WARNING (CWE-476): [#def22]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:352: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  350|     /* Check the mime.cache file */
#  351|     file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
#  352|->   strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
#  353|     invalid = xdg_check_file (file_name, &exists);
#  354|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def23]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:367: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  365|     /* Check the globs file */
#  366|     file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
#  367|->   strcpy (file_name, directory); strcat (file_name, "/mime/globs");
#  368|     invalid = xdg_check_file (file_name, NULL);
#  369|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def24]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:378: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  376|     /* Check the magic file */
#  377|     file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
#  378|->   strcpy (file_name, directory); strcat (file_name, "/mime/magic");
#  379|     invalid = xdg_check_file (file_name, NULL);
#  380|     free (file_name);

Error: CPPCHECK_WARNING (CWE-476): [#def25]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:838: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  836|     n = (i + 1) * sizeof (char *);
#  837|     result = (char **) malloc (n);
#  838|->   memcpy (result, parents, n);
#  839|   
#  840|     return result;

Error: CPPCHECK_WARNING (CWE-476): [#def26]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:885: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  883|     /* Make a new list element */
#  884|     list_el = calloc (1, sizeof (XdgCallbackList));
#  885|->   list_el->callback_id = callback_id;
#  886|     list_el->callback = callback;
#  887|     list_el->data = data;

Error: CPPCHECK_WARNING (CWE-476): [#def27]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:886: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  884|     list_el = calloc (1, sizeof (XdgCallbackList));
#  885|     list_el->callback_id = callback_id;
#  886|->   list_el->callback = callback;
#  887|     list_el->data = data;
#  888|     list_el->destroy = destroy;

Error: CPPCHECK_WARNING (CWE-476): [#def28]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:887: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  885|     list_el->callback_id = callback_id;
#  886|     list_el->callback = callback;
#  887|->   list_el->data = data;
#  888|     list_el->destroy = destroy;
#  889|     list_el->next = callback_list;

Error: CPPCHECK_WARNING (CWE-476): [#def29]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:888: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  886|     list_el->callback = callback;
#  887|     list_el->data = data;
#  888|->   list_el->destroy = destroy;
#  889|     list_el->next = callback_list;
#  890|     if (list_el->next)

Error: CPPCHECK_WARNING (CWE-476): [#def30]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:889: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  887|     list_el->data = data;
#  888|     list_el->destroy = destroy;
#  889|->   list_el->next = callback_list;
#  890|     if (list_el->next)
#  891|       list_el->next->prev = list_el;

Error: CPPCHECK_WARNING (CWE-476): [#def31]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmime.c:890: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  888|     list_el->destroy = destroy;
#  889|     list_el->next = callback_list;
#  890|->   if (list_el->next)
#  891|       list_el->next->prev = list_el;
#  892|   

Error: CPPCHECK_WARNING (CWE-476): [#def32]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimealias.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   67|     list = malloc (sizeof (XdgAliasList));
#   68|   
#   69|->   list->aliases = NULL;
#   70|     list->n_aliases = 0;
#   71|   

Error: CPPCHECK_WARNING (CWE-476): [#def33]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimealias.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   68|   
#   69|     list->aliases = NULL;
#   70|->   list->n_aliases = 0;
#   71|   
#   72|     return list;

Error: CPPCHECK_WARNING (CWE-476): [#def34]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimecache.c:151: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  149|     
#  150|     cache = (XdgMimeCache *) malloc (sizeof (XdgMimeCache));
#  151|->   cache->minor = minor;
#  152|     cache->ref_count = 1;
#  153|     cache->buffer = buffer;

Error: CPPCHECK_WARNING (CWE-476): [#def35]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimecache.c:152: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  150|     cache = (XdgMimeCache *) malloc (sizeof (XdgMimeCache));
#  151|     cache->minor = minor;
#  152|->   cache->ref_count = 1;
#  153|     cache->buffer = buffer;
#  154|     cache->size = st.st_size;

Error: CPPCHECK_WARNING (CWE-476): [#def36]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimecache.c:153: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  151|     cache->minor = minor;
#  152|     cache->ref_count = 1;
#  153|->   cache->buffer = buffer;
#  154|     cache->size = st.st_size;
#  155|   

Error: CPPCHECK_WARNING (CWE-476): [#def37]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimecache.c:154: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  152|     cache->ref_count = 1;
#  153|     cache->buffer = buffer;
#  154|->   cache->size = st.st_size;
#  155|   
#  156|    done:

Error: CPPCHECK_WARNING (CWE-476): [#def38]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimecache.c:579: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  577|     lower = strdup (str);
#  578|     p = lower;
#  579|->   while (*p != 0)
#  580|       {
#  581|         char c = *p;

Error: CPPCHECK_WARNING (CWE-476): [#def39]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimecache.c:981: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  979|     
#  980|     result = (char **) malloc (p * sizeof (char *));
#  981|->   memcpy (result, all_parents, p * sizeof (char *));
#  982|   
#  983|     return result;

Error: CPPCHECK_WARNING (CWE-476): [#def40]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:124: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  122|     while (tmp_element != NULL)
#  123|       {
#  124|->       if (strcmp (tmp_element->data, data) == 0 &&
#  125|   	  strcmp (tmp_element->mime_type, mime_type) == 0)
#  126|   	return glob_list;

Error: CPPCHECK_WARNING (CWE-476): [#def41]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:125: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mime_type
#  123|       {
#  124|         if (strcmp (tmp_element->data, data) == 0 &&
#  125|-> 	  strcmp (tmp_element->mime_type, mime_type) == 0)
#  126|   	return glob_list;
#  127|   

Error: CPPCHECK_WARNING (CWE-476): [#def42]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimeglob.c:395: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  393|     lower = strdup (str);
#  394|     p = lower;
#  395|->   while (*p != 0)
#  396|       {
#  397|         char c = *p;

Error: CPPCHECK_WARNING (CWE-476): [#def43]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:68: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   66|     list = malloc (sizeof (XdgIconList));
#   67|   
#   68|->   list->icons = NULL;
#   69|     list->n_icons = 0;
#   70|   

Error: CPPCHECK_WARNING (CWE-476): [#def44]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimeicon.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   67|   
#   68|     list->icons = NULL;
#   69|->   list->n_icons = 0;
#   70|   
#   71|     return list;

Error: CPPCHECK_WARNING (CWE-476): [#def45]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  105|     matchlet = malloc (sizeof (XdgMimeMagicMatchlet));
#  106|   
#  107|->   matchlet->indent = 0;
#  108|     matchlet->offset = 0;
#  109|     matchlet->value_length = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def46]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  106|   
#  107|     matchlet->indent = 0;
#  108|->   matchlet->offset = 0;
#  109|     matchlet->value_length = 0;
#  110|     matchlet->value = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def47]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  107|     matchlet->indent = 0;
#  108|     matchlet->offset = 0;
#  109|->   matchlet->value_length = 0;
#  110|     matchlet->value = NULL;
#  111|     matchlet->mask = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def48]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  108|     matchlet->offset = 0;
#  109|     matchlet->value_length = 0;
#  110|->   matchlet->value = NULL;
#  111|     matchlet->mask = NULL;
#  112|     matchlet->range_length = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def49]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  109|     matchlet->value_length = 0;
#  110|     matchlet->value = NULL;
#  111|->   matchlet->mask = NULL;
#  112|     matchlet->range_length = 1;
#  113|     matchlet->word_size = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def50]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:112: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  110|     matchlet->value = NULL;
#  111|     matchlet->mask = NULL;
#  112|->   matchlet->range_length = 1;
#  113|     matchlet->word_size = 1;
#  114|     matchlet->next = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def51]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:113: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  111|     matchlet->mask = NULL;
#  112|     matchlet->range_length = 1;
#  113|->   matchlet->word_size = 1;
#  114|     matchlet->next = NULL;
#  115|   

Error: CPPCHECK_WARNING (CWE-476): [#def52]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:114: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matchlet
#  112|     matchlet->range_length = 1;
#  113|     matchlet->word_size = 1;
#  114|->   matchlet->next = NULL;
#  115|   
#  116|     return matchlet;

Error: CPPCHECK_WARNING (CWE-401): [#def53]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimemagic.c:188: error[memleakOnRealloc]: Common realloc mistake: 'retval' nulled but not freed upon failure
#  186|   	{
#  187|   	  len = len + 128;
#  188|-> 	  retval = realloc (retval, len);
#  189|   	}
#  190|       }

Error: CPPCHECK_WARNING (CWE-476): [#def54]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   68|     list = malloc (sizeof (XdgParentList));
#   69|   
#   70|->   list->parents = NULL;
#   71|     list->n_mimes = 0;
#   72|   

Error: CPPCHECK_WARNING (CWE-476): [#def55]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:71: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   69|   
#   70|     list->parents = NULL;
#   71|->   list->n_mimes = 0;
#   72|   
#   73|     return list;

Error: CPPCHECK_WARNING (CWE-457): [#def56]
webkitgtk-2.51.4/Source/ThirdParty/xdgmime/src/xdgmimeparent.c:115: error[uninitvar]: Uninitialized variable: &key.n_parents
#  113|         key.parents = NULL;
#  114|   
#  115|->       entry = bsearch (&key, list->parents, list->n_mimes,
#  116|   		       sizeof (XdgMimeParents), &parent_entry_cmp);
#  117|         if (entry)

Error: CLANG_WARNING: [#def57]
webkitgtk-2.51.4/Source/bmalloc/libpas/src/libpas/bmalloc_type.c:62:32: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
#   62 |     type_name_start_marker_ptr = strstr(name, type_name_start_marker);
#      |                                ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   60|       size_t index;
#   61|   
#   62|->     type_name_start_marker_ptr = strstr(name, type_name_start_marker);
#   63|       if (!type_name_start_marker_ptr)
#   64|           return false;

Error: CLANG_WARNING: [#def58]
webkitgtk-2.51.4/Source/bmalloc/libpas/src/libpas/bmalloc_type.c:79:46: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
#   79 |                 flexible_array_member_marker = strstr(name, "primitiveHeapRefForTypeWithFlexibleArrayMember");
#      |                                              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   77|                   char* flexible_array_member_marker;
#   78|   
#   79|->                 flexible_array_member_marker = strstr(name, "primitiveHeapRefForTypeWithFlexibleArrayMember");
#   80|                   if (flexible_array_member_marker)
#   81|                       pas_stream_printf(stream, "ObjectWithFlexibleArrayMember, ");

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-198.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-namewebkitgtk-2.51.4-2.fc44
store-results-to/tmp/tmp8c1k_tsm/webkitgtk-2.51.4-2.fc44.tar.xz
time-created2026-01-09 03:07:29
time-finished2026-01-09 07:56:37
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp8c1k_tsm/webkitgtk-2.51.4-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp8c1k_tsm/webkitgtk-2.51.4-2.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9