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.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: from tb-ob1.topicbox.com (tb-ob1.topicbox.com [64.147.108.173]) by inbox.vuxu.org (Postfix) with ESMTP id BADB4213C4 for ; Tue, 22 Oct 2024 10:59:05 +0200 (CEST) Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id D8B322F7DA for ; Tue, 22 Oct 2024 04:59:04 -0400 (EDT) (envelope-from bounce.mM6337dc168c579498be8fbde5.r81958daa-7202-11ef-bbf2-18142b2d11b0@illumos.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id D0F6B8410A2; Tue, 22 Oct 2024 04:59:04 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=telka.sk; spf=pass smtp.mailfrom=marcel@telka.sk smtp.helo=tortuga.telka.sk; 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=date:from:to:subject:message-id:references :mime-version:content-type:content-transfer-encoding:in-reply-to :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1729587544; bh=J7lrZOKDo55XJ/8W n30Oc+9FElUDScrsCWIMvGfysis=; b=ppRAMJd9gvpqUCshiRgnUnjW+fmiYHLG pgrwUIarzEzhdCiOFV+MmVWFIsVDWXC7JG2OtABe3twkb8jWYprN9kddKtgkM+74 5tr+85mxTUsDLTFf3dlx6J3dLvWoB3arfQbB1aTmOTlwr98xG173F7f6H9iC69Ao UViANL5ncnc= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1729587544; b=Wvxntz5LcqbQbqfoWOZ+0E9nZTWJxG3lIVWuX94Yu7ZrPecQBr onrW+sAkT6A/21F+1NO/NCdSfp8CEu0mDeWDdZu6lBX0Txnpezrk3+hdojXo6/33 sKGEVQlrz9FwD24m7HhJPCn0E/xk3iMlorN2JQ0vjLOQ47O9g8NEyufUg= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=telka.sk; spf=pass smtp.mailfrom=marcel@telka.sk smtp.helo=tortuga.telka.sk; 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-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=telka.sk; iprev=pass smtp.remote-ip=185.14.234.118 (tortuga.telka.sk); spf=pass smtp.mailfrom=marcel@telka.sk smtp.helo=tortuga.telka.sk; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=tortuga.telka.sk policy.ptr=tortuga.telka.sk; x-return-mx=pass header.domain=telka.sk policy.is_org=yes (MX Records found: tortuga.telka.sk); x-return-mx=pass smtp.domain=telka.sk policy.is_org=yes (MX Records found: tortuga.telka.sk); 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= date:from:to:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to:list-help :list-id:list-post:list-subscribe:reply-to:list-unsubscribe; s= dkim-1; t=1729587544; x=1729673944; bh=IvYQZV/RpWSD6GzOEs33eXBU7 tIyQrxPz3W6nv6vEF4=; b=k1MdMKP8dz8luRaxeMhD3fAjeUAgXC2RNcXFbi15y Y9mhdmlpJuqEJcalNiNe5WP9QeNV0RJ5y1n+lBZz+Sdg0cqR30+idHHYE+moE7up g02x253xosET+IjsKO2/x8dkFc7I5kNhXJeBhRyWz/EyCDpZPDvL1CYElh00wj4N xw= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 5D865A1DFD for ; Tue, 22 Oct 2024 04:57:17 -0400 (EDT) (envelope-from marcel@telka.sk) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id C6CC097A07B; Tue, 22 Oct 2024 04:57:17 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1729587437; b=E0ab9m3n+JzQP/gHOAUTA11uzOGTdHx/Y8U/3S0wwap1t43R0i 0KapTq3nB82IuU44soWasjJMrUE3KsIZGA7vYdSpDCiW7p/ZT+8qE5j4dJSDiMye yIBBiDPy1VAH1+LF2VEBmxoplzMdRqdyMLVke3HyOjXVjY8rnsEdKnwiLBkxUf3h 3mcrc60u3Dl/8r87JoTwSg9F0mqlhzWAu+0DDlxyw4ZdCItg7aoadhMwhgwf8PJe nkK7FHU05pdxFIbER7ctKfUIFlPXLGnoz+4uLkrexRqHs5C4kyGnK3oBS76/0uWf L6ODPrGxJJlCU7Lpq3Skfm3z5bSI33MKH04A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=arcseal; t=1729587437; bh=s1Sh0f8U7Kq0yd6vkgW+NM YOxRiC/e6TeJjm+DSHQGM=; b=pqs+RZlHn7ptx9rje70Y29lVuqIMTWU/RLtqtI PoabmFgSLWLV3LIXLk4uZ13m1InlkfH/zz0iHAc/YjyjZsuHTwcSt9e3GJUUjg29 1FERIbaxZU+Pk/5kxo3ZkgPDFEmO9LxEoPQq+x4uTfSv8nvx9G5oqvMr/0Sy5bla ClFxkrrGtqCoWKvutBqf8YqA+zrLRIjvz0gv74CZeVzpIxPM27v5fjq31sKcCLkZ HhMsWUDw2W4LfYsn7smc738IZtTiUxy0oVrQXqSuHuGn/58E6WOh2LK15F7L0W03 sft7AyWoxQXxoRsJVFrKdU6ABiRYj9NosqtpIpZyyxonrkQw== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=telka.sk; iprev=pass smtp.remote-ip=185.14.234.118 (tortuga.telka.sk); spf=pass smtp.mailfrom=marcel@telka.sk smtp.helo=tortuga.telka.sk; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=tortuga.telka.sk policy.ptr=tortuga.telka.sk; x-return-mx=pass header.domain=telka.sk policy.is_org=yes (MX Records found: tortuga.telka.sk); x-return-mx=pass smtp.domain=telka.sk policy.is_org=yes (MX Records found: tortuga.telka.sk); 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: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeihedgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvffukfhfgggtugfgjgesthekredttddtjeen ucfhrhhomhepofgrrhgtvghlucfvvghlkhgruceomhgrrhgtvghlsehtvghlkhgrrdhskh eqnecuggftrfgrthhtvghrnhepteejtddtiefhlefhgfegtddvveetudegfefhueeuheff keejkeeftdegteetieejnecuffhomhgrihhnpehilhhluhhmohhsrdhorhhgpdhtvghlkh grrdhskhenucfkphepudekhedrudegrddvfeegrdduudeknecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehinhgvthepudekhedrudegrddvfeegrdduudekpdhhvghloh epthhorhhtuhhgrgdrthgvlhhkrgdrshhkpdhmrghilhhfrhhomhepoehmrghrtggvlhes thgvlhhkrgdrshhkqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeeouggvvhgvlh hophgvrheslhhishhtshdrihhllhhumhhoshdrohhrgheq X-ME-VSScore: -100 X-ME-VSCategory: clean Received-SPF: pass (telka.sk: 185.14.234.118 is authorized to use 'marcel@telka.sk' in 'mfrom' identity (mechanism 'ip4:185.14.234.118' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="marcel@telka.sk"; helo=tortuga.telka.sk; client-ip=185.14.234.118 Received: from tortuga.telka.sk (tortuga.telka.sk [185.14.234.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for ; Tue, 22 Oct 2024 04:57:16 -0400 (EDT) (envelope-from marcel@telka.sk) Received: (qmail 11432 invoked from network); 22 Oct 2024 08:57:15 -0000 Received: from telcontar.in.telka.sk (HELO telcontar) (marcel@10.0.0.10) by tortuga.telka.sk with ESMTPSA (DHE-RSA-AES256-GCM-SHA384 encrypted); 22 Oct 2024 08:57:15 -0000 Date: Tue, 22 Oct 2024 10:57:14 +0200 From: Marcel Telka To: illumos-developer Subject: Re: [developer] REVIEW: 16850 genunix: array subscript [0, 9] is outside array bounds of 'hrtime_t[10]' Message-ID: References: <764C5B4C-11C5-41BB-985D-D24E1A8AD8B9@me.com> <4F388257-FD6F-4A1D-9A95-295310D45D50@me.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <4F388257-FD6F-4A1D-9A95-295310D45D50@me.com> Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: a67ebe38-9053-11ef-9c83-f45be08ce5bb Archived-At: =?UTF-8?B?PGh0dHBzOi8vaWxsdW1vcy50b3BpY2JveC5jb20vZ3JvdXBz?= =?UTF-8?B?L2RldmVsb3Blci9UMDE3N2ZiOGYwMmZiZDNjMC1NNjMzN2RjMTY4YzU3OTQ5?= =?UTF-8?B?OGJlOGZiZGU1Pg==?= List-Help: List-Id: "illumos-developer" List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: illumos-developer List-Unsubscribe: , Topicbox-Delivery-ID: 2:illumos:a901537c-2aea-11e7-965f-d98f9f16e227:81958daa-7202-11ef-bbf2-18142b2d11b0:M6337dc168c579498be8fbde5:1:ovyT41slnbIWr8eJ7Vsw_s2bOb4aAG3dCR0O8qRr3tk On Tue, Oct 22, 2024 at 11:46:22AM +0300, Toomas Soome via illumos-develope= r wrote: >=20 >=20 > > On 22. Oct 2024, at 11:40, Marcel Telka wrote: > >=20 > > On Tue, Oct 22, 2024 at 11:28:24AM +0300, Toomas Soome via illumos-deve= loper wrote: > >> Please review: https://code.illumos.org/c/illumos-gate/+/3746 > >=20 > > What exactly means '[0, 9]' in the error message? > >=20 >=20 > The array size is defined by NMSTATES, which is 10 =E2=80=94 that is, sta= tes are indexed [0-9], so the compiler is checking the index value 10=E2=80= =A6 Okay. Apparently my question was not clear enough, so let's rephrase: Does '[0, 9]' mean: an interval from 0 to 9 inclusive? If so, then does: array subscript [0, 9] is outside array bounds of 'hrtime_t[10]' mean: when array subscript is 0 to 9 then it is outside array bounds of 'hrtime_t[10]' ? Isn't the error message non-sense then? --=20 +-------------------------------------------+ | Marcel Telka e-mail: marcel@telka.sk | | homepage: http://telka.sk/ | +-------------------------------------------+ ------------------------------------------ illumos: illumos-developer Permalink: https://illumos.topicbox.com/groups/developer/T0177fb8f02fbd3c0-= M6337dc168c579498be8fbde5 Delivery options: https://illumos.topicbox.com/groups/developer/subscription