diff options
author | Greg Clayton <gclayton@apple.com> | 2016-06-10 20:09:33 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2016-06-10 20:09:33 +0000 |
commit | 6c42aa777e65e8ef2a3ae08aa6eaf083306b28dd (patch) | |
tree | 9066f6f81598869e3476151a581e0df85b58ff5e /lldb/examples/python | |
parent | 2cf5e89e1d469747194c5713d1232979d8288ddc (diff) | |
download | bcm5719-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')
-rwxr-xr-x | lldb/examples/python/crashlog.py | 2 | ||||
-rwxr-xr-x | lldb/examples/python/symbolication.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index 60a6a1f50f0..a557b604afb 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): 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): |