]> git.tuebingen.mpg.de Git - paraslash.git/commit
server: Delay vss shutdown in command handler context.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 9 Jun 2025 19:23:59 +0000 (21:23 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 12 Jun 2025 23:10:35 +0000 (01:10 +0200)
commitca6594fa588ef9cabeb12f7e00eecb19d1665440
tree58d01c0e3a0256d135b7aea7f4df0f61c03f6d36
parent231c2dda1c9f13df1d956dd2790992689b3f4838
server: Delay vss shutdown in command handler context.

The sender status subcommand invoked via ->handle_connect() accesses memory
that has been freed in vss_shutdown(), resulting in garbage output. This
use-after-free bug is correctly reported by valgrind. It can easily be fixed
by moving the vss_shutdown() call down.

Fixes: 018a7b7927b76044b28eece39039cb2f5ea9c192
server.c