Bug 472219 - Syscall param ppoll(ufds.events) points to uninitialised byte(s)
commit6ce0979884a8f246c80a098333ceef1a7b7f694d
authorPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 24 Jul 2023 20:06:00 +0000 (24 22:06 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 24 Jul 2023 20:06:00 +0000 (24 22:06 +0200)
tree3c1c905da1fac0194c2871e47311314b71df0c9c
parentb368b44c552d0deb4d0ee77968cb0e8e02a07812
Bug 472219 - Syscall param ppoll(ufds.events) points to uninitialised byte(s)

Add checks that (p)poll fd is not negative. If it is negative, don't check
the events field.
15 files changed:
.gitignore
NEWS
coregrind/m_syswrap/syswrap-freebsd.c
coregrind/m_syswrap/syswrap-generic.c
coregrind/m_syswrap/syswrap-linux.c
coregrind/m_syswrap/syswrap-solaris.c
memcheck/tests/Makefile.am
memcheck/tests/bug472219.c [new file with mode: 0644]
memcheck/tests/bug472219.stderr.exp [new file with mode: 0644]
memcheck/tests/bug472219.vgtest [new file with mode: 0644]
memcheck/tests/freebsd/scalar.c
memcheck/tests/freebsd/scalar.stderr.exp
memcheck/tests/freebsd/scalar.stderr.exp-x86
memcheck/tests/solaris/scalar.stderr.exp
memcheck/tests/x86-linux/scalar.stderr.exp