aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/lib/ynl.py
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2024-03-05 18:50:00 +0000
committerJakub Kicinski <[email protected]>2024-03-07 19:01:31 +0000
commit15d2540e0d626b7960c9cafb3c825554fdf1a2b4 (patch)
tree4ff9aa93504740abefa9964287ba08744bedc840 /tools/net/ynl/lib/ynl.py
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff)
downloadkernel-15d2540e0d626b7960c9cafb3c825554fdf1a2b4.tar.gz
kernel-15d2540e0d626b7960c9cafb3c825554fdf1a2b4.zip
tools: ynl: check for overflow of constructed messages
Donald points out that we don't check for overflows. Stash the length of the message on nlmsg_pid (nlmsg_seq would do as well). This allows the attribute helpers to remain self-contained (no extra arguments). Also let the put helpers continue to return nothing. The error is checked only in (newly introduced) ynl_msg_end(). Reviewed-by: Donald Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/net/ynl/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions