[llvm-bugs] [Bug 38328] New: clang-format crash inside SourceManager on malformed UTF file.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 26 02:19:03 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38328

            Bug ID: 38328
           Summary: clang-format crash inside SourceManager on malformed
                    UTF file.
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: phil at kantaka.co.uk
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Created attachment 20603
  --> https://bugs.llvm.org/attachment.cgi?id=20603&action=edit
clang-format < clang-format.crash results in a segfault.

clang-format crashes on a file with bad UTF codepoints. The crash itself seems
to be inside the libclang SourceManager however, which is a little weird. I've
submitted against the Formatter, but it might be a libclang SourceManager bug
too.

cheers, Phil

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180726/9c0935f4/attachment.html>


More information about the llvm-bugs mailing list