Received: from eggs.gnu.org ([2001:4830:134:3::10]:50468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ff8XP-0003uv-Py for qemu-devel@nongnu.org; Mon, 16 Jul 2018 14:48:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ff8XM-0007Wu-5R for qemu-devel@nongnu.org; Mon, 16 Jul 2018 14:47:59 -0400 Date: Mon, 16 Jul 2018 19:47:52 +0100 From: "Daniel P. Berrange" Message-ID: <20180716184752.GA30657@redhat.com> Reply-To: "Daniel P. Berrange" References: <20180716174146.19845-1-krinkin.m.u@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180716174146.19845-1-krinkin.m.u@gmail.com> Subject: Re: [Qemu-devel] [PATCH] opts: fix NULL pointer derefernce in get_opt_value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mike Krinkin Cc: qemu-devel@nongnu.org, armbru@redhat.com, pbonzini@redhat.com, qemu-trivial@nongnu.org On Mon, Jul 16, 2018 at 06:41:46PM +0100, Mike Krinkin wrote: > The value argument can be NULL, for example, in hw/i386/multiboot.c > in the load_multiboot function get_opt_value is explicitly called > with NULL as the second argument. > > The problem was introduced in commit 950c4e6c94b1 ("opts: don't > silently truncate long option values"). This change fixes the > problem by adding a check whether the value is NULL or not. > > Signed-off-by: Mike Krinkin > --- > util/qemu-option.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) This problem is fixed in this: https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg01490.html but it is still waiting for i386 maintainers to respond.... Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|