[Bug gcov-profile/80413] sanitizer detects undefined behaviour in gcov-io.c using -ftest-coverage
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 29 09:14:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80413
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon May 29 09:12:02 2017
New Revision: 248565
URL: https://gcc.gnu.org/viewcvs?rev=248565&root=gcc&view=rev
Log:
Backport r246903
2017-05-29 Martin Liska <mliska@suse.cz>
Backport from mainline
2017-04-13 Martin Liska <mliska@suse.cz>
PR gcov-profile/80413
* gcov-io.c (gcov_write_string): Copy to buffer just when
allocated size is greater than zero.
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/gcov-io.c
More information about the Gcc-bugs
mailing list