[PATCH] Do not call strlen with NULL argument in libgcov.

Martin Liška mliska@suse.cz
Mon Jun 24 13:11:00 GMT 2019


The patch is fixing an issue reported with clang-static-analyzer.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
I'm going to install the patch tomorrow if there are no objections.



2019-06-24  Martin Liska  <mliska@suse.cz>

	* libgcov-driver-system.c (replace_filename_variables): Do not
	call strlen with NULL argument.
 libgcc/libgcov-driver-system.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Do-not-call-strlen-with-NULL-argument-in-libgcov.patch
Type: text/x-patch
Size: 980 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190624/a7ba28f6/attachment.bin>

More information about the Gcc-patches mailing list