]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: Check for limits when encoding typed params
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 27 Aug 2019 08:57:49 +0000 (10:57 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 28 Aug 2019 09:17:16 +0000 (11:17 +0200)
commit86720ef139d767d0183b9fdccd63ddb5ef3524da
tree084431e96909d5494db6924157a065db3b0a24e8
parent6763f42eee2e1bfd12c596777d25c9345042fba0
remote: Check for limits when encoding typed params

The same way we check for limits when decoding typed parameters
(virTypedParamsDeserialize()) we should do the same check when
serializing them so that we don't put onto the wire more than our
limits allow. Surprisingly, we were doing so explicitly in some
places but not all of them.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
src/admin/admin_remote.c
src/admin/admin_server_dispatch.c
src/remote/remote_daemon_dispatch.c
src/remote/remote_driver.c
src/rpc/gendispatch.pl
src/util/virtypedparam.c
src/util/virtypedparam.h