On 2022/5/24 3:58, Jarkko Sakkinen wrote:
On Fri, May 20, 2022 at 03:35:09PM +0800, Guozihua (Scott) wrote:
On 2022/5/20 4:49, Jarkko Sakkinen wrote:
On Thu, May 19, 2022 at 10:47:02AM +0800, GUO Zihua wrote:
Use struct_size helper for calculating size of flexible struct to avoid
potential issues and improve readibility. Use size_add to calculate
addition of size to prevent potential issues.
What issues? Please explicitly state the issues.
BR, Jarkko
.
Hi Jarkko,
This is a clean-up/optimization patch mostly focuses on readability and no
actual issue is observed at the moment.
But the commit message is talking about potential issues.
BR, Jarkko
.
Thanks Jarkko.
Yes, and it should be considered wrong. I've sent a v2 patch addressing
this.
--
Best
GUO Zihua