[Linux1394-cvslog] rev 734 - trunk
Brought to you by:
aeb,
bencollins
From: SVN U. <dm...@li...> - 2003-02-01 13:59:41
|
Author: dmaas Date: 2003-01-03 19:22:32 -0500 (Fri, 03 Jan 2003) New Revision: 734 Modified: trunk/iso.c Log: fix off-by-one in iso packet buffer checking Modified: trunk/iso.c ============================================================================== --- trunk/iso.c (original) +++ trunk/iso.c 2003-02-01 08:59:08.000000000 -0500 @@ -300,7 +300,7 @@ len = info->len; /* make sure the packet does not go beyond the end of the buffer */ - if(offset + len >= iso->buf_size) + if(offset + len > iso->buf_size) return -EFAULT; /* check for wrap-around */ |