Skip to content

Commit 4ce75d4

Browse files
committed
Fixed issue #128882: don't warn if 1st argument to 'getcwd' is NULL
1 parent 9cdc3aa commit 4ce75d4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2663,7 +2663,6 @@ void StdLibraryFunctionsChecker::initFunctionSummaries(
26632663
.Case({ArgumentCondition(1, WithinRange, Range(1, SizeMax)),
26642664
IsNull(Ret)},
26652665
ErrnoNEZeroIrrelevant, GenericFailureMsg)
2666-
.ArgConstraint(NotNull(ArgNo(0)))
26672666
.ArgConstraint(
26682667
BufferSize(/*Buffer*/ ArgNo(0), /*BufSize*/ ArgNo(1)))
26692668
.ArgConstraint(

0 commit comments

Comments
 (0)