From 9982e65506acf7f5015842e795add68edb91050d Mon Sep 17 00:00:00 2001 From: ladderbreaker Date: Fri, 17 Aug 2007 21:22:16 +0000 Subject: Issue 199: Reviewed by Waylonis git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@204 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/mac/dump_syms.mm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/common/mac/dump_syms.mm') diff --git a/src/common/mac/dump_syms.mm b/src/common/mac/dump_syms.mm index 7b5e8e63..d96e1ac0 100644 --- a/src/common/mac/dump_syms.mm +++ b/src/common/mac/dump_syms.mm @@ -302,11 +302,14 @@ static const int kTextSection = 1; NSString *fn = [NSString stringWithUTF8String:&table[n_strx]]; NSRange range = [fn rangeOfString:@":" options:NSBackwardsSearch]; - if (![fn length] || !range.length) + if (![fn length]) return NO; - // The function has a ":" followed by some stuff - fn = [fn substringToIndex:range.location]; + if (range.length > 0) { + // The function has a ":" followed by some stuff, so strip it off + fn = [fn substringToIndex:range.location]; + } + [self addFunction:fn line:line address:list->n_value section:list->n_sect ]; result = YES; -- cgit v1.2.1