Skip to content

[compiler-rt] hwasan_symbolize Windows bug #134853

Open
@automatedbugreportingfacility

Description

paths_to_cut.append(os.getcwd() + '/')

On Windows, os.getcwd() can return something like "C:\sdk\llvm...". The string with unescaped backslashes is then fed into re.sub():

file_name = re.sub(".*" + path_to_cut, "", file_name)

which results in an error:

re.error: bad escape \l at position 31

My workaround:

    paths_to_cut.append(os.getcwd().replace("\\", "/") + '/')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions