[all-commits] [llvm/llvm-project] 8e7726: [llvm][mustache] Fix UB in ASTNode::render() (#142...
Paul Kirth via All-commits
all-commits at lists.llvm.org
Wed Jun 4 09:46:36 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8e77263ad0031192b895564e470b9d8b16e4414e
https://github.com/llvm/llvm-project/commit/8e77263ad0031192b895564e470b9d8b16e4414e
Author: Paul Kirth <paulkirth at google.com>
Date: 2025-06-04 (Wed, 04 Jun 2025)
Changed paths:
M llvm/lib/Support/Mustache.cpp
Log Message:
-----------
[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.
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