[PATCH v6] linux: Add openat2 (BZ 31664)
Paul Eggert
eggert@cs.ucla.edu
Tue Nov 18 19:12:49 GMT 2025
On 2025-11-10 08:19, Adhemerval Zanella wrote:
> +extern int openat2 (int __dfd, const char *__restrict __filename,
> + const struct open_how *__restrict __how,
> + size_t __usize)
> + __nonnull ((2, 3));
Shouldn't this be fortified at compile time, by using
__builtin_object_size to check that __usize <= sizeof *__how, when
fortify checking is enabled?
More information about the Libc-alpha
mailing list