From 6c42aa777e65e8ef2a3ae08aa6eaf083306b28dd Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 10 Jun 2016 20:09:33 +0000 Subject: Fixed a few places that were building a regex from an identifier without escaping the identifier text. llvm-svn: 272423 --- lldb/examples/python/symbolication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/examples/python/symbolication.py') 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): -- cgit v1.2.3