[all-commits] [llvm/llvm-project] 6a6884: [llvm][mustache] Fix UB in ASTNode::render()
Paul Kirth via All-commits
all-commits at lists.llvm.org
Fri May 30 23:02:40 PDT 2025
Branch: refs/heads/users/ilovepi/mustache-fix-ub
Home: https://github.com/llvm/llvm-project
Commit: 6a6884105656e36834a257ea4997a780f6db5014
https://github.com/llvm/llvm-project/commit/6a6884105656e36834a257ea4997a780f6db5014
Author: Paul Kirth <paulkirth at google.com>
Date: 2025-05-30 (Fri, 30 May 2025)
Changed paths:
M llvm/lib/Support/Mustache.cpp
Log Message:
-----------
[llvm][mustache] Fix UB in ASTNode::render()
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