]> 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]>
Wed, 11 Dec 2024 02:40:51 +0000 (18:40 -0800)
commitb7bd627c96f7a70446e4837ca7d5acd6d8122ce2
tree6b5a5dde859fc94e802b2d9b37bb149dca5eaf1c
parent7fe2a0ec262c2c1e7db829b4e13b70c64b0f1da9
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.
CMakeLists.txt
configure.ac