projects
/
platform
/
upstream
/
glog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f176cc8
)
Allow permission line in /proc/self/map to be "rwx", not just "r-x". At
author
Yaz Saito on W541
<saito@carbon3d.com>
Mon, 11 Apr 2016 21:35:42 +0000
(14:35 -0700)
committer
Yaz Saito on W541
<saito@carbon3d.com>
Mon, 11 Apr 2016 21:35:42 +0000
(14:35 -0700)
least in Ubuntu14, a binary file that's writable by the process owner
has permission "rwx", not "r-x".
src/symbolize.cc
patch
|
blob
|
history
diff --git
a/src/symbolize.cc
b/src/symbolize.cc
index
b25f747
..
b18796e
100644
(file)
--- a/
src/symbolize.cc
+++ b/
src/symbolize.cc
@@
-569,8
+569,8
@@
OpenObjectFileContainingPcAndGetStartAddress(uint64_t pc,
return -1; // Malformed line.
}
-
// Check flags. We are only interested in "r-
x" maps.
- if (
memcmp(flags_start, "r-x", 3) != 0) { // Not a "r-x" map.
+
// Check flags. We are only interested in "r*
x" maps.
+ if (
flags_start[0] != 'r' || flags_start[2] != 'x') {
continue; // We skip this map.
}
++cursor; // Skip ' '.