[PATCH 05/15] virStorageSourceParseBackingJSON: Prevent arbitrary nesting with format drivers

Ján Tomko jtomko at redhat.com
Thu Feb 6 15:12:18 UTC 2020


On Thu, Feb 06, 2020 at 08:51:57AM +0100, Peter Krempa wrote:
>Since we parse attributes for 'raw' which is a format driver and thus
>has nested 'file' structure we must prevent that this isn't nested
>arbitrarily.
>
>Add a flag for the function which allows parsing of 'format' type
>drivers only on the first pass.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/util/virstoragefile.c | 23 +++++++++++++++++------
> 1 file changed, 17 insertions(+), 6 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200206/b1684939/attachment-0001.sig>


More information about the libvir-list mailing list