Go to file
David Malcolm f3f312b535 analyzer: only use CWE-690 for unchecked return value [PR97893]
CWE-690 is only for dereferencing an unchecked return value; for
other kinds of NULL dereference, use the parent classification, CWE-476.

gcc/analyzer/ChangeLog:
	PR analyzer/97893
	* sm-malloc.cc (null_deref::emit): Use CWE-476 rather than
	CWE-690, as this isn't due to an unchecked return value.
	(null_arg::emit): Likewise.

gcc/testsuite/ChangeLog:
	PR analyzer/97893
	* gcc.dg/analyzer/malloc-1.c: Add CWE-690 and CWE-476 codes to
	expected output.
2020-11-18 15:53:36 -05:00
config
contrib Daily bump. 2020-11-17 00:16:27 +00:00
fixincludes aix: Fixinclude 2020-11-18 10:33:30 -08:00
gcc analyzer: only use CWE-690 for unchecked return value [PR97893] 2020-11-18 15:53:36 -05:00
gnattools
gotools Daily bump. 2020-10-30 00:16:29 +00:00
include
INSTALL
intl
libada
libatomic
libbacktrace Daily bump. 2020-10-21 00:16:36 +00:00
libcc1 Daily bump. 2020-11-12 00:16:39 +00:00
libcpp preprocessor: C++ module-directives 2020-11-18 10:24:12 -08:00
libdecnumber
libffi
libgcc MSP430: Add 64-bit hardware multiply support 2020-11-18 11:05:27 +00:00
libgfortran Daily bump. 2020-11-02 20:53:00 +00:00
libgo cmd/go, cmd/cgo: update gofrontend mangling checks 2020-11-17 18:32:07 -08:00
libgomp openmp: Retire nest-var ICV for OpenMP 5.1 2020-11-18 11:24:36 -08:00
libhsail-rt
libiberty Daily bump. 2020-11-14 00:16:38 +00:00
libitm
libobjc
liboffloadmic
libphobos d: Add dragonflybsd support for D compiler and runtime 2020-11-18 10:22:06 +01:00
libquadmath
libsanitizer Daily bump. 2020-11-14 00:16:38 +00:00
libssp
libstdc++-v3 libstdc++: Fix ranges::join_view::_Iterator::operator-> [LWG 3500] 2020-11-18 10:23:57 -05:00
libvtv
lto-plugin
maintainer-scripts
zlib
.dir-locals.el
.gitattributes
.gitignore Add .cache to git ignore. 2020-11-16 12:52:43 +01:00
ABOUT-NLS
ar-lib
ChangeLog Daily bump. 2020-11-17 00:16:27 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in config-ml.in: Suppress output from multi-do recipes 2020-11-09 14:28:37 +00:00
config.guess
config.rpath
config.sub
configure
configure.ac
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS MAINTAINERS: add myself for write after approval 2020-11-13 11:01:12 +08:00
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
symlink-tree
test-driver
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.