|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Re: [Xen-changelog] [xen-unstable] linux: Fix xenbus dev
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
|
|
|
|
|