]> The Tcpdump Group git mirrors - tcpdump/commit
autotools, CMake: fix issues with snprintf test and sanitizers.
authorGuy Harris <[email protected]>
Tue, 10 Dec 2024 18:55:23 +0000 (10:55 -0800)
committerGuy Harris <[email protected]>
Mon, 16 Dec 2024 02:22:11 +0000 (18:22 -0800)
commit88d983dd05b6da66e4e1cd6b1d74ff7b28ad931c
tree88a2cc2f6f736d890a53a35aa28d7add4c23ec34
parentd8e66754be72d3b6491dfd4386cc933b2af7a29c
autotools, CMake: fix issues with snprintf test and sanitizers.

Avoid trying to cast negative values to unsigned types, or doing shifts
of signed types, in order not to have the test program fail if we're
building with undefined-behavior sanitizers enabled.

See the-tcpdump-group/libpcap#1396 for the equivalent libpcap issue.

(cherry picked from commit b7bd627c96f7a70446e4837ca7d5acd6d8122ce2)
CMakeLists.txt
configure.ac