[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH v2] Fix potential NULL dereference in remoteDomainMigratePrepare2
- From: Jiri Denemark <jdenemar redhat com>
- To: Eric Blake <eblake redhat com>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] [PATCH v2] Fix potential NULL dereference in remoteDomainMigratePrepare2
- Date: Tue, 18 May 2010 21:01:02 +0200
> > --- a/src/remote/remote_driver.c
> > +++ b/src/remote/remote_driver.c
> > @@ -2849,17 +2849,34 @@ remoteDomainMigratePrepare2 (virConnectPtr dconn,
> > goto done;
> >
> > if (ret.cookie.cookie_len > 0) {
> > + if (!cookie || !cookielen) {
> > + remoteError(VIR_ERR_INTERNAL_ERROR, "%s",
> > + _("caller ignores cookie or cookielen"));
> > + goto error;
> > + }
...
>
> ACK; looks nicer than v1 for diagnosing a logic bug in the caller,
> rather than papering over it.
Thanks, pushed.
Jirka
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]