diff options
| author | Shigeru Yoshida <[email protected]> | 2024-07-16 11:09:05 +0900 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-07-24 12:18:03 +0100 |
| commit | fa96c6baef1b5385e2f0c0677b32b3839e716076 (patch) | |
| tree | bb7e227d24bc827c44f3adcb67b68452863160f3 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
| parent | 3ba359c0cd6eb5ea772125a7aededb4a2d516684 (diff) | |
tipc: Return non-zero value from tipc_udp_addr2str() on error
tipc_udp_addr2str() should return non-zero value if the UDP media
address is invalid. Otherwise, a buffer overflow access can occur in
tipc_media_addr_printf(). Fix this by returning 1 on an invalid UDP
media address.
Fixes: d0f91938bede ("tipc: add ip/udp media type")
Signed-off-by: Shigeru Yoshida <[email protected]>
Reviewed-by: Tung Nguyen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions