From: Tom Hughes Date: Wed, 25 Aug 2010 09:13:44 +0000 (+0000) Subject: The argument to FIBMAP is an int, not an unsigned long. Fixes #248822. X-Git-Tag: svn/VALGRIND_3_6_0~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72abd5958d8c115c8cf770f15c8e900778a0f361;p=thirdparty%2Fvalgrind.git The argument to FIBMAP is an int, not an unsigned long. Fixes #248822. Patch from Christian Borntraeger . git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11289 --- diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c index 247402d807..c5fc108f21 100644 --- a/coregrind/m_syswrap/syswrap-linux.c +++ b/coregrind/m_syswrap/syswrap-linux.c @@ -4281,7 +4281,7 @@ PRE(sys_ioctl) PRE_MEM_WRITE( "ioctl(FIGETBSZ)", ARG3, sizeof(unsigned long)); break; case VKI_FIBMAP: - PRE_MEM_READ( "ioctl(FIBMAP)", ARG3, sizeof(unsigned long)); + PRE_MEM_READ( "ioctl(FIBMAP)", ARG3, sizeof(int)); break; case VKI_FBIOGET_VSCREENINFO: /* 0x4600 */ @@ -5244,7 +5244,7 @@ POST(sys_ioctl) POST_MEM_WRITE(ARG3, sizeof(unsigned long)); break; case VKI_FIBMAP: - POST_MEM_WRITE(ARG3, sizeof(unsigned long)); + POST_MEM_WRITE(ARG3, sizeof(int)); break; case VKI_FBIOGET_VSCREENINFO: //0x4600