summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python/symbolication.py
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2016-06-10 20:09:33 +0000
committerGreg Clayton <gclayton@apple.com>2016-06-10 20:09:33 +0000
commit6c42aa777e65e8ef2a3ae08aa6eaf083306b28dd (patch)
tree9066f6f81598869e3476151a581e0df85b58ff5e /lldb/examples/python/symbolication.py
parent2cf5e89e1d469747194c5713d1232979d8288ddc (diff)
downloadbcm5719-llvm-6c42aa777e65e8ef2a3ae08aa6eaf083306b28dd.tar.gz
bcm5719-llvm-6c42aa777e65e8ef2a3ae08aa6eaf083306b28dd.zip
Fixed a few places that were building a regex from an identifier without escaping the identifier text.
<rdar://problem/26090553> llvm-svn: 272423
Diffstat (limited to 'lldb/examples/python/symbolication.py')
-rwxr-xr-xlldb/examples/python/symbolication.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/symbolication.py b/lldb/examples/python/symbolication.py
index 2f2a274dbc4..88846c99b3a 100755
--- a/lldb/examples/python/symbolication.py
+++ b/lldb/examples/python/symbolication.py
@@ -448,7 +448,7 @@ class Symbolicator:
if image.identifier == identifier:
images.append(image)
if len(images) == 0:
- regex_text = '^.*\.%s$' % (identifier)
+ regex_text = '^.*\.%s$' % (re.escape(identifier))
regex = re.compile(regex_text)
for image in self.images:
if regex.match(image.identifier):
OpenPOWER on IntegriCloud