[PATCH] D148614: [clang][Interp] Add frame depth checking
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 18 01:36:28 PDT 2023
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, tahonermann, erichkeane, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
There was already //some// form of this, but it wasn't working. I moved the depth tracking from `InterpState` to `InterpFrame` so remove some of the magic from the `Ret` instructions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148614
Files:
clang/lib/AST/Interp/Interp.cpp
clang/lib/AST/Interp/Interp.h
clang/lib/AST/Interp/InterpFrame.cpp
clang/lib/AST/Interp/InterpFrame.h
clang/lib/AST/Interp/InterpState.cpp
clang/lib/AST/Interp/InterpState.h
clang/test/AST/Interp/depth-limit.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148614.514559.patch
Type: text/x-patch
Size: 6589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230418/5a575da9/attachment.bin>
More information about the cfe-commits
mailing list