Re: GSoC: Working on the static analyzer

2022-02-13 Thread David Malcolm via Gcc
On Sun, 2022-02-13 at 17:57 -0500, David Malcolm wrote: > On Sun, 2022-02-13 at 21:16 +0530, Mir Immad wrote: > > Hi, > > > > I wanted some clarification on bifurcating the exploded graph at > > call > > to > > open(). > > Should the analyzer warn for code like this "when open fails" (like > > str

Re: GSoC: Working on the static analyzer

2022-02-13 Thread David Malcolm via Gcc
On Sun, 2022-02-13 at 21:16 +0530, Mir Immad wrote: > Hi, > > I wanted some clarification on bifurcating the exploded graph at call > to > open(). > Should the analyzer warn for code like this "when open fails" (like > strchr > does when  'strchr' returns NULL) > > int fd = open("NOFILE", O_RDONL

gcc-12-20220213 is now available

2022-02-13 Thread GCC Administrator via Gcc
Snapshot gcc-12-20220213 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20220213/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Re: GSoC: Working on the static analyzer

2022-02-13 Thread Mir Immad via Gcc
Hi, I wanted some clarification on bifurcating the exploded graph at call to open(). Should the analyzer warn for code like this "when open fails" (like strchr does when 'strchr' returns NULL) int fd = open("NOFILE", O_RDONLY); write(fd, "a", 1); because of the bad file descriptor. unless it is