From 5bc11df85caefb61fc3fa44aca89b53421c75d2a Mon Sep 17 00:00:00 2001 From: Philippe Waroquiers Date: Sat, 11 Mar 2017 21:07:21 +0000 Subject: [PATCH] Add missing break for the DRM ioctl operations that do not have any args Due to this missing break, the code was falling through to the case VKI_SNDRV_CTL_IOCTL_PVERSION: and was then setting some bytes as defined at (whatever address is in) ARG3. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch and analysis by Daniel Glöckner git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16266 --- coregrind/m_syswrap/syswrap-linux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c index 02fb127c71..bd6c3f2cca 100644 --- a/coregrind/m_syswrap/syswrap-linux.c +++ b/coregrind/m_syswrap/syswrap-linux.c @@ -9520,6 +9520,8 @@ POST(sys_ioctl) case VKI_SNDRV_TIMER_IOCTL_STOP: case VKI_SNDRV_TIMER_IOCTL_CONTINUE: case VKI_SNDRV_TIMER_IOCTL_PAUSE: + break; + case VKI_SNDRV_CTL_IOCTL_PVERSION: { POST_MEM_WRITE( (Addr)ARG3, sizeof(int) ); break; -- 2.47.2