Task #91031 - fixed.err

back to task #91031
download
Error: GCC_ANALYZER_WARNING (CWE-404):
gzip-1.13/lib/fprintf.c:45:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
gzip-1.13/lib/fprintf.c:44:3: acquire_resource: 'va_start' called here
gzip-1.13/lib/fprintf.c:45:12: throw: if 'vasnprintf' throws an exception...
gzip-1.13/lib/fprintf.c:45:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   43|   
#   44|     va_start (args, format);
#   45|->   output = vasnprintf (buf, &lenbuf, format, args);
#   46|     len = lenbuf;
#   47|     va_end (args);

Error: GCC_ANALYZER_WARNING (CWE-401):
gzip-1.13/lib/opendir-safer.c:69:11: warning[-Wanalyzer-malloc-leak]: leak of 'newdp'
gzip-1.13/lib/opendir-safer.c:35:6: branch_true: following 'true' branch...
gzip-1.13/lib/opendir-safer.c:37:16: branch_true: ...to here
gzip-1.13/lib/opendir-safer.c:39:10: branch_true: following 'true' branch...
gzip-1.13/lib/opendir-safer.c:52:19: branch_true: ...to here
gzip-1.13/lib/opendir-safer.c:53:14: branch_false: following 'false' branch...
gzip-1.13/lib/opendir-safer.c:60:23: branch_false: ...to here
gzip-1.13/lib/opendir-safer.c:60:23: acquire_memory: allocated here
gzip-1.13/lib/opendir-safer.c:62:18: branch_false: following 'false' branch...
gzip-1.13/lib/opendir-safer.c:69:11: branch_false: ...to here
gzip-1.13/lib/opendir-safer.c:69:11: throw: if 'closedir' throws an exception...
gzip-1.13/lib/opendir-safer.c:69:11: danger: 'newdp' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   67|             e = errno;
#   68|   #endif
#   69|->           closedir (dp);
#   70|             errno = e;
#   71|             dp = newdp;

Error: GCC_ANALYZER_WARNING (CWE-401):
gzip-1.13/lib/savedir.c:110:12: warning[-Wanalyzer-malloc-leak]: leak of 'opendir_safer(dir)'
gzip-1.13/lib/savedir.c:177:1: enter_function: entry to 'savedir'
gzip-1.13/lib/savedir.c:179:15: acquire_memory: allocated here
gzip-1.13/lib/savedir.c:180:6: branch_false: following 'false' branch...
gzip-1.13/lib/savedir.c:184:26: branch_false: ...to here
gzip-1.13/lib/savedir.c:184:26: call_function: calling 'streamsavedir' from 'savedir'
#  108|   
#  109|         errno = 0;
#  110|->       dp = readdir (dirp);
#  111|         if (! dp)
#  112|           break;