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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user