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: unassignedclangb...@nondot.org
          Reporter: p...@kantaka.co.uk
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to