[Bug gcov-profile/97069] Zero valued #line directive results in excessively large blocks of memory being allocated
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Oct 1 19:19:50 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97069
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Martin Liska
<marxin@gcc.gnu.org>:
https://gcc.gnu.org/g:bc3914f307211c42f31af7e64d2e6cc8a69837cb
commit r10-8838-gbc3914f307211c42f31af7e64d2e6cc8a69837cb
Author: Martin Liska <mliska@suse.cz>
Date: Mon Sep 21 16:26:10 2020 +0200
gcov: fix streaming corruption
gcc/ChangeLog:
PR gcov-profile/97069
* profile.c (branch_prob): Line number must be at least 1.
gcc/testsuite/ChangeLog:
PR gcov-profile/97069
* g++.dg/gcov/pr97069.C: New test.
(cherry picked from commit 6b4e8bf88f1172ce8561f57b12fb81063b21a78f)
More information about the Gcc-bugs
mailing list