]> git.proxmox.com Git - mirror_frr.git/commit
*: don't pass pointers to a local variables to thread_add_*
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 7 Oct 2021 12:53:10 +0000 (15:53 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 7 Oct 2021 13:01:03 +0000 (16:01 +0300)
commit7640e3c60b33e13376185a0e0c85f3f6c272d0a9
tree91dddddd3fe42fc4ce3e93d452b11504cf829083
parentb7a88ee2910a1c76ccbae38a9e7226d6c93fff37
*: don't pass pointers to a local variables to thread_add_*

We should never pass pointers to local variables to thread_add_* family.
When an event is executed, the library writes into this pointer, which
means it writes into some random memory on a stack.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ldpd/ldpd.c
lib/agentx.c
lib/northbound_confd.c
lib/northbound_sysrepo.c