[all-commits] [llvm/llvm-project] 591690: [clang] Fix crash when #embed data does not fit in...

Mariya Podchishchaeva via All-commits all-commits at lists.llvm.org
Wed Mar 5 02:05:15 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59169036ca0e064612886713d609873f776e85db
      https://github.com/llvm/llvm-project/commit/59169036ca0e064612886713d609873f776e85db
  Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
  Date:   2025-03-05 (Wed, 05 Mar 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaInit.cpp
    A clang/test/CodeGen/excess-embed-data.c
    A clang/test/Sema/excess-embed-data.c

  Log Message:
  -----------
  [clang] Fix crash when #embed data does not fit into an array (#129567)

Tune SemaInit code handling #embed to take into account how many array
elements remains to initialize.
Also issue a warning/error message when the array/struct is at the end
but there is still #embed data left.

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



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