summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFumitoshi Ukai <fumitoshi.ukai@gmail.com>2016-04-15 08:05:30 (GMT)
committerFumitoshi Ukai <fumitoshi.ukai@gmail.com>2016-04-15 08:05:30 (GMT)
commitde6149ef8e67b064a433a8b88924fa9f606ad5d5 (patch)
tree224d4daa5192ed8e79541998d485fa20be2f1400 /src
parent202b395c0478e060755ef9e20781e9bc0e9c5cf7 (diff)
parentd630221933e4dea8441d7de2419c0c87cc4ecd93 (diff)
downloadglog-de6149ef8e67b064a433a8b88924fa9f606ad5d5.zip
glog-de6149ef8e67b064a433a8b88924fa9f606ad5d5.tar.gz
glog-de6149ef8e67b064a433a8b88924fa9f606ad5d5.tar.bz2
Merge pull request #101 from yasushi-saito/master
Allow permission line in /proc/self/map to be "rwx", not just "r-x".
Diffstat (limited to 'src')
-rw-r--r--src/symbolize.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/symbolize.cc b/src/symbolize.cc
index b25f747..b18796e 100644
--- 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 ' '.