Closed Bug 9517 Opened 26 years ago Closed 25 years ago

small bug

Categories

(Core :: XPCOM, defect, P3)

Other
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sh990154, Assigned: dp)

Details

In Seamonkey V7 there's a small bug in file xpcom/io/nsIStringStream.cpp in method class CharImpl::write if ((PRInt32)aCount > maxCount) { do .... memcpy(newString, mString, mLength) <== mLength is not initialized, use mOffset instead
Are you sure this is uninitialized. I looked at the code. mLength is being initialized in the constructor of ConstCharImpl. Is there a specific case where this is uninitialized.
Status: NEW → ASSIGNED
Target Milestone: M9
oops. -pn
sorry dp. I'm the culprit who marked it assigned. -pn
Have you gotten my mail where I wrote that it's initialized to zero but seems not to be updated during writes to that stream?? In FilesTest it strikes every time (on my ARM system). If there're no other architectures where the bug hits, this maybe an unnoticed compiler bug. I've seen it with egcs-1.1.2 and gcc-2.95 prerelease egcs-990623.
Target Milestone: M9 → M11
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.