Commit dda107df by Martin Liska Committed by Martin Liska

Fix out-of-bounds in gcov.c (PR gcov-profile/85871).

2018-09-17  Martin Liska  <mliska@suse.cz>

	PR gcov-profile/85871
	* gcov.c (output_intermediate_file): Fix out of bounds
	access.

From-SVN: r264363
parent dd1fd744
2018-09-17 Martin Liska <mliska@suse.cz>
PR gcov-profile/85871
* gcov.c (output_intermediate_file): Fix out of bounds
access.
2018-09-17 Vineet Gupta <vgupta@synopsys.com>
* config/arc/arc.c: Object attributes for core4 not reflected
......
......@@ -1097,7 +1097,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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment