]> The Tcpdump Group git mirrors - libpcap/commit
TESTrun: Add more reject tests with pcap_ether_hostton().
authorDenis Ovsienko <[email protected]>
Thu, 17 Apr 2025 11:07:12 +0000 (12:07 +0100)
committerDenis Ovsienko <[email protected]>
Mon, 21 Apr 2025 20:35:11 +0000 (21:35 +0100)
commita5090c63f88ade0525170f7bd4e0c941aaaf2f2e
treeaf4af7bc9b68fcd4047ad45d58eabbe0a71f1cac
parent50d9ca2fa2e16d9bcee079199378c0d1020395fa
TESTrun: Add more reject tests with pcap_ether_hostton().

pcap_ether_hostton() returns an allocated 48-bit binary MAC address,
which ought to be freed no matter if the attempt to use it was
successful or not.  The latter case stands for several code paths that
start at gen_scode(), invoke pcap_ether_hostton() and eventually
bpf_error(); each of these ought to arrange a means to free the memory.
Some of these code paths are already covered with tests, add tests to
cover the remaining code paths and make the problem space completely
visible to Valgrind.
testprogs/TESTrun