diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2006-05-22 00:05:11 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2006-05-22 00:05:11 +0000 |
commit | a59aeefbfedf81257a164c234ff55743a56099b7 (patch) | |
tree | 60f7b062395fd443e38ebfe1f5add7568b6f365f /callgrind/fn.c | |
parent | 103601146001e130e7fe5defb5f130591360798c (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.c | 3 |
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) { |