Re: [PATCH] loader: Ensure the newc pathname is NULL-terminated

2022-11-24 Thread Daniel Kiper
On Thu, Nov 24, 2022 at 11:54:28AM +0800, Gary Lin via Grub-devel wrote: > On Wed, Nov 23, 2022 at 03:44:54PM +0100, Daniel Kiper wrote: > > On Wed, Nov 23, 2022 at 02:40:21PM +0800, Gary Lin via Grub-devel wrote: > > > Per "man 5 cpio", the namesize in the cpio header includes the trailing > > > N

Re: [PATCH] loader: Ensure the newc pathname is NULL-terminated

2022-11-23 Thread Gary Lin via Grub-devel
On Wed, Nov 23, 2022 at 03:44:54PM +0100, Daniel Kiper wrote: > On Wed, Nov 23, 2022 at 02:40:21PM +0800, Gary Lin via Grub-devel wrote: > > Per "man 5 cpio", the namesize in the cpio header includes the trailing > > NULL byte of the pathname and the pathname is followed by NULL bytes, but > > s/N

Re: [PATCH] loader: Ensure the newc pathname is NULL-terminated

2022-11-23 Thread Daniel Kiper
On Wed, Nov 23, 2022 at 02:40:21PM +0800, Gary Lin via Grub-devel wrote: > Per "man 5 cpio", the namesize in the cpio header includes the trailing > NULL byte of the pathname and the pathname is followed by NULL bytes, but s/NULL/NUL/ and below please... > the current implementation excludes the