summaryrefslogtreecommitdiff
path: root/callgrind/fn.c
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2006-05-22 00:05:11 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2006-05-22 00:05:11 +0000
commita59aeefbfedf81257a164c234ff55743a56099b7 (patch)
tree60f7b062395fd443e38ebfe1f5add7568b6f365f /callgrind/fn.c
parent103601146001e130e7fe5defb5f130591360798c (diff)
Fix crash on ppc64-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5917 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'callgrind/fn.c')
-rw-r--r--callgrind/fn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/callgrind/fn.c b/callgrind/fn.c
index ad951827..5fdd117e 100644
--- a/callgrind/fn.c
+++ b/callgrind/fn.c
@@ -119,6 +119,9 @@ static void search_runtime_resolve(obj_node* obj)
end = obj->start + obj->size - range[1];
addr = obj->start;
+
+ if (range[1] == 0) return;
+
while(addr < end) {
if (VG_(memcmp)( (void*)addr, code, range[1]) == 0) {