Status

()

Core
XPCOM
P3
normal
RESOLVED WORKSFORME
19 years ago
19 years ago

People

(Reporter: sh990154, Assigned: Suresh Duddi (gone))

Tracking

Trunk
Other
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
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
(Assignee)

Comment 1

19 years ago
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.

Updated

19 years ago
Status: NEW → ASSIGNED
Target Milestone: M9

Comment 2

19 years ago
oops.
-pn

Comment 3

19 years ago
sorry dp. I'm the culprit who marked it assigned.
-pn
(Assignee)

Comment 4

19 years ago
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.
(Assignee)

Updated

19 years ago
Target Milestone: M9 → M11
(Assignee)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.