From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19086 invoked from network); 26 Oct 2023 08:28:50 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Oct 2023 08:28:50 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1698308930; b=bUxydnI1NLVNryTNKSNigtLfF0YIlOY8RY9TV2363NMWx4Eim0MpowvO1TXpqlxuvVgeNjFkRX 1pqyUsx4hzT7mCE0ZeQrqsZD6AC1H1UFlIcSynaBudL9MYfCiRH3Lc3CQmXvzYNgm8OobQEKTY 40ACDG2VdRqgXWautk4iReP6D9dqDYbG7YxhbJG+tMmsU+uiQD1Sfj6zux8m8bqRml1bPzqPLV ajmKlCYeY+naMYsixjA/yWvf54SyN5r+7i8SVHVNJ/2JddhFf8icC32qHDi2I0kiZnpZq1oTzS T6ECfyHGt2W/nP14GQP0rsS80MBmXYVxjVJ5G936W7rVjQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (csmtpq3-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.34; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1698308930; bh=6annKHvPMMG73JQ6PwLP+9tZKUDm6pubD9TQs2P3/tI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=aZbr7JgPB1r10qA1Dh1DOVPvDXrgqGf9nCJ/spaOJJmTxGGY6t6lpvKqMCBiK5XghO7oKO0cyB vJx4UNncQ8fqOGoYuPcYgXiAbSQIaPJyp8TeiWlojgHYRXFDVDfbB42s3OZ9unZx6pzhq/X2R1 tsyTx6tcLqvUdDIdl6Q9ozZbrVLS8aCgvS2n5hGrTtbhq2U3EzhTs8fcIM1dlyDiXj8SHnTUjU D0CYGVOe0z8VME0yTklUoSKHenqtD3cz2YxgG9IflYdAY9sf2ckPLxC3tAMnU4eSsAcA6B0uRN +q7QqFgxQmDUJUIfTtt16LE3VrTQBoxameNtNcwQDDPOIw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Ilm5KFtVzVLlwYgXa+AFIgp9FDyH89F1gx/EH3nNUeU=; b=PGRpdPgpqvyqYB+nHT7J97BsZA GoH6md2Xhcw9yG+lygPINSSBeqyCLJvGefT3iQmeSjL4qwmOIRlEGjabdxzy+9V5JbQEBYl/Ba4Oz zIXAgyiVtcF8uKcVgVkRXRobNTBkUZETwSdZrfXL8tXcPm7oZuo9TeqVyA1Ayx40YCCv5Xq4PuRkr gmI0qtO1xws4Zqr+VFN3F5Fg8sIj+1JdQofB2RWZiQDa9eICHTR6Hk7BYIMPVftnFoBdSJUnRcQtS EYXCwe1NXgiAqOHjvn5/AHdauEhvqKmc+CAY+CZPFtQ73NJh5OvElUhwD1akWRYT9Es2GU8dfcRAU as5pIhxA==; Received: by zero.zsh.org with local id 1qvvjV-000J51-Q2; Thu, 26 Oct 2023 08:28:49 +0000 Authentication-Results: zsh.org; iprev=pass (csmtpq3-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.34; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from csmtpq3-prd-nl1-vmo.edge.unified.services ([84.116.50.34]:18411) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qvvjD-000Im8-6p; Thu, 26 Oct 2023 08:28:32 +0000 Received: from oxsmtp3-prd-nl1-vmo.nl1.unified.services ([100.107.83.172]) by csmtpq3-prd-nl1-vmo.edge.unified.services with esmtp (Exim 4.93) (envelope-from ) id 1qvvjB-00FdXh-Ue for zsh-workers@zsh.org; Thu, 26 Oct 2023 10:28:29 +0200 Received: from oxbe1-prd-nl1-vmo.nl1.unified.services ([100.107.83.149]) by oxsmtp3-prd-nl1-vmo.nl1.unified.services with ESMTP id vvjBqAF1od6V6vvjBqoj5t; Thu, 26 Oct 2023 10:28:29 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 100.107.83.149 X-CNFS-Analysis: v=2.4 cv=FJXdhcks c=1 sm=1 tr=0 ts=653a232d cx=a_exe a=/f29gUOyyl2i7m/Kr61l8A==:117 a=IvlwODmuRu4A:10 a=IkcTkHD0fZMA:10 a=q2GGsy2AAAAA:8 a=ezSa-Cb25JCsHRzzU74A:9 a=QEXdDO2ut3YA:10 a=HbQOABYz3jhqdZF7JfnK:22 a=z9dJwno5l634igLiVhy-:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1698308909; bh=6annKHvPMMG73JQ6PwLP+9tZKUDm6pubD9TQs2P3/tI=; h=Date:From:To:In-Reply-To:References:Subject; b=E3mJF2rViDrtHqhEUkmiwLvWy/GwyanjwHLqAnXWDqR+yHLlnjz7JirMgLT9ybl7b 1w4XW9vdY1TRjHEN8UHhLT/rTfPt1Ca64trx+oPqI6C2/LDkPRU1YbSXp74Yc7AIwK 7ON8XyZPa2/OKJFo2VukGl8UundPWpSePj/7W7kW8SqCXFazs2OXjCzzFB3Glf/R/e 12YJLnVV8/Ry0Y0lYNuTzod4wu/i+kLLnIuBK3ol03ScpNbkVLjPna4ZlPjZ18eXP8 SYu+vIi0luJvQVmLIbZJcwnyARujSVu81V3NjtJrFwLbuV2kPlROI/O8LKbYI5ti5t t7V7+3pV80DUw== Date: Thu, 26 Oct 2023 09:28:29 +0100 (BST) From: Peter Stephenson To: Zsh hackers list Message-ID: <1916212035.1566877.1698308909875@mail.virginmedia.com> In-Reply-To: References: Subject: Re: [PATCH] Fix a bunch of Coverity-reported defects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer X-Originating-IP: 147.161.224.196 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfNhFE3LKGiVAI/Vg3/zYa5t88cxsStZtf7x14qMdSZu59hBStbYQWyrKibYyJq93jLu6zGOvwmdhvGe/MffT1njEKOnV2kRcPXEsgKNAieaBMozyZKZA fQAhCIpqto9g/ZA1RoYqEyzwbNeiuWCnsr59ifIftvUh0TwBefLX8IDCye3YJ/54IgWKR2lUk74aYirfZFTCYntUXguCafWQ0wDfOF2Esc9MbFzpBEdR1tXe X-Seq: 52247 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: > On 26/10/2023 04:36 Bart Schaefer wrote: > A batch of the warnings that I ignored were assignments of one field > of a union to another field of the same union, e.g., a casted long > onto a double, etc., which elicited "overlapping copy" warnings. I'm > fairly confident we'd have seen things crashing by now if this wasn't > safe, but I mention it in case someone knows why it might be a > problem. I guess it's worried about cases where the reads are not atomic and you might be writing back piecemeal. I can't believe this is going to be an issue for 32-bit values, so if there was ever going to be a problem it would be when there is a read of e.g. a long long or a double on a 32-bit system. I rather suspect compiler writers are alive to this sort of thing anyway. pws