================ @@ -369,6 +380,9 @@ ProgramStateRef UnixAPIMisuseChecker::EnsureGetdelimBufferAndSizeCorrect( void UnixAPIMisuseChecker::CheckGetDelim(CheckerContext &C, const CallEvent &Call) const { + if (Call.getNumArgs() < 2) + return; ---------------- steakhal wrote:
Why don't we check `!= 4` here? By judging the function name we should only accept the `getdelim` function that has 4 parameters (thus arguments). https://github.com/llvm/llvm-project/pull/145229 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits