From: Ian Lance Taylor Date: Sun, 23 Sep 2007 03:16:47 +0000 (+0000) Subject: Avoid dereferencing map->end(). X-Git-Tag: sid-snapshot-20071001~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c077629be8c6c1021243e0efe48cc56a3c434626;p=external%2Fbinutils.git Avoid dereferencing map->end(). --- diff --git a/gold/merge.cc b/gold/merge.cc index d2972fd..f6f45c9 100644 --- a/gold/merge.cc +++ b/gold/merge.cc @@ -86,7 +86,8 @@ Output_merge_base::do_output_address(const Relobj* object, unsigned int shndx, // If MK is not in the map, lower_bound returns the next iterator // larger than it. - if (p->first.object != object + if (p == this->merge_map_.end() + || p->first.object != object || p->first.shndx != shndx || p->first.offset != offset) {