From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: from tb-ob0.topicbox.com (tb-ob0.topicbox.com [64.147.108.117]) by inbox.vuxu.org (Postfix) with ESMTP id 9CE002DCF6 for ; Thu, 3 Oct 2024 16:11:38 +0200 (CEST) Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 8F11A1DA4E for ; Thu, 3 Oct 2024 10:11:37 -0400 (EDT) (envelope-from bounce.mMed567fcd02a72b0119ec3d19.r81958daa-7202-11ef-bbf2-18142b2d11b0@illumos.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 8AF571C13D; Thu, 3 Oct 2024 10:11:37 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=me.com header.i=@me.com header.b=fnNl+FYK header.a=rsa-sha256 header.s=1a1hai x-bits=2048; dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=me.com; spf=pass smtp.mailfrom=tsoome@me.com smtp.helo=qs51p00im-qukt01071902.me.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=content-type:mime-version:message-id:date:to :list-help:list-id:list-post:list-subscribe:reply-to:subject :content-transfer-encoding:from:list-unsubscribe; s=sysmsg-1; t= 1727964697; bh=11lfUaV1j0NIBG4Y2HgtJ1iMxqsH73T8A5dXe7TRDoA=; b=S y2+cEhoOtW45Nf+aztzA8ERWEY5+xZRIaNl1b6MI4zdW/tCAg388B2vHzjjodmOj 75P+ffxTQTuQVWAHcq9/gQcPBtbJg7L3YycsakAnJjATBi6A87jR4aNFGmwF35M8 V6ZEv76QGeaBDoMHVeMkLxpKTI8/bJdZQHc8XvIzsI= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1727964697; b=oimBkqZjeCQFyWmdB1e6h0taM/vj1hEDMKOkBcsQjJsDYBu5Gd ps6fCl494pdK9OBwXkCHfGr9dtqaTv9LynI0qKHXhCUeLO78WpUykbjGHHlKwPGv uUsDR5jGCKmEyP/SgpXW4qgoYd20ZjfxFRw3+v/elON7fAKo5TQ1v58RM= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=me.com header.i=@me.com header.b=fnNl+FYK header.a=rsa-sha256 header.s=1a1hai x-bits=2048; dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=me.com; spf=pass smtp.mailfrom=tsoome@me.com smtp.helo=qs51p00im-qukt01071902.me.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=declined (Domain declined to participate); dkim=pass (2048-bit rsa key sha256) header.d=me.com header.i=@me.com header.b=fnNl+FYK header.a=rsa-sha256 header.s=1a1hai x-bits=2048; dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=me.com; iprev=pass smtp.remote-ip=17.57.155.9 (qs51p00im-qukt01071902.me.com); spf=pass smtp.mailfrom=tsoome@me.com smtp.helo=qs51p00im-qukt01071902.me.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=qs51p00im-qukt01071902.me.com policy.ptr=qs51p00im-qukt01071902.me.com; x-return-mx=pass header.domain=me.com policy.is_org=yes (MX Records found: mx01.mail.icloud.com,mx02.mail.icloud.com); x-return-mx=pass smtp.domain=me.com policy.is_org=yes (MX Records found: mx01.mail.icloud.com,mx02.mail.icloud.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-100 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lists.illumos.org; h= content-type:mime-version:message-id:date:to:list-help:list-id :list-post:list-subscribe:reply-to:subject :content-transfer-encoding:from:list-unsubscribe; s=dkim-1; t= 1727964697; x=1728051097; bh=5myGpbxWcnHjGkYqZd1VXbLcxaIfmGtqWyN bh5E7nY8=; b=XZNWbYqgyKXkBNR1Ir/I8xAMPppG+NcIhzzzEx//8x7P+QK1OFt Py4Wo6vMjz8BsdsaxFrllawGELDoHAUoM3ixNVNrcrhDbudc3XJeq9Z6NfCxCS3Y aoyr146vE2NXYRO/ACRSTo9LpmqwDPnb2X+rosMpSEEuKZAkrK1XK8k8= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 5081C28224FC for ; Thu, 3 Oct 2024 10:09:38 -0400 (EDT) (envelope-from tsoome@me.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 205503C443D; Thu, 3 Oct 2024 10:09:38 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1727964578; b=P9HkBZYuSrxVxz0Ac1ZvdvkL6cnn4NsKNIE7bJrk4cWOFPdYKo /Dn5q2or6aHN7V8JBgXWrvKZr3Mgrj6zCnU2Zg83BtrECmle5aXljiL10x7e2DVv 338LWa6jhipQraVvmiSglD+r/afGQ+/fUE5HMlcmzIm3R4b92BM41fwY2fL2nYqT w/Mps1cPLe1zLcJhqax44EiKva5nyyOi3iDIOT78n+R6odWbcdu7DY3pIb7DGFsV 5XaKZS3MDomKVavXuGTXFv1/J3boSMCdeE5jIEmRa4E4LXNqJpR1Z4JKEa9kzDJo A5KDJDm14uGnSqtnhkNdo+MfffMTkjkYKbdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=from:content-type:mime-version:subject :message-id:date:to; s=arcseal; t=1727964578; bh=q9Co1YF+XLGJq5P WOTUWq5my0Re8E3QQiubgC0IvRrE=; b=wjnyc4M5/SbgRdccKsMUYKVIjXB3ths WLVJRJxCLK7UgW8x7P+JTo78XR3rl9kIx/a/GCbe9B6Y1N1K1fGNF+YJk+MJIelm KFt4BKMMkrxZXIejl/2Q9FvL91vMjg+uSt3lRETVhIbcx10cB1Lb269SPNUQU0Mg cXJiR3xQDKz7PTgXmhFGD0zgjczSRTjQCqbptJq1eKr4t2yLj1WyJkP8WnV0QQqX 7ppoYTDywufAzdJzyklWIICDcM34oxxGHChv3eHqygUdmDtR3tLhH3kUyFssQY/r fWW7HVHZyEe2EPaPZHVYVEzMVEy9gC1j/KRJuZEVAoEL3S45fZQIdLQ== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=declined (Domain declined to participate); dkim=pass (2048-bit rsa key sha256) header.d=me.com header.i=@me.com header.b=fnNl+FYK header.a=rsa-sha256 header.s=1a1hai x-bits=2048; dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=me.com; iprev=pass smtp.remote-ip=17.57.155.9 (qs51p00im-qukt01071902.me.com); spf=pass smtp.mailfrom=tsoome@me.com smtp.helo=qs51p00im-qukt01071902.me.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=qs51p00im-qukt01071902.me.com policy.ptr=qs51p00im-qukt01071902.me.com; x-return-mx=pass header.domain=me.com policy.is_org=yes (MX Records found: mx01.mail.icloud.com,mx02.mail.icloud.com); x-return-mx=pass smtp.domain=me.com policy.is_org=yes (MX Records found: mx01.mail.icloud.com,mx02.mail.icloud.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-100 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddvuddgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephfgtggfukfffvffosegrtdhmrehhtddvnecuhfhr ohhmpefvohhomhgrshcuufhoohhmvgcuoehtshhoohhmvgesmhgvrdgtohhmqeenucggtf frrghtthgvrhhnpeduheekueffhffhjedvjedtteeivddtleefuefgkeevtdfhheevhfdu heffffdvheenucffohhmrghinhepihhllhhumhhoshdrohhrghenucfkphepudejrdehje drudehhedrledpudejrdehjedrudehhedrvdeknecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehinhgvthepudejrdehjedrudehhedrledphhgvlhhopehqshehudhptd dtihhmqdhquhhkthdtuddtjeduledtvddrmhgvrdgtohhmpdhmrghilhhfrhhomhepoeht shhoohhmvgesmhgvrdgtohhmqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeeoug gvvhgvlhhophgvrheslhhishhtshdrihhllhhumhhoshdrohhrgheq X-ME-VSScore: -100 X-ME-VSCategory: clean Received-SPF: pass (me.com: 17.57.155.9 is authorized to use 'tsoome@me.com' in 'mfrom' identity (mechanism 'ip4:17.57.155.0/24' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="tsoome@me.com"; helo=qs51p00im-qukt01071902.me.com; client-ip=17.57.155.9 Received: from qs51p00im-qukt01071902.me.com (qs51p00im-qukt01071902.me.com [17.57.155.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for ; Thu, 3 Oct 2024 10:09:37 -0400 (EDT) (envelope-from tsoome@me.com) Received: from smtpclient.apple (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01071902.me.com (Postfix) with ESMTPSA id E5E375EC02B6 for ; Thu, 3 Oct 2024 14:09:35 +0000 (UTC) Content-Type: multipart/alternative; boundary="Apple-Mail=_A3590FC5-5004-4C8A-B886-2BD1470608F0" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3818.100.11.1.3\)) Message-Id: <4A2E2E1D-44D7-4B9E-8A97-5904F2891C13@me.com> Date: Thu, 3 Oct 2024 17:09:22 +0300 To: illumos-developer X-Mailer: Apple Mail (2.3818.100.11.1.3) X-Proofpoint-GUID: S-qd2xJ__MX0p3BeuSjPfvBwe3UxLF6y X-Proofpoint-ORIG-GUID: S-qd2xJ__MX0p3BeuSjPfvBwe3UxLF6y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-03_06,2024-10-03_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=706 spamscore=0 suspectscore=0 adultscore=0 clxscore=1015 malwarescore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2410030103 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 23369508-8191-11ef-83c1-0744088c7b06 Archived-At: =?UTF-8?B?PGh0dHBzOi8vaWxsdW1vcy50b3BpY2JveC5jb20vZ3JvdXBz?= =?UTF-8?B?L2RldmVsb3Blci9UN2NhNWE2MmMwOWNlMjAxMy1NZWQ1NjdmY2QwMmE3MmIw?= =?UTF-8?B?MTE5ZWMzZDE5Pg==?= List-Help: List-Id: "illumos-developer" List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: illumos-developer Subject: [developer] REVIEW: 16823 stmf: writing 1 byte into a region of size 0 Content-Transfer-Encoding: 7bit From: "Toomas Soome via illumos-developer" List-Unsubscribe: , Topicbox-Delivery-ID: 2:illumos:a901537c-2aea-11e7-965f-d98f9f16e227:81958daa-7202-11ef-bbf2-18142b2d11b0:Med567fcd02a72b0119ec3d19:1:lqr5AjVQ9a8ZqPD3zx_NxZ3U5XBbGLoPs_uSKIg882w --Apple-Mail=_A3590FC5-5004-4C8A-B886-2BD1470608F0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 hi! Please review: https://code.illumos.org/c/illumos-gate/+/3727 as taking address of buf will allow compiler to check the buffer size, use = offsetof() instead. So the result is the same and compiler is happy too (fo= r now). thanks, toomas ------------------------------------------ illumos: illumos-developer Permalink: https://illumos.topicbox.com/groups/developer/T7ca5a62c09ce2013-= Med567fcd02a72b0119ec3d19 Delivery options: https://illumos.topicbox.com/groups/developer/subscription --Apple-Mail=_A3590FC5-5004-4C8A-B886-2BD1470608F0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 hi!

<= div>as taking address of buf will allow compiler to ch= eck the buffer size, use offsetof() instead. So the result is the same and = compiler is happy too (for now).

<= div>toomas = --Apple-Mail=_A3590FC5-5004-4C8A-B886-2BD1470608F0--