Re: [PATCH] net: check against nb->tail in grub_netbuff_pull

2022-03-09 Thread Daniel Kiper
On Sat, Mar 05, 2022 at 12:39:04AM +1100, Daniel Axtens wrote: > GRUB netbuff structure members track 2 different things: the extent of memory > allocated for the packet, and the extent of memory currently being worked on. > > This works out in the structure as follows: > > nb->head: beginning

[PATCH] net: check against nb->tail in grub_netbuff_pull

2022-03-04 Thread Daniel Axtens
GRUB netbuff structure members track 2 different things: the extent of memory allocated for the packet, and the extent of memory currently being worked on. This works out in the structure as follows: nb->head: beginning of the allocation nb->data: beginning of the working data nb->tail: end