|
From: <sv...@va...> - 2008-05-14 12:18:44
|
Author: sewardj
Date: 2008-05-14 13:18:48 +0100 (Wed, 14 May 2008)
New Revision: 8073
Log:
Merge r7322 (Valid file descriptor argument to llseek system call.)
(What bug # does this fix?)
Modified:
branches/VALGRIND_3_3_BRANCH/coregrind/m_syswrap/syswrap-linux.c
Modified: branches/VALGRIND_3_3_BRANCH/coregrind/m_syswrap/syswrap-linux.c
===================================================================
--- branches/VALGRIND_3_3_BRANCH/coregrind/m_syswrap/syswrap-linux.c 2008-05-14 09:50:08 UTC (rev 8072)
+++ branches/VALGRIND_3_3_BRANCH/coregrind/m_syswrap/syswrap-linux.c 2008-05-14 12:18:48 UTC (rev 8073)
@@ -582,7 +582,10 @@
unsigned int, fd, unsigned long, offset_high,
unsigned long, offset_low, vki_loff_t *, result,
unsigned int, whence);
- PRE_MEM_WRITE( "llseek(result)", ARG4, sizeof(vki_loff_t));
+ if (!ML_(fd_allowed)(ARG1, "llseek", tid, False))
+ SET_STATUS_Failure( VKI_EBADF );
+ else
+ PRE_MEM_WRITE( "llseek(result)", ARG4, sizeof(vki_loff_t));
}
POST(sys_llseek)
{
|
|
From: Tom H. <to...@co...> - 2008-05-14 12:43:10
|
In message <200...@ja...>
sv...@va... wrote:
> Log:
> Merge r7322 (Valid file descriptor argument to llseek system call.)
> (What bug # does this fix?)
There wasn't a bug number - it came up on the mailing list in January
during a discussion of the new sync_file_range system call.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|