From: "Toomas Soome via illumos-developer" <developer@lists.illumos.org>
To: illumos-developer <developer@lists.illumos.org>
Subject: Re: [developer] REVIEW: 16850 genunix: array subscript [0, 9] is outside array bounds of 'hrtime_t[10]'
Date: Tue, 22 Oct 2024 11:46:22 +0300 [thread overview]
Message-ID: <4F388257-FD6F-4A1D-9A95-295310D45D50@me.com> (raw)
In-Reply-To: <ZxdlDgMGTv-PaVuf@telcontar>
> On 22. Oct 2024, at 11:40, Marcel Telka <marcel@telka.sk> wrote:
>
> On Tue, Oct 22, 2024 at 11:28:24AM +0300, Toomas Soome via illumos-developer wrote:
>> Please review: https://code.illumos.org/c/illumos-gate/+/3746
>
> What exactly means '[0, 9]' in the error message?
>
The array size is defined by NMSTATES, which is 10 — that is, states are indexed [0-9], so the compiler is checking the index value 10…
rgds,
toomas
------------------------------------------
illumos: illumos-developer
Permalink: https://illumos.topicbox.com/groups/developer/T0177fb8f02fbd3c0-M68655a5da190a9875a5f02bc
Delivery options: https://illumos.topicbox.com/groups/developer/subscription
next prev parent reply other threads:[~2024-10-22 8:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-22 8:28 Toomas Soome via illumos-developer
2024-10-22 8:40 ` Marcel Telka
2024-10-22 8:46 ` Toomas Soome via illumos-developer [this message]
2024-10-22 8:57 ` Marcel Telka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F388257-FD6F-4A1D-9A95-295310D45D50@me.com \
--to=developer@lists.illumos.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).