Task #132216 - added.err

back to task #132216
download
Error: CPPCHECK_WARNING (CWE-476):
pciutils-3.15.0/lib/dump.c:65: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
#   63|     int len, mn, bn, dn, fn, i, j;
#   64|   
#   65|->   while (fgets(buf, sizeof(buf)-1, f))
#   66|       {
#   67|         char *z = strchr(buf, '\n');

Error: CPPCHECK_WARNING (CWE-476):
pciutils-3.15.0/lib/dump.c:138: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
#  136|   	a->error("dump: Cannot open %s: %s", name, strerror(errno));
#  137|         err = dump_parse(a, f);
#  138|->       fclose(f);
#  139|       }
#  140|