[all-commits] [llvm/llvm-project] d4c164: [LLVM][Demangle] Fix MS Demangler to be stricter a...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Mon Apr 7 13:19:14 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d4c16424cf295e7edb7ecd5f8831ff195f7a8fa7
      https://github.com/llvm/llvm-project/commit/d4c16424cf295e7edb7ecd5f8831ff195f7a8fa7
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2025-04-07 (Mon, 07 Apr 2025)

  Changed paths:
    M llvm/docs/ReleaseNotes.md
    M llvm/lib/Demangle/MicrosoftDemangle.cpp
    M llvm/test/Demangle/invalid-manglings.test

  Log Message:
  -----------
  [LLVM][Demangle] Fix MS Demangler to be stricter about wide string literals (#134483)

Static analysis detected that Demangler::demangleStringLiteral had a
potential overflow if not checking StringByteSize properly.

Added check to ensure that for wide string it is always even and that
there were the byte count did not mismatch the actual size of the
literal.

Fixes: https://github.com/llvm/llvm-project/issues/129970



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list