Skip to content

Commit 2acde83

Browse files
committed
[CHERI_CSA] CapabilityCopyChecker: fix infinite recursion
1 parent de398bd commit 2acde83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/StaticAnalyzer/Checkers/CHERI/CapabilityCopyChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const MemRegion *stripNonCapShift(const MemRegion *R, ASTContext &ASTCtx) {
124124
if (!isNonCapScalarType(ER->getValueType(), ASTCtx))
125125
return R;
126126

127-
return ER->getSuperRegion();
127+
return stripNonCapShift(ER->getSuperRegion(), ASTCtx);
128128
}
129129

130130
bool isVoidOrCharPtrArgRegion(const MemRegion *Reg, bool AcceptCharPtr) {

0 commit comments

Comments
 (0)