From: "Toomas Soome via illumos-developer" <developer@lists.illumos.org>
To: illumos-developer <developer@lists.illumos.org>
Subject: [developer] REVIEW: 16823 stmf: writing 1 byte into a region of size 0
Date: Thu, 3 Oct 2024 17:09:22 +0300 [thread overview]
Message-ID: <4A2E2E1D-44D7-4B9E-8A97-5904F2891C13@me.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 502 bytes --]
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 (for now).
thanks,
toomas
------------------------------------------
illumos: illumos-developer
Permalink: https://illumos.topicbox.com/groups/developer/T7ca5a62c09ce2013-Med567fcd02a72b0119ec3d19
Delivery options: https://illumos.topicbox.com/groups/developer/subscription
[-- Attachment #2: Type: text/html, Size: 1774 bytes --]
reply other threads:[~2024-10-03 14:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4A2E2E1D-44D7-4B9E-8A97-5904F2891C13@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).