Thread (1 message) 1 message, 1 author, 2022-08-24

Re: [PATCH] net/ieee802154: fix uninit value bug in dgram_sendmsg

From: Alexander Aring <aahringo@redhat.com>
Date: 2022-08-24 12:38:41
Also in: lkml

Hi,

cc mailing lists again.

On Wed, Aug 24, 2022 at 7:55 AM zhang haiming [off-list ref] wrote:
If msg_namelen is too small like 1, the addr_type field will be
unexpected. Meanwhile, check msg_namelen < sizeof(*daddr) is
Then check if space for addr_type is available, if not -EINVAL. If
addr_type available, evaluate it, if it's unknown -EINVAL, the minimum
length differs here if it's known.
necessary and enough as dgram_bind and dgram_connect did.
you probably found similar issues.

It is a nitpick and I see that the current behaviour is not correct here.

- Alex
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help