public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/99771] New: Analyzer diagnostics should not say "<unknown>"
@ 2021-03-25 15:26 dmalcolm at gcc dot gnu.org
  2021-03-25 15:26 ` [Bug analyzer/99771] " dmalcolm at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2021-03-25 15:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99771

            Bug ID: 99771
           Summary: Analyzer diagnostics should not say "<unknown>"
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

Various analyzer diagnostics talk about "<unknown>"; examples can be seen in
the testsuite:
  data-model-10.c:
    *new_table->m_f = NULL; // "dereference of possibly-NULL '<unknown>'"

  malloc-1.c (test_44):
    free (global_ptr); // "leak of '<unknown>'"

  malloc-ipa-13.c:
    calls_free (f.m_p); //"passing freed pointer '<unknown>' in call to
'calls_free' from 'test'"

and IIRC I've seen these "in the wild" recently as well.

We shouldn't emit "<unknown>" to the end-user.

Filing this bug to have a place to track fixing these.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-08 19:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-25 15:26 [Bug analyzer/99771] New: Analyzer diagnostics should not say "<unknown>" dmalcolm at gcc dot gnu.org
2021-03-25 15:26 ` [Bug analyzer/99771] " dmalcolm at gcc dot gnu.org
2021-03-30 21:52 ` cvs-commit at gcc dot gnu.org
2021-03-31 23:18 ` cvs-commit at gcc dot gnu.org
2021-03-31 23:21 ` dmalcolm at gcc dot gnu.org
2022-03-07 19:21 ` cvs-commit at gcc dot gnu.org
2022-03-08 19:17 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).