Re: Re: [PATCH] dev/parport: fix the array out-of-bounds risk

From: tuhaowen
Date: Fri Jul 05 2024 - 04:59:55 EST


On Fri, Jul 05, 2024 at 02:45:45PM +0800, Greg Kroah-Hartman wrote:

> I'm not disputing that this change looks correct, I'm asking that you
> redo it and properly check the array size when writing to it so as to
> ensure that it really is correct in case our math is incorrect
> somewhere.

Thank you for your feedback. I have redone the change and
ensured that the array size is properly checked when writing to it.
Please find my updated patch below.

Thanks,

Haowen.Tu