Re: [Qemu-devel] [PATCH v4 2/5] qcow2-refcount: avoid eating RAM

2019-02-27 Thread Eric Blake
On 12/14/18 7:42 AM, Vladimir Sementsov-Ogievskiy wrote: > qcow2_inc_refcounts_imrt() (through realloc_refcount_array()) can eat > an unpredictable amount of memory on corrupted table entries, which are > referencing regions far beyond the end of file. > > Prevent this, by skipping such regions fr

Re: [Qemu-devel] [PATCH v4 2/5] qcow2-refcount: avoid eating RAM

2019-02-27 Thread Max Reitz
On 14.12.18 14:42, Vladimir Sementsov-Ogievskiy wrote: > qcow2_inc_refcounts_imrt() (through realloc_refcount_array()) can eat > an unpredictable amount of memory on corrupted table entries, which are > referencing regions far beyond the end of file. > > Prevent this, by skipping such regions from