]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd-network/sd-lldp.c
hashmap: hash_funcs - make inputs unambiguous 1465/head
authorTom Gundersen <teg@jklm.no>
Sat, 3 Oct 2015 23:59:06 +0000 (01:59 +0200)
committerTom Gundersen <teg@jklm.no>
Mon, 5 Oct 2015 17:21:02 +0000 (19:21 +0200)
commit1e2527a6fede996a429bd44b30a15e76ee293437
tree3cfdbc2314a6b3c26b63807e5575dac906734942
parentb826ab586c9e0a9c0d438a75c28cf3a8ab485929
hashmap: hash_funcs - make inputs unambiguous

Make sure all variable-length inputs are properly terminated or that
their length is encoded in some way. This avoids ambiguity of
adjacent inputs.

E.g., in case of a hash function taking two strings, compressing "ab"
followed by "c" is now distinct from "a" followed by "bc".
src/basic/hashmap.c
src/libsystemd-network/sd-dhcp-server.c
src/libsystemd-network/sd-lldp.c
src/libsystemd/sd-bus/busctl.c
src/shared/dns-domain.c