On 12/11/20 6:32 AM, Hoang Huu Le wrote:
From: Hoang Le
We initialize nlmsghdr without any payload in tipc_nl_compat_dumpit(),
then, result of calling parse attributes always fails and return with
'-EINVAL' error.
When we initialize nlmsghdr with no payload inside
tipc_nl_compat_dumpit()
From: Hoang Le
We initialize nlmsghdr without any payload in tipc_nl_compat_dumpit(),
then, result of calling parse attributes always fails and return with
'-EINVAL' error.
To fix error returning when parsing attributes of a netlink message,
we do a sanity check the length of message payload.