balazske wrote:

Additionally, the checked preconditions look not exact. For example the POSIX 
documentation for `getdelim` says: "If *n is non-zero, the application shall 
ensure that *lineptr either points to an object of size at least *n bytes, or 
is a null pointer." This means `*lineptr` can be NULL when `*n` is a nonzero 
value. The buffer size of `*lineptr` could be checked that is at least `*n` (if 
`*lineptr` is not NULL).

https://github.com/llvm/llvm-project/pull/83027
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to