aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev_api.c
diff options
context:
space:
mode:
authorDavid Wei <[email protected]>2025-05-03 04:30:50 +0000
committerJakub Kicinski <[email protected]>2025-05-06 01:17:47 +0000
commit4720f9707c783f642332dee3d56dccaefa850e42 (patch)
treea2524ed16f0ecf972fd1c1bae30b0ceb4723c88f /net/core/dev_api.c
parentMerge branch 'selftests-drv-net-fix-ping-py-test-failure' (diff)
downloadkernel-4720f9707c783f642332dee3d56dccaefa850e42.tar.gz
kernel-4720f9707c783f642332dee3d56dccaefa850e42.zip
tools: ynl-gen: validate 0 len strings from kernel
Strings from the kernel are guaranteed to be null terminated and ynl_attr_validate() checks for this. But it doesn't check if the string has a len of 0, which would cause problems when trying to access data[len - 1]. Fix this by checking that len is positive. Signed-off-by: David Wei <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions