diff options
author | Paul Kirth <paulkirth@google.com> | 2025-06-04 09:46:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-04 09:46:14 -0700 |
commit | 8e77263ad0031192b895564e470b9d8b16e4414e (patch) | |
tree | 52990ecac02808aabc076fa094c7613c8912e111 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | fd452da64d548a9aea97a0b5be10962a0e58d925 (diff) | |
download | llvm-8e77263ad0031192b895564e470b9d8b16e4414e.zip llvm-8e77263ad0031192b895564e470b9d8b16e4414e.tar.gz llvm-8e77263ad0031192b895564e470b9d8b16e4414e.tar.bz2 |
[llvm][mustache] Fix UB in ASTNode::render() (#142249)
The current implementation set a reference to a nullptr, leading to all
kinds of problems. Instead, we can check the various uses to ensure we
don't deref invalid memory, and improve the logic for how contexts are
passed to children, since that was also subtly wrong in some cases.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions