Re: [libvirt] [PATCH 2/4] remote: Check for limits when encoding typed params

2019-08-27 Thread Jonathon Jongsma
Nice improvement. Reviewed-by: Jonathon Jongsma On Tue, 2019-08-27 at 14:05 +0200, Michal Privoznik wrote: > 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

[libvirt] [PATCH 2/4] remote: Check for limits when encoding typed params

2019-08-27 Thread Michal Privoznik
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.