Index: tools/tickprocessor.js |
diff --git a/tools/tickprocessor.js b/tools/tickprocessor.js |
index 72d367f1990aab42b80b46435b3e446f8bddd5fd..63c69ac9a5bbfd4f52eb148944b0f992c36edb12 100644 |
--- a/tools/tickprocessor.js |
+++ b/tools/tickprocessor.js |
@@ -379,7 +379,9 @@ CppEntriesProvider.prototype.parseVmSymbols = function( |
function addPrevEntry(end) { |
// Several functions can be mapped onto the same address. To avoid |
// creating zero-sized entries, skip such duplicates. |
- if (prevEntry && prevEntry.start < end) { |
+ // Also double-check that function belongs to the library address space. |
+ if (prevEntry && prevEntry.start < end && |
+ prevEntry.start >= libStart && end <= libEnd) { |
processorFunc(prevEntry.name, prevEntry.start, end); |
} |
} |