Re: Help: static code anaylis

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 13, 2020 at 12:56 PM Kunal Chauhan via Gcc-help
<gcc-help@xxxxxxxxxxx> wrote:
>
> I want my source file of c to be checked for code violations and null check
> etc.

If by 'null check' you mean null pointer checks, then some of them are
detected with -fsanitize=undefined. Another one that may help is
-fsanitize=address.

And Valgrind with -O1 is fairly reliable. Also see
http://valgrind.org/docs/manual/QuickStart.html.

Jeff



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux