Hi Tom,
On Thu, May 26, 2022 at 1:50 PM Tom Unbehau [off-list ref] wrote:
Sending this mail again due to HTML mails not being allowed.
Hi Luiz,
The patch did not fix my issue. The issue described in the bugzilla ticket was an error
in the mgmt.c module. I do not see any direct correlation between your patch and the error i am encountering.
I have tried your patch on mainline (5.18) and got the same strlen bug when executing the example
program I have attached to the bugzilla ticket.
I think strlen in the mgmt.c module needs to be replaced by strnlen.
I have attached a patch with these changes to this mail. After applying this patch the
error could not be reproduced for me.
Well looks like there are multiple places actually using strlen rather
than strnlen with the likes of dev_name and short_name.
However, I am not sure, if the changes you have made in the eir.c module are also prudent and could fix
similar issues (I am not familiar with this).
Regards,
Tom Unbehau
--
Luiz Augusto von Dentz