public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC static analysis branch now available on Compiler Explorer
@ 2019-12-10 15:47 David Malcolm
  2019-12-10 16:04 ` Marek Polacek
  2019-12-10 16:36 ` Martin Sebor
  0 siblings, 2 replies; 10+ messages in thread
From: David Malcolm @ 2019-12-10 15:47 UTC (permalink / raw)
  To: gcc

For the adventurous/curious, my static analyzer branch of GCC [1] is
now available on Compiler Explorer (aka godbolt.org) so you can try it
out without building it yourself.  [Thanks to Matt Godbolt, Patrick
Quist and others at the Compiler Explorer project]

On https://godbolt.org/ within the C and C++ languages, select
  "x86-64 gcc (static analysis)"
as the compiler (though strictly speaking only C is in-scope right
now).  It's configured to automatically inject -fanalyzer (just on this
site; it isn't the default in the branch).

Some precanned examples:
  * various malloc issues: https://godbolt.org/z/tnx65n
  * stdio issues: https://godbolt.org/z/4BP-Tj
  * fprintf in signal handler: https://godbolt.org/z/ew7mW6
  * tainted data affecting control flow: https://godbolt.org/z/3v8vSj
  * password-leakage: https://godbolt.org/z/pRPYiv
(the non-malloc examples are much more in "proof-of-concept" territory)

Would it make sense to add an "analyzer" component to our bugzilla,
even though this is still on a branch? (with me as default assignee)

Dave

[1] https://gcc.gnu.org/wiki/DavidMalcolm/StaticAnalyzer


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

end of thread, other threads:[~2019-12-12 16:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10 15:47 GCC static analysis branch now available on Compiler Explorer David Malcolm
2019-12-10 16:04 ` Marek Polacek
2019-12-10 17:11   ` David Malcolm
2019-12-10 17:20     ` David Malcolm
2019-12-10 16:36 ` Martin Sebor
2019-12-10 17:57   ` David Malcolm
2019-12-10 19:51     ` Martin Sebor
2019-12-10 20:42       ` Jeff Law
2019-12-11 20:39         ` David Malcolm
2019-12-12 16:27         ` Martin Sebor

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).