]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/path: add NULL checks for path in statx and access
authorKarel Zak <kzak@redhat.com>
Wed, 14 Jan 2026 11:12:35 +0000 (12:12 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 14 Jan 2026 11:13:05 +0000 (12:13 +0100)
commit46f8541f94ab02ce940cc2a6a4eec37c2d026f2b
tree021744dc32077257f30521e3575d8791d85e0e60
parent6dbb6101f2b8e28b75e0ed1020be7b459fc37108
lib/path: add NULL checks for path in statx and access

Coverity warns that *at() libc functions (faccessat, statx) have pathname
marked as nonnull. Add explicit runtime NULL checks returning -EINVAL
instead of using __attribute__((nonnull)) into include/path.h to maintain
runtime safety for suid code.

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/path.c