]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Check ppoll ufds array is safe to deref before checking fd members
authorMark Wielaard <mark@klomp.org>
Fri, 11 Jul 2025 15:18:47 +0000 (17:18 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 11 Jul 2025 15:22:09 +0000 (17:22 +0200)
commit300d541a82d9966e833e4db9028011121253a19b
tree88827eeb2417098184fa78311ea97afac9d88cbb
parent0888c8b2289b450e87e92852e62d540bcd834b5a
Check ppoll ufds array is safe to deref before checking fd members

LTP ppoll01 provides a bad fds array to ppoll as a testcase.
memcheck should warn (through PRE_MEM_READ) this array is bad.
But it shouldn't try to derefence anything if is isn't safe.
coregrind/m_syswrap/syswrap-linux.c