[Mono-bugs] [Bug 417833] BitVector32. CreateSection allows the creation of illegal sections
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Aug 16 09:20:46 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=417833
User lunchtimemama at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=417833#c1
--- Comment #1 from Scott Peterson <lunchtimemama at gmail.com> 2008-08-16 07:20:45 MDT ---
It looks like behavior was intentional:
2003-09-04 Duncan Mak <duncan at ximian.com>
Patches from Alon Gazit <along at mainsoft.com>.
* BitVector32.cs (CreateSection): Check that the new
calculated offset isn't more than 32 and not that the sum of the
new offset and the number of set bits is more than 32.
(this): Perform bitwise and with the complement of the mask
shifted version (~(section.Mask << section.Offset)) and not with
the shifted version of the mask's complement (~section.Mask <<
section.Offset).
(this): Currently doesn't return the correct value when the data
in the BitVector32 instance is negative.
Why would this be the case? Was this done to emulate the .NET behavior?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list