aboutsummaryrefslogtreecommitdiff
path: root/lldb/examples/python/crashlog.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/crashlog.py
parent2cf5e89e1d469747194c5713d1232979d8288ddc (diff)
downloadllvm-6c42aa777e65e8ef2a3ae08aa6eaf083306b28dd.zip
llvm-6c42aa777e65e8ef2a3ae08aa6eaf083306b28dd.tar.gz
llvm-6c42aa777e65e8ef2a3ae08aa6eaf083306b28dd.tar.bz2
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/crashlog.py')
-rwxr-xr-xlldb/examples/python/crashlog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index 60a6a1f..a557b60 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -452,7 +452,7 @@ class CrashLog(symbolication.Symbolicator):
for image in self.images:
if image.identifier == identifier:
return image
- 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):