]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
Fix -k argument processing to avoid out-of-bounds memory accesses
authorPetr Špaček <petr.spacek@nic.cz>
Fri, 3 Feb 2017 14:18:49 +0000 (15:18 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Tue, 7 Feb 2017 07:45:05 +0000 (08:45 +0100)
commit3ddfc6093be6bc0b6f9567150e6e1247ddd0c0db
tree5ea8b2a8afb7840c00f6960d6c45e956e6860a69
parentb27acd9f7c22e29b39795b286500c1003d245a48
Fix -k argument processing to avoid out-of-bounds memory accesses

Mangling of keyfile_dir and allocation of keyfile_path led to rare
crashes (and Valgrind complaints).

The error was introduced in 21f3a6b9d0ed3b4ae05d4d1f1612f0f277235723.
daemon/main.c