]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: dispatch: Allocate 'virDomainDef' in ACL helpers dynamically
authorPeter Krempa <pkrempa@redhat.com>
Mon, 5 Sep 2022 14:22:34 +0000 (16:22 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 9 Sep 2022 14:11:06 +0000 (16:11 +0200)
commit2ecdf259299813c2c674377e22a0acbce5ccbbb2
treed55ac77d455571e5c875ffc10b0ceea766b27cf2
parent89c7ff156bb34738b56acf970e13c6117b672e43
remote: dispatch: Allocate 'virDomainDef' in ACL helpers dynamically

At time of this patch struct 'virDomainDef' has 1736 bytes. Allocate it
dynamically to keep the stack frame size in reasonable values.

This patch also fixes remoteRelayDomainQemuMonitorEventCheckACL, where
we didn't clear the stack'd variable prior to use. Fortunately for now
the code didn't look at anything else than what the code overwrote.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/remote/remote_daemon_dispatch.c