[all-commits] [llvm/llvm-project] 58cda6: [flang][CodeGen] Fix use-after-free in BoxedProced...
Krzysztof Parzyszek via All-commits
all-commits at lists.llvm.org
Thu Mar 7 12:25:20 PST 2024
Branch: refs/heads/users/kparzysz/spr/uaf-04
Home: https://github.com/llvm/llvm-project
Commit: 58cda6db7030e178fbd861312dcee372e1558611
https://github.com/llvm/llvm-project/commit/58cda6db7030e178fbd861312dcee372e1558611
Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: 2024-03-07 (Thu, 07 Mar 2024)
Changed paths:
M flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp
Log Message:
-----------
[flang][CodeGen] Fix use-after-free in BoxedProcedurePass
Replacing an element of an operation range while traversing the range
can make the range invalid. Store the operations in a separate list,
and traverse the list instead.
Additionally, avoid inspecting an operation that has been replaced.
This was detected by address sanitizer.
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