[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Re: [Xen-changelog] [xen-unstable] linux: Fix xenbus device write function.
On 7/3/07 19:48, "John Levon" <levon@xxxxxxxxxxxxxxxxx> wrote: >> u->len += len; >> - if (u->len < (sizeof(u->u.msg) + u->u.msg.len)) >> - return len; >> + if ((u->len < sizeof(u->u.msg)) || >> + (u->len < (sizeof(u->u.msg) + u->u.msg.len))) >> + return rc; > > What is this trying to achieve? Check you have a complete header before comparing on the header's length field. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |