To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=72741
Issue #|72741
Summary|sal: rtl_arena_segment_alloc rounds its arg up to the
|next power of two
Component|porting
Version|OOo 2.2
Platform|All
URL|
OS/Version|Unix, X11
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|PATCH
Priority|P3
Subcomponent|code
Assigned to|mhu
Reported by|cmc
------- Additional comments from [EMAIL PROTECTED] Tue Dec 19 00:59:53 -0800
2006 -------
like so...
/* roundup to next power of 2 */
int msb = highbit(size);
OSL_ASSERT(RTL_ARENA_FREELIST_SIZE > SAL_INT_CAST(unsigned,
msb));
size = (sal_Size)(1 << msb);
and so if size is > SAL_MAX_SSIZE then size gets set to 1 << 32 which is
undefined when msb is == width of the type. In practice for gcc on x86 this sets
size to 1.
I suggest the following patch to clip the accepted value for allocation
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]