Help: static code anaylis

Jonathan Wakely jwakely.gcc@gmail.com
Wed May 13 17:48:03 GMT 2020


On Wed, 13 May 2020 at 17:57, Kunal Chauhan via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> Hi team
>
> I want my source file of c to be checked for code violations and null check
> etc.

Make sure you're compiling with warnings turned on.

> As from logs crash is coming.

As Dan K. said, you'll probably get more reliable results from dynamic
instrumentation. Try using -fsanitize=undefined and/or
-fsanitize=address. Try using valgrind (not at the same time as
-fsantiize=address).


More information about the Gcc-help mailing list