Fixed a few places that were building a regex from an identifier without escaping the identifier text.

<rdar://problem/26090553> 

llvm-svn: 272423
This commit is contained in:
Greg Clayton
2016-06-10 20:09:33 +00:00
parent 2cf5e89e1d
commit 6c42aa777e
2 changed files with 2 additions and 2 deletions

View File

@@ -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):