Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1172813 - Catch the case which string is 0x prefixed but can't co…
Browse files Browse the repository at this point in the history
…nvert to integer. r=dhylands
  • Loading branch information
janus926 committed Jun 9, 2015
1 parent 4711364 commit b0b8a50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/profile-symbolicate.py
Expand Up @@ -383,7 +383,10 @@ def getUnresolvedAddressesV3():
for thread in self.profile["threads"]:
for str in thread["stringTable"]:
if str[:2] == "0x":
yield int(str, 0)
try:
yield int(str, 0)
except ValueError:
continue

if self.profile["meta"]["version"] >= 3:
addresses = getUnresolvedAddressesV3()
Expand Down

0 comments on commit b0b8a50

Please sign in to comment.