[all-commits] [llvm/llvm-project] c49bc1: BitcodeWriter: ensure `Buffer` is heap allocated

Mircea Trofin via All-commits all-commits at lists.llvm.org
Mon Jun 3 12:48:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c49bc1a3b782e38e4ffb5b274f1e7775af6c2315
      https://github.com/llvm/llvm-project/commit/c49bc1a3b782e38e4ffb5b274f1e7775af6c2315
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2024-06-03 (Mon, 03 Jun 2024)

  Changed paths:
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

  Log Message:
  -----------
  BitcodeWriter: ensure `Buffer` is heap allocated

PR #92983 accidentally changed the buffer allocation in
`llvm::WriteBitcodeToFile` to be allocated on the stack, which is
problematic given it's a large-ish buffer (256K)



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