public inbox for developer@lists.illumos.org (since 2011-08)
 help / color / mirror / Atom feed
* [developer] REVIEW: 16823 stmf: writing 1 byte into a region of size 0
@ 2024-10-03 14:09 Toomas Soome via illumos-developer
  0 siblings, 0 replies; only message in thread
From: Toomas Soome via illumos-developer @ 2024-10-03 14:09 UTC (permalink / raw)
  To: illumos-developer

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-10-03 14:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-03 14:09 [developer] REVIEW: 16823 stmf: writing 1 byte into a region of size 0 Toomas Soome via illumos-developer

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).