public inbox for developer@lists.illumos.org (since 2011-08)
 help / color / mirror / Atom feed
* [developer] REVIEW: 16833 smbsrv: array subscript 12 is above array bounds
@ 2024-10-14  8:06 Toomas Soome via illumos-developer
  2024-10-20 13:09 ` [developer] " Toomas Soome via illumos-developer
  0 siblings, 1 reply; 2+ messages in thread
From: Toomas Soome via illumos-developer @ 2024-10-14  8:06 UTC (permalink / raw)
  To: illumos-developer

[-- Attachment #1: Type: text/plain, Size: 771 bytes --]

hi!

This is one of the reason I did create https://www.illumos.org/issues/16804 But since 16804 is opposed, I have to set this one rolling.

So, please review: https://code.illumos.org/c/illumos-gate/+/3736

Since VERIFY() does not hint compiler in any way, there is no reason to believe the bounds check is in place and we do get the warning. So, we have two options - either suppress the warning or show compiler we have bounds check. Here, in this version, we add this extra if statement.

Thanks,
Toomas
------------------------------------------
illumos: illumos-developer
Permalink: https://illumos.topicbox.com/groups/developer/T53d2b90fb40c40e0-Mc22160eebf654bf2e8ea2eac
Delivery options: https://illumos.topicbox.com/groups/developer/subscription

[-- Attachment #2: Type: text/html, Size: 2122 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-20 13:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-14  8:06 [developer] REVIEW: 16833 smbsrv: array subscript 12 is above array bounds Toomas Soome via illumos-developer
2024-10-20 13:09 ` [developer] " 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).