[all-commits] [llvm/llvm-project] bf45e2: [Clang] Fix invalid utf-8 detection

cor3ntin via All-commits all-commits at lists.llvm.org
Wed Jul 6 13:20:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf45e27a676d87944f1f13d5f0d0f39935fc4010
      https://github.com/llvm/llvm-project/commit/bf45e27a676d87944f1f13d5f0d0f39935fc4010
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2022-07-06 (Wed, 06 Jul 2022)

  Changed paths:
    M clang/test/Lexer/comment-invalid-utf8.c
    M llvm/lib/Support/ConvertUTF.cpp

  Log Message:
  -----------
  [Clang] Fix invalid utf-8 detection

The length of valid codepoints was incorrectly
calculated which was not caught before because the
absence of tests for the valid codepoints scenario.

Differential Revision: https://reviews.llvm.org/D129223




More information about the All-commits mailing list