================ @@ -369,6 +380,9 @@ ProgramStateRef UnixAPIMisuseChecker::EnsureGetdelimBufferAndSizeCorrect( void UnixAPIMisuseChecker::CheckGetDelim(CheckerContext &C, const CallEvent &Call) const { + if (Call.getNumArgs() < 2) + return; ---------------- steakhal wrote:
I think the confusion was the function name. Could you rename it to `CheckGetDelimOrGetline`. The `if (Call.getNumArgs() < 2)` should be fine as is I think. 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