From nobody Mon Feb 9 19:05:28 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1599824581; cv=none; d=zohomail.com; s=zohoarc; b=MtRvruJsa2KMK8UYSFYED7WY1ZQCwv2VyoDN8Iuo8UrCM0yNa13Y6qWyESUrvjoa34S6NmPAL7hg1ZklmuOp3ZWiyd55jHJtM3K/kRelnZbHuG68Gkjo71iO15YTflWMBIQRyxtTZPAvmnVIrJwWj+JTjJB3ChK1RtW1IrpZMAs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599824581; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=QdJVnutwdk1BiEGW+5graKSli7wrPAUEntlkHJ1axxw=; b=Ax3Jk+XdQwm59YTgvN0tYyv3TRpvCJgVspVCOvIvxKorcqXuXctl/Clo57LKa73tGgvEk/D7+kjb68m6oxARb7lyXe91tx2nFWe5rZGhKCUa3jYw1pdKGeojKOC/tfjJKYbrivH54sHxI0aBqAtYTJuq80dWagNgSzw8VnmeXwA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1599824581739585.0973718866866; Fri, 11 Sep 2020 04:43:01 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-93-2XGAMcQDNcmlRx9Z0Uxrrg-1; Fri, 11 Sep 2020 07:42:57 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 092BB1007479; Fri, 11 Sep 2020 11:42:52 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DD6795D9E8; Fri, 11 Sep 2020 11:42:51 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id ABFEF181A271; Fri, 11 Sep 2020 11:42:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08BBgn78010773 for ; Fri, 11 Sep 2020 07:42:49 -0400 Received: by smtp.corp.redhat.com (Postfix) id 71E305DA2A; Fri, 11 Sep 2020 11:42:49 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-163.ams2.redhat.com [10.36.112.163]) by smtp.corp.redhat.com (Postfix) with ESMTP id B7EB75D9E8; Fri, 11 Sep 2020 11:42:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599824580; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=QdJVnutwdk1BiEGW+5graKSli7wrPAUEntlkHJ1axxw=; b=QbrjmXdnKa5mCw0U7oNZTySgDK5HUPdAUhpiT3N8vuo95ZKY1x/yVCmiXRwFW7HLcF7g4s jsoJer43T/A41BM6bU/KWQ8xuPTsUQ+2sKt+ynOYzAXU8MUPWONAP+Aub97oY8Qj541w92 VI0BrQEv65EPmOPAvM4Trik0EP3Ba00= X-MC-Unique: 2XGAMcQDNcmlRx9Z0Uxrrg-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 14/21] qemu: Use glib memory functions in qemuDomainMasterKeyReadFile Date: Fri, 11 Sep 2020 13:42:11 +0200 Message-Id: <20200911114218.489636-15-twiederh@redhat.com> In-Reply-To: <20200911114218.489636-1-twiederh@redhat.com> References: <20200911114218.489636-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.001 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake Reviewed-by: J=C3=A1n Tomko --- src/qemu/qemu_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 0ed132a829..6efc6102bd 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -511,7 +511,7 @@ qemuDomainMasterKeyReadFile(qemuDomainObjPrivatePtr pri= v) goto error; } =20 - ignore_value(VIR_REALLOC_N_QUIET(masterKey, masterKeyLen)); + masterKey =3D g_renew(uint8_t, masterKey, masterKeyLen); =20 priv->masterKey =3D masterKey; priv->masterKeyLen =3D masterKeyLen; --=20 2.26.2