Reka Kovacs | 88ad704 | 2018-07-20 15:14:49 +0000 | [diff] [blame] | 1 | //=== InnerPointerChecker.cpp -------------------------------------*- C++ -*--// |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
Reka Kovacs | e453e60 | 2018-07-07 19:27:18 +0000 | [diff] [blame] | 10 | // This file defines a check that marks a raw pointer to a C++ container's |
| 11 | // inner buffer released when the object is destroyed. This information can |
| 12 | // be used by MallocChecker to detect use-after-free problems. |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 13 | // |
| 14 | //===----------------------------------------------------------------------===// |
| 15 | |
Reka Kovacs | e453e60 | 2018-07-07 19:27:18 +0000 | [diff] [blame] | 16 | #include "AllocationState.h" |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 17 | #include "ClangSACheckers.h" |
Reka Kovacs | d9f66ba | 2018-08-06 22:03:42 +0000 | [diff] [blame] | 18 | #include "InterCheckerAPI.h" |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 19 | #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" |
| 20 | #include "clang/StaticAnalyzer/Core/BugReporter/CommonBugCategories.h" |
| 21 | #include "clang/StaticAnalyzer/Core/Checker.h" |
| 22 | #include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h" |
| 23 | #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h" |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 24 | |
| 25 | using namespace clang; |
| 26 | using namespace ento; |
| 27 | |
Reka Kovacs | 5f70d9b | 2018-07-11 19:08:02 +0000 | [diff] [blame] | 28 | using PtrSet = llvm::ImmutableSet<SymbolRef>; |
| 29 | |
| 30 | // Associate container objects with a set of raw pointer symbols. |
| 31 | REGISTER_MAP_WITH_PROGRAMSTATE(RawPtrMap, const MemRegion *, PtrSet) |
| 32 | |
| 33 | // This is a trick to gain access to PtrSet's Factory. |
| 34 | namespace clang { |
| 35 | namespace ento { |
Reka Kovacs | c18ecc8 | 2018-07-19 15:10:06 +0000 | [diff] [blame] | 36 | template <> |
| 37 | struct ProgramStateTrait<PtrSet> : public ProgramStatePartialTrait<PtrSet> { |
Reka Kovacs | 5f70d9b | 2018-07-11 19:08:02 +0000 | [diff] [blame] | 38 | static void *GDMIndex() { |
| 39 | static int Index = 0; |
| 40 | return &Index; |
| 41 | } |
| 42 | }; |
| 43 | } // end namespace ento |
| 44 | } // end namespace clang |
Reka Kovacs | e453e60 | 2018-07-07 19:27:18 +0000 | [diff] [blame] | 45 | |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 46 | namespace { |
| 47 | |
Reka Kovacs | 88ad704 | 2018-07-20 15:14:49 +0000 | [diff] [blame] | 48 | class InnerPointerChecker |
Reka Kovacs | e453e60 | 2018-07-07 19:27:18 +0000 | [diff] [blame] | 49 | : public Checker<check::DeadSymbols, check::PostCall> { |
Reka Kovacs | c18ecc8 | 2018-07-19 15:10:06 +0000 | [diff] [blame] | 50 | |
| 51 | CallDescription AppendFn, AssignFn, ClearFn, CStrFn, DataFn, EraseFn, |
| 52 | InsertFn, PopBackFn, PushBackFn, ReplaceFn, ReserveFn, ResizeFn, |
| 53 | ShrinkToFitFn, SwapFn; |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 54 | |
| 55 | public: |
Reka Kovacs | 88ad704 | 2018-07-20 15:14:49 +0000 | [diff] [blame] | 56 | class InnerPointerBRVisitor : public BugReporterVisitor { |
Reka Kovacs | e453e60 | 2018-07-07 19:27:18 +0000 | [diff] [blame] | 57 | SymbolRef PtrToBuf; |
| 58 | |
| 59 | public: |
Reka Kovacs | 88ad704 | 2018-07-20 15:14:49 +0000 | [diff] [blame] | 60 | InnerPointerBRVisitor(SymbolRef Sym) : PtrToBuf(Sym) {} |
Reka Kovacs | e453e60 | 2018-07-07 19:27:18 +0000 | [diff] [blame] | 61 | |
| 62 | static void *getTag() { |
| 63 | static int Tag = 0; |
| 64 | return &Tag; |
| 65 | } |
| 66 | |
| 67 | void Profile(llvm::FoldingSetNodeID &ID) const override { |
| 68 | ID.AddPointer(getTag()); |
| 69 | } |
| 70 | |
| 71 | std::shared_ptr<PathDiagnosticPiece> VisitNode(const ExplodedNode *N, |
| 72 | const ExplodedNode *PrevN, |
| 73 | BugReporterContext &BRC, |
| 74 | BugReport &BR) override; |
| 75 | |
| 76 | // FIXME: Scan the map once in the visitor's constructor and do a direct |
| 77 | // lookup by region. |
| 78 | bool isSymbolTracked(ProgramStateRef State, SymbolRef Sym) { |
| 79 | RawPtrMapTy Map = State->get<RawPtrMap>(); |
| 80 | for (const auto Entry : Map) { |
Reka Kovacs | 5f70d9b | 2018-07-11 19:08:02 +0000 | [diff] [blame] | 81 | if (Entry.second.contains(Sym)) |
Reka Kovacs | e453e60 | 2018-07-07 19:27:18 +0000 | [diff] [blame] | 82 | return true; |
| 83 | } |
| 84 | return false; |
| 85 | } |
| 86 | }; |
| 87 | |
Reka Kovacs | 88ad704 | 2018-07-20 15:14:49 +0000 | [diff] [blame] | 88 | InnerPointerChecker() |
Henry Wong | 2ca72e0 | 2018-08-22 13:30:46 +0000 | [diff] [blame] | 89 | : AppendFn({"std", "basic_string", "append"}), |
| 90 | AssignFn({"std", "basic_string", "assign"}), |
| 91 | ClearFn({"std", "basic_string", "clear"}), |
| 92 | CStrFn({"std", "basic_string", "c_str"}), |
| 93 | DataFn({"std", "basic_string", "data"}), |
| 94 | EraseFn({"std", "basic_string", "erase"}), |
| 95 | InsertFn({"std", "basic_string", "insert"}), |
| 96 | PopBackFn({"std", "basic_string", "pop_back"}), |
| 97 | PushBackFn({"std", "basic_string", "push_back"}), |
| 98 | ReplaceFn({"std", "basic_string", "replace"}), |
| 99 | ReserveFn({"std", "basic_string", "reserve"}), |
| 100 | ResizeFn({"std", "basic_string", "resize"}), |
| 101 | ShrinkToFitFn({"std", "basic_string", "shrink_to_fit"}), |
| 102 | SwapFn({"std", "basic_string", "swap"}) {} |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 103 | |
Reka Kovacs | c74cfc4 | 2018-07-30 15:43:45 +0000 | [diff] [blame] | 104 | /// Check whether the called member function potentially invalidates |
| 105 | /// pointers referring to the container object's inner buffer. |
| 106 | bool isInvalidatingMemberFunction(const CallEvent &Call) const; |
| 107 | |
| 108 | /// Mark pointer symbols associated with the given memory region released |
| 109 | /// in the program state. |
| 110 | void markPtrSymbolsReleased(const CallEvent &Call, ProgramStateRef State, |
| 111 | const MemRegion *ObjRegion, |
| 112 | CheckerContext &C) const; |
| 113 | |
| 114 | /// Standard library functions that take a non-const `basic_string` argument by |
| 115 | /// reference may invalidate its inner pointers. Check for these cases and |
| 116 | /// mark the pointers released. |
| 117 | void checkFunctionArguments(const CallEvent &Call, ProgramStateRef State, |
| 118 | CheckerContext &C) const; |
| 119 | |
| 120 | /// Record the connection between raw pointers referring to a container |
| 121 | /// object's inner buffer and the object's memory region in the program state. |
| 122 | /// Mark potentially invalidated pointers released. |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 123 | void checkPostCall(const CallEvent &Call, CheckerContext &C) const; |
Reka Kovacs | 7ff6a8a | 2018-06-09 21:08:27 +0000 | [diff] [blame] | 124 | |
Reka Kovacs | c74cfc4 | 2018-07-30 15:43:45 +0000 | [diff] [blame] | 125 | /// Clean up the program state map. |
Reka Kovacs | 7ff6a8a | 2018-06-09 21:08:27 +0000 | [diff] [blame] | 126 | void checkDeadSymbols(SymbolReaper &SymReaper, CheckerContext &C) const; |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 127 | }; |
| 128 | |
| 129 | } // end anonymous namespace |
| 130 | |
Reka Kovacs | c74cfc4 | 2018-07-30 15:43:45 +0000 | [diff] [blame] | 131 | bool InnerPointerChecker::isInvalidatingMemberFunction( |
| 132 | const CallEvent &Call) const { |
Reka Kovacs | c18ecc8 | 2018-07-19 15:10:06 +0000 | [diff] [blame] | 133 | if (const auto *MemOpCall = dyn_cast<CXXMemberOperatorCall>(&Call)) { |
| 134 | OverloadedOperatorKind Opc = MemOpCall->getOriginExpr()->getOperator(); |
| 135 | if (Opc == OO_Equal || Opc == OO_PlusEqual) |
| 136 | return true; |
| 137 | return false; |
| 138 | } |
| 139 | return (isa<CXXDestructorCall>(Call) || Call.isCalled(AppendFn) || |
| 140 | Call.isCalled(AssignFn) || Call.isCalled(ClearFn) || |
| 141 | Call.isCalled(EraseFn) || Call.isCalled(InsertFn) || |
| 142 | Call.isCalled(PopBackFn) || Call.isCalled(PushBackFn) || |
| 143 | Call.isCalled(ReplaceFn) || Call.isCalled(ReserveFn) || |
| 144 | Call.isCalled(ResizeFn) || Call.isCalled(ShrinkToFitFn) || |
| 145 | Call.isCalled(SwapFn)); |
| 146 | } |
| 147 | |
Reka Kovacs | c74cfc4 | 2018-07-30 15:43:45 +0000 | [diff] [blame] | 148 | void InnerPointerChecker::markPtrSymbolsReleased(const CallEvent &Call, |
| 149 | ProgramStateRef State, |
| 150 | const MemRegion *MR, |
| 151 | CheckerContext &C) const { |
| 152 | if (const PtrSet *PS = State->get<RawPtrMap>(MR)) { |
| 153 | const Expr *Origin = Call.getOriginExpr(); |
| 154 | for (const auto Symbol : *PS) { |
| 155 | // NOTE: `Origin` may be null, and will be stored so in the symbol's |
| 156 | // `RefState` in MallocChecker's `RegionState` program state map. |
| 157 | State = allocation_state::markReleased(State, Symbol, Origin); |
| 158 | } |
| 159 | State = State->remove<RawPtrMap>(MR); |
| 160 | C.addTransition(State); |
| 161 | return; |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | void InnerPointerChecker::checkFunctionArguments(const CallEvent &Call, |
| 166 | ProgramStateRef State, |
| 167 | CheckerContext &C) const { |
| 168 | if (const auto *FC = dyn_cast<AnyFunctionCall>(&Call)) { |
| 169 | const FunctionDecl *FD = FC->getDecl(); |
| 170 | if (!FD || !FD->isInStdNamespace()) |
| 171 | return; |
| 172 | |
| 173 | for (unsigned I = 0, E = FD->getNumParams(); I != E; ++I) { |
| 174 | QualType ParamTy = FD->getParamDecl(I)->getType(); |
| 175 | if (!ParamTy->isReferenceType() || |
| 176 | ParamTy->getPointeeType().isConstQualified()) |
| 177 | continue; |
| 178 | |
| 179 | // In case of member operator calls, `this` is counted as an |
| 180 | // argument but not as a parameter. |
| 181 | bool isaMemberOpCall = isa<CXXMemberOperatorCall>(FC); |
| 182 | unsigned ArgI = isaMemberOpCall ? I+1 : I; |
| 183 | |
| 184 | SVal Arg = FC->getArgSVal(ArgI); |
| 185 | const auto *ArgRegion = |
| 186 | dyn_cast_or_null<TypedValueRegion>(Arg.getAsRegion()); |
| 187 | if (!ArgRegion) |
| 188 | continue; |
| 189 | |
| 190 | markPtrSymbolsReleased(Call, State, ArgRegion, C); |
| 191 | } |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | // [string.require] |
| 196 | // |
| 197 | // "References, pointers, and iterators referring to the elements of a |
| 198 | // basic_string sequence may be invalidated by the following uses of that |
| 199 | // basic_string object: |
| 200 | // |
| 201 | // -- As an argument to any standard library function taking a reference |
| 202 | // to non-const basic_string as an argument. For example, as an argument to |
| 203 | // non-member functions swap(), operator>>(), and getline(), or as an argument |
| 204 | // to basic_string::swap(). |
| 205 | // |
| 206 | // -- Calling non-const member functions, except operator[], at, front, back, |
| 207 | // begin, rbegin, end, and rend." |
| 208 | |
Reka Kovacs | 88ad704 | 2018-07-20 15:14:49 +0000 | [diff] [blame] | 209 | void InnerPointerChecker::checkPostCall(const CallEvent &Call, |
| 210 | CheckerContext &C) const { |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 211 | ProgramStateRef State = C.getState(); |
| 212 | |
Reka Kovacs | c74cfc4 | 2018-07-30 15:43:45 +0000 | [diff] [blame] | 213 | if (const auto *ICall = dyn_cast<CXXInstanceCall>(&Call)) { |
Artem Dergachev | 73b3866 | 2018-08-30 18:45:05 +0000 | [diff] [blame] | 214 | // TODO: Do we need these to be typed? |
Henry Wong | 2ca72e0 | 2018-08-22 13:30:46 +0000 | [diff] [blame] | 215 | const auto *ObjRegion = dyn_cast_or_null<TypedValueRegion>( |
| 216 | ICall->getCXXThisVal().getAsRegion()); |
Artem Dergachev | 73b3866 | 2018-08-30 18:45:05 +0000 | [diff] [blame] | 217 | if (!ObjRegion) |
| 218 | return; |
Reka Kovacs | c74cfc4 | 2018-07-30 15:43:45 +0000 | [diff] [blame] | 219 | |
Henry Wong | 2ca72e0 | 2018-08-22 13:30:46 +0000 | [diff] [blame] | 220 | if (Call.isCalled(CStrFn) || Call.isCalled(DataFn)) { |
| 221 | SVal RawPtr = Call.getReturnValue(); |
| 222 | if (SymbolRef Sym = RawPtr.getAsSymbol(/*IncludeBaseRegions=*/true)) { |
| 223 | // Start tracking this raw pointer by adding it to the set of symbols |
| 224 | // associated with this container object in the program state map. |
Reka Kovacs | c74cfc4 | 2018-07-30 15:43:45 +0000 | [diff] [blame] | 225 | |
Henry Wong | 2ca72e0 | 2018-08-22 13:30:46 +0000 | [diff] [blame] | 226 | PtrSet::Factory &F = State->getStateManager().get_context<PtrSet>(); |
| 227 | const PtrSet *SetPtr = State->get<RawPtrMap>(ObjRegion); |
| 228 | PtrSet Set = SetPtr ? *SetPtr : F.getEmptySet(); |
| 229 | assert(C.wasInlined || !Set.contains(Sym)); |
| 230 | Set = F.add(Set, Sym); |
Reka Kovacs | c74cfc4 | 2018-07-30 15:43:45 +0000 | [diff] [blame] | 231 | |
Henry Wong | 2ca72e0 | 2018-08-22 13:30:46 +0000 | [diff] [blame] | 232 | State = State->set<RawPtrMap>(ObjRegion, Set); |
| 233 | C.addTransition(State); |
Reka Kovacs | c74cfc4 | 2018-07-30 15:43:45 +0000 | [diff] [blame] | 234 | } |
Henry Wong | 2ca72e0 | 2018-08-22 13:30:46 +0000 | [diff] [blame] | 235 | return; |
| 236 | } |
Reka Kovacs | c74cfc4 | 2018-07-30 15:43:45 +0000 | [diff] [blame] | 237 | |
Henry Wong | 2ca72e0 | 2018-08-22 13:30:46 +0000 | [diff] [blame] | 238 | // Check [string.require] / second point. |
| 239 | if (isInvalidatingMemberFunction(Call)) { |
| 240 | markPtrSymbolsReleased(Call, State, ObjRegion, C); |
| 241 | return; |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 242 | } |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 243 | } |
| 244 | |
Reka Kovacs | c74cfc4 | 2018-07-30 15:43:45 +0000 | [diff] [blame] | 245 | // Check [string.require] / first point. |
| 246 | checkFunctionArguments(Call, State, C); |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 247 | } |
| 248 | |
Reka Kovacs | 88ad704 | 2018-07-20 15:14:49 +0000 | [diff] [blame] | 249 | void InnerPointerChecker::checkDeadSymbols(SymbolReaper &SymReaper, |
| 250 | CheckerContext &C) const { |
Reka Kovacs | 7ff6a8a | 2018-06-09 21:08:27 +0000 | [diff] [blame] | 251 | ProgramStateRef State = C.getState(); |
Reka Kovacs | 5f70d9b | 2018-07-11 19:08:02 +0000 | [diff] [blame] | 252 | PtrSet::Factory &F = State->getStateManager().get_context<PtrSet>(); |
Reka Kovacs | 7ff6a8a | 2018-06-09 21:08:27 +0000 | [diff] [blame] | 253 | RawPtrMapTy RPM = State->get<RawPtrMap>(); |
| 254 | for (const auto Entry : RPM) { |
Reka Kovacs | 7ff6a8a | 2018-06-09 21:08:27 +0000 | [diff] [blame] | 255 | if (!SymReaper.isLiveRegion(Entry.first)) { |
Reka Kovacs | 5f70d9b | 2018-07-11 19:08:02 +0000 | [diff] [blame] | 256 | // Due to incomplete destructor support, some dead regions might |
Reka Kovacs | 7ff6a8a | 2018-06-09 21:08:27 +0000 | [diff] [blame] | 257 | // remain in the program state map. Clean them up. |
| 258 | State = State->remove<RawPtrMap>(Entry.first); |
| 259 | } |
Reka Kovacs | 5f70d9b | 2018-07-11 19:08:02 +0000 | [diff] [blame] | 260 | if (const PtrSet *OldSet = State->get<RawPtrMap>(Entry.first)) { |
| 261 | PtrSet CleanedUpSet = *OldSet; |
| 262 | for (const auto Symbol : Entry.second) { |
| 263 | if (!SymReaper.isLive(Symbol)) |
| 264 | CleanedUpSet = F.remove(CleanedUpSet, Symbol); |
| 265 | } |
| 266 | State = CleanedUpSet.isEmpty() |
Reka Kovacs | c18ecc8 | 2018-07-19 15:10:06 +0000 | [diff] [blame] | 267 | ? State->remove<RawPtrMap>(Entry.first) |
| 268 | : State->set<RawPtrMap>(Entry.first, CleanedUpSet); |
Reka Kovacs | 5f70d9b | 2018-07-11 19:08:02 +0000 | [diff] [blame] | 269 | } |
Reka Kovacs | 7ff6a8a | 2018-06-09 21:08:27 +0000 | [diff] [blame] | 270 | } |
| 271 | C.addTransition(State); |
| 272 | } |
| 273 | |
Reka Kovacs | bb2749a | 2018-08-10 23:56:57 +0000 | [diff] [blame] | 274 | namespace clang { |
| 275 | namespace ento { |
| 276 | namespace allocation_state { |
| 277 | |
| 278 | std::unique_ptr<BugReporterVisitor> getInnerPointerBRVisitor(SymbolRef Sym) { |
| 279 | return llvm::make_unique<InnerPointerChecker::InnerPointerBRVisitor>(Sym); |
| 280 | } |
| 281 | |
| 282 | const MemRegion *getContainerObjRegion(ProgramStateRef State, SymbolRef Sym) { |
| 283 | RawPtrMapTy Map = State->get<RawPtrMap>(); |
| 284 | for (const auto Entry : Map) { |
| 285 | if (Entry.second.contains(Sym)) { |
| 286 | return Entry.first; |
| 287 | } |
| 288 | } |
| 289 | return nullptr; |
| 290 | } |
| 291 | |
| 292 | } // end namespace allocation_state |
| 293 | } // end namespace ento |
| 294 | } // end namespace clang |
| 295 | |
Reka Kovacs | e453e60 | 2018-07-07 19:27:18 +0000 | [diff] [blame] | 296 | std::shared_ptr<PathDiagnosticPiece> |
Reka Kovacs | 88ad704 | 2018-07-20 15:14:49 +0000 | [diff] [blame] | 297 | InnerPointerChecker::InnerPointerBRVisitor::VisitNode(const ExplodedNode *N, |
| 298 | const ExplodedNode *PrevN, |
| 299 | BugReporterContext &BRC, |
| 300 | BugReport &BR) { |
Reka Kovacs | e453e60 | 2018-07-07 19:27:18 +0000 | [diff] [blame] | 301 | if (!isSymbolTracked(N->getState(), PtrToBuf) || |
| 302 | isSymbolTracked(PrevN->getState(), PtrToBuf)) |
| 303 | return nullptr; |
| 304 | |
| 305 | const Stmt *S = PathDiagnosticLocation::getStmt(N); |
| 306 | if (!S) |
| 307 | return nullptr; |
| 308 | |
Reka Kovacs | bb2749a | 2018-08-10 23:56:57 +0000 | [diff] [blame] | 309 | const MemRegion *ObjRegion = |
| 310 | allocation_state::getContainerObjRegion(N->getState(), PtrToBuf); |
| 311 | const auto *TypedRegion = cast<TypedValueRegion>(ObjRegion); |
| 312 | QualType ObjTy = TypedRegion->getValueType(); |
| 313 | |
Reka Kovacs | e453e60 | 2018-07-07 19:27:18 +0000 | [diff] [blame] | 314 | SmallString<256> Buf; |
| 315 | llvm::raw_svector_ostream OS(Buf); |
Reka Kovacs | bb2749a | 2018-08-10 23:56:57 +0000 | [diff] [blame] | 316 | OS << "Pointer to inner buffer of '" << ObjTy.getAsString() |
| 317 | << "' obtained here"; |
Reka Kovacs | e453e60 | 2018-07-07 19:27:18 +0000 | [diff] [blame] | 318 | PathDiagnosticLocation Pos(S, BRC.getSourceManager(), |
| 319 | N->getLocationContext()); |
| 320 | return std::make_shared<PathDiagnosticEventPiece>(Pos, OS.str(), true, |
| 321 | nullptr); |
| 322 | } |
| 323 | |
Reka Kovacs | 88ad704 | 2018-07-20 15:14:49 +0000 | [diff] [blame] | 324 | void ento::registerInnerPointerChecker(CheckerManager &Mgr) { |
Reka Kovacs | d9f66ba | 2018-08-06 22:03:42 +0000 | [diff] [blame] | 325 | registerInnerPointerCheckerAux(Mgr); |
Reka Kovacs | 88ad704 | 2018-07-20 15:14:49 +0000 | [diff] [blame] | 326 | Mgr.registerChecker<InnerPointerChecker>(); |
Reka Kovacs | 18775fc | 2018-06-09 13:03:49 +0000 | [diff] [blame] | 327 | } |