================ @@ -768,9 +776,17 @@ ProgramStateRef CStringChecker::CheckOverlap(CheckerContext &C, std::tie(stateTrue, stateFalse) = state->assume(*OverlapTest); if (stateTrue && !stateFalse) { - // Overlap! - emitOverlapBug(C, stateTrue, First.Expression, Second.Expression); - return nullptr; + if (Filter.CheckCStringBufferOverlap) { + // Overlap! + emitOverlapBug(C, stateTrue, First.Expression, Second.Expression); + return nullptr; + } + // FIXME: We detected a fatal error here, we should stop analysis even if we + // chose not to emit a report here. However, as long as our overlap checker + // is in alpha, lets just pretend nothing happened. ---------------- isuckatcs wrote:
Nit: same as in case of the copies of this section. https://github.com/llvm/llvm-project/pull/113312 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits