[PATCH] Fix out-of-bounds in gcov.c (PR gcov-profile/85871).
Martin Liška
mliska@suse.cz
Mon Sep 17 10:20:00 GMT 2018
Hi.
One obvious patch where we access src->lines one element after the end.
Survives gcov.exp tests, I'm going to install the patch.
Martin
gcc/ChangeLog:
2018-09-17 Martin Liska <mliska@suse.cz>
PR gcov-profile/85871
* gcov.c (output_intermediate_file): Fix out of bounds
access.
---
gcc/gcov.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-out-of-bounds-in-gcov.c-PR-gcov-profile-85871.patch
Type: text/x-patch
Size: 469 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180917/988c96da/attachment.bin>
More information about the Gcc-patches
mailing list