Skip to content

Commit d57375c

Browse files
committed
Delete useless and inaccurate comments
1 parent 3422f5a commit d57375c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,13 +576,9 @@ ProgramStateRef CStringChecker::CheckLocation(CheckerContext &C,
576576

577577
auto [StInBound, StOutBound] = state->assumeInBoundDual(*Idx, Size);
578578
if (StOutBound && !StInBound) {
579-
// These checks are either enabled by the CString out-of-bounds checker
580-
// explicitly or implicitly by the Malloc checker.
581-
// In the latter case we only do modeling but do not emit warning.
582579
if (!OutOfBounds.isEnabled())
583580
return nullptr;
584581

585-
// Emit a bug report.
586582
ErrorMessage Message =
587583
createOutOfBoundErrorMsg(CurrentFunctionDescription, Access);
588584
emitOutOfBoundsBug(C, StOutBound, Buffer.Expression, Message);

0 commit comments

Comments
 (0)