diff options
| author | Daniel Müller <[email protected]> | 2023-03-07 21:55:04 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2023-03-07 23:30:47 +0000 |
| commit | 3ecde2182adbb12b52b777d8fb4a599b43faf4f1 (patch) | |
| tree | 365403d9b978bcf7f1265d20d316a1b49b11c99e /tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c | |
| parent | Merge branch 'bpf: bpf memory usage' (diff) | |
| download | kernel-3ecde2182adbb12b52b777d8fb4a599b43faf4f1.tar.gz kernel-3ecde2182adbb12b52b777d8fb4a599b43faf4f1.zip | |
libbpf: Fix theoretical u32 underflow in find_cd() function
Coverity reported a potential underflow of the offset variable used in
the find_cd() function. Switch to using a signed 64 bit integer for the
representation of offset to make sure we can never underflow.
Fixes: 1eebcb60633f ("libbpf: Implement basic zip archive parsing support")
Signed-off-by: Daniel Müller <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c')
0 files changed, 0 insertions, 0 deletions
