From nobody Mon Feb 9 00:07:35 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 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=1614696593; cv=none; d=zohomail.com; s=zohoarc; b=nJGPJEBTL47GBhkNRKdIs5Es5e1nRmPds6qVNzWzhUMsHjk+XvRao3PineM7rfzZb9p+UjhzhG2n9aTm+TouktRRFmx33bMJmOOlfO7SkBamW/c7IOD/cHITJti15Zc7q5QHSLwDPOP2erDBNQ6IU091SZNSvYzEMUVvd4oSo2c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614696593; h=Content-Type:Content-Transfer-Encoding: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=907phQNNu0M+wLS/IfyXkQcEL8XuSaABY1lMtOF5OyE=; b=fCGT7KTla9N23wT2O570nFGS7z6kWYNEkIesaJzMx5hGOd+MKG2yxxb65YGblk7e6LBcvvdeh2Ct9KcsSs25oB6XeilY8wqQBmS3ZuNlHcpuuT9yCXeNitiWQCXTG7NykOpBlHptDsQdMK+D3IVoKQl9nJp5rK3xjRscCUDnc2I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 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-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1614696593535496.4512097414196; Tue, 2 Mar 2021 06:49:53 -0800 (PST) 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-520-uAIRgRDzMMC96kXMVKv60A-1; Tue, 02 Mar 2021 09:49:50 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 324F7803F48; Tue, 2 Mar 2021 14:49:45 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C5B275C626; Tue, 2 Mar 2021 14:49:44 +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 741EE49; Tue, 2 Mar 2021 14:49:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 122Enet5014411 for ; Tue, 2 Mar 2021 09:49:40 -0500 Received: by smtp.corp.redhat.com (Postfix) id 665095D723; Tue, 2 Mar 2021 14:49:40 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id BFF325D722 for ; Tue, 2 Mar 2021 14:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614696592; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=907phQNNu0M+wLS/IfyXkQcEL8XuSaABY1lMtOF5OyE=; b=T3+gBI4NUoRxNdWEwxSSHVcQp/FOg1wAxVjrgKcLHjsONBxpwtfbbDDvq3z4n1nwbSeHtH HvdCBgNEPnGOhDfQ1bfyG9X1hihx2152bq2LFvdprWG+xBjkVGL/T+slUCnrYU1KRfcbPe QkLhe9Ej44uu7SvKqixrEHli4wB/koY= X-MC-Unique: uAIRgRDzMMC96kXMVKv60A-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 02/16] virProcessRunInForkHelper: Use virStrcpyStatic for static buffers Date: Tue, 2 Mar 2021 15:49:19 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com 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.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 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: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- src/util/virprocess.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/virprocess.c b/src/util/virprocess.c index 69d64e9466..7a0960e337 100644 --- a/src/util/virprocess.c +++ b/src/util/virprocess.c @@ -1168,14 +1168,14 @@ virProcessRunInForkHelper(int errfd, bin->data.code =3D err->code; bin->data.domain =3D err->domain; - ignore_value(virStrcpy(bin->data.message, err->message, sizeof= (bin->data.message))); + virStrcpyStatic(bin->data.message, err->message); bin->data.level =3D err->level; if (err->str1) - ignore_value(virStrcpy(bin->data.str1, err->str1, sizeof(b= in->data.str1))); + virStrcpyStatic(bin->data.str1, err->str1); if (err->str2) - ignore_value(virStrcpy(bin->data.str2, err->str2, sizeof(b= in->data.str2))); + virStrcpyStatic(bin->data.str2, err->str2); if (err->str3) - ignore_value(virStrcpy(bin->data.str3, err->str3, sizeof(b= in->data.str3))); + virStrcpyStatic(bin->data.str3, err->str3); bin->data.int1 =3D err->int1; bin->data.int2 =3D err->int2; --=20 2.29.2