Task #52028 - added.err

back to task #52028
download
Error: GCC_ANALYZER_WARNING (CWE-401):
grep-3.12/gnulib-tests/struniq.h:118:10: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
grep-3.12/gnulib-tests/struniq.h:92:5: acquire_memory: allocated here
grep-3.12/gnulib-tests/struniq.h:93:6: branch_false: following 'false' branch (when 'new_node' is non-NULL)...
grep-3.12/gnulib-tests/struniq.h:96:11: branch_false: ...to here
grep-3.12/gnulib-tests/struniq.h:118:10: danger: 'new_node' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  116|       if (mt) gl_lock_unlock (struniq_lock);
#  117|     }
#  118|->   return new_node->contents;
#  119|   }

Error: COMPILER_WARNING:
grep-3.12/lib/dfa.c:2606:12: warning[-Wstringop-overflow=]: writing 1 byte into a region of size 0
# 2606 |   flags[0] |= OPT_QUEUED;
#      |            ^
grep-3.12/lib/ialloc.h:91:10: note: destination object of size 0 allocated by 'calloc'
#   91 |   return calloc (n, s);
#      |          ^
# 2604|       }
# 2605|   
# 2606|->   flags[0] |= OPT_QUEUED;
# 2607|   
# 2608|     position_set merged0;

Error: GCC_ANALYZER_WARNING (CWE-401):
grep-3.12/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(n)'
grep-3.12/lib/xmalloc.c:55:1: enter_function: entry to 'xcharalloc'
grep-3.12/lib/xmalloc.c:57:10: call_function: calling 'xmalloc' from 'xcharalloc'
#   43|   xmalloc (size_t s)
#   44|   {
#   45|->   return check_nonnull (malloc (s));
#   46|   }
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-401):
grep-3.12/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(s)'
grep-3.12/lib/xmalloc.c:312:1: enter_function: entry to 'xmemdup'
grep-3.12/lib/xmalloc.c:314:18: call_function: calling 'xmalloc' from 'xmemdup'
#   43|   xmalloc (size_t s)
#   44|   {
#   45|->   return check_nonnull (malloc (s));
#   46|   }
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-401):
grep-3.12/lib/xmalloc.c:298:10: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(s, 1)'
grep-3.12/lib/xmalloc.c:281:1: enter_function: entry to 'xzalloc'
grep-3.12/lib/xmalloc.c:283:10: call_function: calling 'xcalloc' from 'xzalloc'
#  296|   xcalloc (size_t n, size_t s)
#  297|   {
#  298|->   return check_nonnull (calloc (n, s));
#  299|   }
#  300|