]> git.ipfire.org Git - thirdparty/valgrind.git/commit
mount syscall param filesystemtype may be NULL
authorMark Wielaard <mark@klomp.org>
Thu, 8 May 2025 22:21:25 +0000 (00:21 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 8 May 2025 23:01:22 +0000 (01:01 +0200)
commitff6e14ab798af0628c54c6a704c1cb8844a79419
tree7f921c003c0a087df2f78b6dd2c699bfc72726ec
parentcb266a0b87b3e6d432b8f1d4d0cbe0351222d783
mount syscall param filesystemtype may be NULL

On Linux the mount syscall, depending on flags provided, the source,
type and data my be ignored.  We already don't check data and allow
source to be NULL.  Normally when type is ignored an application will
provide an empty string "".  But sometimes NULL is passed (like for
source).  So we now also allow type to be NULL to prevent false
positives.

Adjust the linux/scalar.c tests so the type param is still
unaddressable.

https://bugs.kde.org/show_bug.cgi?id=503914
NEWS
coregrind/m_syswrap/syswrap-linux.c
memcheck/tests/arm64-linux/scalar.c
memcheck/tests/x86-linux/scalar.c