Closed Bug 4961 Opened 26 years ago Closed 26 years ago

signed vs unsigned error in nsUInt32Array::SetSize()

Categories

(MailNews Core :: Backend, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bruce, Assigned: alecf)

Details

PRBool nsUInt32Array::SetSize(PRUint32 nSize, PRUint32 nGrowBy) has a default value for nGrowBy of -1. Note that it is an unsigned value. The value of nGrowBy is then tested within the body of the method for being greater than or equal to 0. Not so good. This is mozilla/mailnews/base/util/nsUInt32.cpp
Assignee: phil → alecf
reassign to alecf@netscape.com. Porting bug converting this code from 4.x to NSPR integer types?
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed. (and with this fix comes use of the new quicksort routine in raptorbase!)
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.