From: "Martin Liška" <mliska@suse.cz>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: GCC 8 backports
Date: Tue, 18 Sep 2018 09:37:00 -0000 [thread overview]
Message-ID: <32e46ac2-3865-1b46-93bf-5ada7f8ff4e2@suse.cz> (raw)
In-Reply-To: <9a21556a-0c16-c31a-f188-a75077c36bfa@suse.cz>
[-- Attachment #1: Type: text/plain, Size: 36 bytes --]
Hi.
One more tested patch.
Martin
[-- Attachment #2: 0001-Backport-r264363.patch --]
[-- Type: text/x-patch, Size: 904 bytes --]
From ee960f3dcad03652cd133b8598131aed488c11cb Mon Sep 17 00:00:00 2001
From: marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon, 17 Sep 2018 10:19:02 +0000
Subject: [PATCH] Backport r264363
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(-)
diff --git a/gcc/gcov.c b/gcc/gcov.c
index 7f06cf66d0c..c7c52ce3629 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -1068,7 +1068,8 @@ output_intermediate_file (FILE *gcov_file, source_info *src)
}
/* Follow with lines associated with the source file. */
- output_intermediate_line (gcov_file, &src->lines[line_num], line_num);
+ if (line_num < src->lines.size ())
+ output_intermediate_line (gcov_file, &src->lines[line_num], line_num);
}
}
--
2.18.0
next prev parent reply other threads:[~2018-09-18 9:29 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-23 8:43 Martin Liška
2018-08-16 10:14 ` Martin Liška
2018-09-18 9:37 ` Martin Liška [this message]
2018-09-25 6:52 ` Martin Liška
2018-10-03 10:09 ` Martin Liška
2018-11-20 10:58 ` Martin Liška
2018-12-27 14:59 ` Martin Liška
2018-12-28 11:46 ` Sudakshina Das
2019-01-02 11:46 ` Martin Liška
2019-01-02 11:50 ` Jan Hubicka
2019-01-03 8:46 ` Martin Liška
2019-02-14 11:23 ` Martin Liška
2019-02-14 13:57 ` Martin Liška
2019-03-11 9:39 ` Martin Liška
2019-03-15 8:39 ` Martin Liška
2019-03-28 8:53 ` Martin Liška
2019-05-24 7:42 ` Martin Liška
2019-07-04 10:17 ` Martin Liška
2020-01-15 10:15 ` Martin Liška
2020-03-02 9:33 ` Martin Liška
2020-03-29 17:17 ` Martin Liška
2020-04-03 10:32 ` Martin Liška
2019-05-06 14:00 Martin Liška
2019-05-14 9:11 ` Martin Liška
2019-07-22 9:36 ` Martin Liška
2019-05-07 16:17 Marek Polacek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=32e46ac2-3865-1b46-93bf-5ada7f8ff4e2@suse.cz \
--to=mliska@suse.cz \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).