From patchwork Fri Jul 5 15:30:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 810430 Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp1670263wru; Fri, 5 Jul 2024 08:39:27 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWCjkB47f3v8QlbhaG64aY7ha5AZgaemwGhk0debM1QWBYm4AV9b2mhcwmeM+JFZi9RcNBqPPkglCaT1j8T3wcD X-Google-Smtp-Source: AGHT+IHGRa5LOiKeoTcmV0/F0AutSCx4m+e5DFftF86xYlkbY0+dTLCraE7wcFFTSMYnn3EjsWRy X-Received: by 2002:ae9:f119:0:b0:79d:623a:6711 with SMTP id af79cd13be357-79eee1f669fmr440870785a.25.1720193967540; Fri, 05 Jul 2024 08:39:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720193967; cv=none; d=google.com; s=arc-20160816; b=JrxmIkJx4P9oxODjo8apzylZWiZIgDJd8bg9tLcB2mESHk5t5X8Tbmh2ss59ZLxfv4 dE/0ldG4JV/+pY7kChXzgdPFVBvXQqH9iQ67Ze3UotyZObddYMMTNRODuISHPIhx8db+ bibkpNls+V2YFQB+MkToNtzTzPgTObZPFk07gAtjiCUjC1eUYY4Zso9donGy1hdB2ISX Ld3CPx/22W7rW8N/oZWsPR99iKkGGH5REAc4mnBD81JEw4gBbiTqW0YK3gEh6G+T2Qdj oD0Ytlw5rsRdmgZQcjuv7Iv7vPkS+w6NizPeMklubXaumgdzXhCsWW3fi7zZronSqS0t 2SLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UMmvQJJsx2DzZLMmy3nNlACqKsBlZyZqjVhcXblbIqc=; fh=aiZZfsPL0mb5SWaIEkEIhV9A861gmKPH5EWZ09/byvk=; b=VlU4s1dNLId3K0CYSkGPMnn4Jh9whR0WJepfQlxvW/H5XAP320l1Z+q7tX54nTxvyG NtIgo4GRxUA9oEnw1GO+6xQR+ovsL+MFz+R4YtA74Nx6Ts7o7IrQkWC3iwqeD6s3qXLx /8Jh7ghVUs0jAqgyb+//2thbfV/ENf2MKjdlB5lUN9LRGwNnutvqOpmSg1AOGA8luNAx ItDW0OyxcLJ8O+JpTKcLg/eYWfVMFiak2UHuj8ZogGlJsdJqsZajLuoUL8tmplyM79Xq EzXCWP/3Sqcbc3xUzgAF8PrPjtuiMqhxzJQ1GM8/9lpHPctsRTQQqy6k0zsUQFKaPQch nE7w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nBorfrRy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-79d6933b10csi1679994285a.641.2024.07.05.08.39.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Jul 2024 08:39:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nBorfrRy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl08-0002gh-VJ; Fri, 05 Jul 2024 11:37:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPkzv-0002bB-MD for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:20 -0400 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzu-0001Hg-6d for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:19 -0400 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a77c349bb81so135810666b.3 for ; Fri, 05 Jul 2024 08:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193837; x=1720798637; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UMmvQJJsx2DzZLMmy3nNlACqKsBlZyZqjVhcXblbIqc=; b=nBorfrRyWsoOAHoVOXgomwqnm7d5LAGTo2tozBUYS1MMaNyuuxrYZMqpn9JYp9zT4X JSzKvL9/KX+IDCFV28c6xNDfQzmYHqInMot/8oxJ0CyC4JkkxKrhpqXfi35rkSGjnuDv L8hX+PE/6wroKmXuUe5TEW99qhy0Jzyn6RXDkaWvgi5iUwVeEa2F1npNkkB/W07iI+aJ CaHMhsT2QLrOCDjZXNT1WAN8MJMtk+A12nhne5VztlU/bO8mneAql0CfB2rn6wNEb8dA dGHOyWX2Azv/cpkeZx2JgVUiyQ9vwL+SJ1ueXzymlTJOhjPzdV/PZO3kYT6A8FuZbcfA Avtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193837; x=1720798637; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UMmvQJJsx2DzZLMmy3nNlACqKsBlZyZqjVhcXblbIqc=; b=c3cpdPR8wnLB97U/admKbDycJyKo4bGnQSx7PuqRzF55VOS0akBDwoHwmD9eAByZmZ u4gz2DzUx1oUZaLKSJR0SdywqELfKQAM1Es7u0dg+DyNANIbmi9IIytONwKP2eBFb/I5 IX73UJwCxbVR16adeEKCbgMiSgIp5NM+poMLz/gYFC83V+8mDG46G6oW+DWNAJzLhAvT W0fgXNgCP2NWiEtEjn/6JD9/vD1mHqr/otDU5eyKvI+j2juTZSiS4ItHjXrJSkbKqbYJ bOEGgpVb+TeQLTGORS0hiBLoa5ZQYycX2U+AVPPngeN2kDQt0IK2ib/h7fYC+5A4L9u9 +vxQ== X-Gm-Message-State: AOJu0Yz4dNkmmWmeFkU/f30bISYTCfe0NfGD/m6Yn0/yglBUNHkVWwvd LhWF6C4AK5HYpB7HHXwe/LIMZy8HfGAt0+4jWtZ/hw6WAcDU0qNKB8HbNGFE0V4= X-Received: by 2002:a17:906:fa0e:b0:a72:8d2f:859c with SMTP id a640c23a62f3a-a77ba48deb1mr321164466b.33.1720193836475; Fri, 05 Jul 2024 08:37:16 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a754758168asm302976066b.80.2024.07.05.08.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:14 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 311C96213D; Fri, 5 Jul 2024 16:30:55 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Manos Pitsidianakis , Alexandre Iooss , Mahmoud Mandour , Pierrick Bouvier Subject: [PULL 23/40] plugins/lockstep: preserve sock_path Date: Fri, 5 Jul 2024 16:30:35 +0100 Message-Id: <20240705153052.1219696-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x633.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org We can't assign sock_path directly from the autofree'd GStrv, take a copy. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Bennée Message-Id: <20240705084047.857176-24-alex.bennee@linaro.org> diff --git a/contrib/plugins/lockstep.c b/contrib/plugins/lockstep.c index 237543b43a..67a779ee9d 100644 --- a/contrib/plugins/lockstep.c +++ b/contrib/plugins/lockstep.c @@ -347,7 +347,7 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id, return -1; } } else if (g_strcmp0(tokens[0], "sockpath") == 0) { - sock_path = tokens[1]; + sock_path = g_strdup(tokens[1]); } else { fprintf(stderr, "option parsing failed: %s\n", p); return -1;