File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
clang/lib/StaticAnalyzer/Checkers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3574,7 +3574,7 @@ void StdLibraryFunctionsChecker::initFunctionSummaries(
3574
3574
/* Buffer=*/ ArgNo (1 ),
3575
3575
/* MinBufSize=*/ BVF.getValue (26 , IntTy))));
3576
3576
3577
- // char *ctime_r (char *buf, rsize_t buf_size, const time_t *timep);
3577
+ // char *ctime_s (char *buf, rsize_t buf_size, const time_t *timep);
3578
3578
addToFunctionSummaryMap (
3579
3579
" ctime_s" ,
3580
3580
Signature (ArgTypes{CharPtrTy,
@@ -3583,10 +3583,10 @@ void StdLibraryFunctionsChecker::initFunctionSummaries(
3583
3583
RetType{CharPtrTy}),
3584
3584
Summary (NoEvalCall)
3585
3585
.ArgConstraint (NotNull (ArgNo (0 )))
3586
- .ArgConstraint (NotNull (ArgNo (1 )))
3587
3586
.ArgConstraint (BufferSize (
3588
3587
/* Buffer=*/ ArgNo (1 ),
3589
3588
/* MinBufSize=*/ BVF.getValue (26 , IntTy))));
3589
+ .ArgConstraint (NotNull (ArgNo (1 )))
3590
3590
3591
3591
// struct tm *gmtime_r(const time_t *restrict timer,
3592
3592
// struct tm *restrict result);
You can’t perform that action at this time.
0 commit comments