aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorJohn Fastabend <[email protected]>2023-09-25 20:53:00 -0700
committerDaniel Borkmann <[email protected]>2023-09-29 17:06:21 +0200
commit5f405c0c0c4651b991c109cf9be33bb996af098e (patch)
tree748778ba879b88615c25f107e8eefaa78b91671f /lib/test_fortify/write_overflow-strncpy-src.c
parentda9e915eaf5dadb1963b7738cdfa42ed55212445 (diff)
bpf, sockmap: Add tests for MSG_F_PEEK
Test that we can read with MSG_F_PEEK and then still get correct number of available bytes through FIONREAD. The recv() (without PEEK) then returns the bytes as expected. The recv() always worked though because it was just the available byte reporting that was broke before latest fixes. Signed-off-by: John Fastabend <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Jakub Sitnicki <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions