Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2016 19:20:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-amd64@FreeBSD.org
Subject:   [Bug 209661] amd64_set_ioperm overflow
Message-ID:  <bug-209661-6-4V7deG2g8q@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209661-6@https.bugs.freebsd.org/bugzilla/>
References:  <bug-209661-6@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209661

--- Comment #4 from CTurt <cturt@hardenedbsd.org> ---
That negative loop was indeed my original theory I was trying to explain,
however I no longer think that this is true. In the loop `i` is compared
against an unsigned value, so an unsigned comparison will be used. That is =
to
say, a negative value of `i` is counted as a large positive value for the
comparison.

The result of this is that the loop condition won't be satisfied, and the a=
rray
won't be indexed.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209661-6-4V7deG2g8q>