]> git.ipfire.org Git - thirdparty/suricata.git/commit
Avoid use-after-free during pid file cleanup.
authorAlexander Bluhm <alexander.bluhm@gmx.net>
Mon, 18 Mar 2019 13:06:39 +0000 (14:06 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 22 Mar 2019 11:58:40 +0000 (12:58 +0100)
commit0ea3fa92a8955b065f052fb378aab253622f1a4e
treeb454dfe9a2dbb32051106c3b4dea62c29f14f4d0
parentb98c28a60de49d71631ef81a273b88e1c7d3a028
Avoid use-after-free during pid file cleanup.

In case the pid file is given in the config file, the file name is
stored in volatile memory.  Removal of the pid file happens after
cleanup of config memory.  Create a copy of the name which will be
freed after the pid file has been removed.
src/suricata.c
src/suricata.h