Closed
Bug 50498
Opened 25 years ago
Closed 24 years ago
ABR: il_emit_row()
Categories
(Core :: Graphics: ImageLib, defect, P3)
Core
Graphics: ImageLib
Tracking
()
VERIFIED
FIXED
mozilla0.9
People
(Reporter: bruce, Assigned: pavlov)
References
Details
During startup, we get over 180 ABR warnings out of Purify. This is a build
from today, running the new modern skin.
il_emit_row() calls nsCRT::memcpy() on line 989. It was attempting to read 36
bytes out of a buffer that was only 34 bytes long.
cc'ing tor just in case it has to do with the PNG alpha code. (since PNG stuff
is on the stack).
I can get a full stack trace if needed, it is just hard at the moment, so if I
don't have to, I'd much ratehr not. :)
A simplistic fix which leaves the trailing bytes in the word aligned
alphamask uninitialized:
Index: scale.cpp
===================================================================
RCS file: /cvsroot/mozilla/modules/libimg/src/scale.cpp,v
retrieving revision 3.22
diff -u -r3.22 scale.cpp
--- scale.cpp 2000/04/20 22:34:05 3.22
+++ scale.cpp 2000/09/04 01:18:16
@@ -986,7 +986,7 @@
}
}
else
- nsCRT::memcpy(alphabitstart, alphabits_1,
mask_header->widthBytes);
+ nsCRT::memcpy(alphabitstart, alphabits_1, len);
PR_DELETE(alphabits_1);
Comment 6•24 years ago
|
||
Not holding PR3 for this, marking nsbeta3-. Please nominate for rtm if we really
need to fix this before shipping Seamonkey.
Whiteboard: [nsbeta3+] → [nsbeta3-]
All pnunn bugs reassigned to Pav, who is taking over
the imglib.
Assignee: pnunn → pavlov
Status: ASSIGNED → NEW
Assignee | ||
Comment 8•24 years ago
|
||
code no longer used. marking fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•