]> Zhao Yanbai Git Server - minix.git/commit
Added 2 checks to mapping function - one for overflow (virtual address +
authorBen Gras <ben@minix3.org>
Tue, 24 May 2005 12:30:29 +0000 (12:30 +0000)
committerBen Gras <ben@minix3.org>
Tue, 24 May 2005 12:30:29 +0000 (12:30 +0000)
commit6a3519f3a8af26891464272422acb65aeba1b109
tree2eb1c1243893d21d065b78531b47c3e8fac16e69
parent6ea72ca1eed5fd6f61179be515c8f70f522606cb
Added 2 checks to mapping function - one for overflow (virtual address +
size wraparound), one to see if the size fits in the designated segment.

It seems this check wasn't done. This came to light when trying to pre-check
the users buffer for read() and write() in using the vectored virtual
copy system call in servers/fs/read.c.
kernel/system.c