re PR gcov-profile/55417 (AddressSanitizer reports stack-buffer-overflow in profiling...
authorTeresa Johnson <tejohnson@google.com>
Wed, 21 Nov 2012 15:04:45 +0000 (16:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Nov 2012 15:04:45 +0000 (16:04 +0100)
commitaaaefb9d5a04e28ec89e8fc564076d8eae18ca93
tree774fe87fcbefd0504aa31e0ac71f76fae242e13c
parent5a09d908bcbc74f78d066568c6d535c1e9d6d3fd
re PR gcov-profile/55417 (AddressSanitizer reports stack-buffer-overflow in profiling code)

PR gcov-profile/55417
* profile.c (compute_working_sets): Check index first
to avoid out-of-bounds array access.

From-SVN: r193697
gcc/ChangeLog
gcc/profile.c