Commit 5adbb0a9 authored by glider's avatar glider Committed by Commit bot

Fix assertion condition in asan_symbolize.py.

In the case when an app is inside a framework, app_positions[0] should be
greater than framework_positions[0].

BUG=444343
TBR=inferno@chromium.org
NOTRY=true

Review URL: https://codereview.chromium.org/819403003

Cr-Commit-Position: refs/heads/master@{#309626}
parent 58af8f4d
...@@ -77,7 +77,7 @@ def chrome_dsym_hints(binary): ...@@ -77,7 +77,7 @@ def chrome_dsym_hints(binary):
return [] return []
assert (not (len(app_positions) == 1 and assert (not (len(app_positions) == 1 and
len(framework_positions) == 1 and len(framework_positions) == 1 and
app_positions[0] < framework_positions[0])), \ app_positions[0] > framework_positions[0])), \
"The path contains an app bundle inside a framework: %s" % binary "The path contains an app bundle inside a framework: %s" % binary
# Cases 2 and 3. The outermost bundle (which is the only bundle in the case 2) # Cases 2 and 3. The outermost bundle (which is the only bundle in the case 2)
# is located in the product dir. # is located in the product dir.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment