Closed Bug 50498 Opened 25 years ago Closed 24 years ago

ABR: il_emit_row()

Categories

(Core :: Graphics: ImageLib, defect, P3)

defect

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. :)
thanks, bruce.
Status: NEW → ASSIGNED
Keywords: nsbeta3
Target Milestone: --- → M18
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);
*** Bug 53700 has been marked as a duplicate of this bug. ***
this sounds bad. putting on plus radar.
Whiteboard: [nsbeta3+]
Updating QA Contact
QA Contact: paw → tpreston
Not holding PR3 for this, marking nsbeta3-. Please nominate for rtm if we really need to fix this before shipping Seamonkey.
Whiteboard: [nsbeta3+] → [nsbeta3-]
Keywords: nsbeta3nsbeta1
Whiteboard: [nsbeta3-]
Target Milestone: M18 → mozilla0.9
Depends on: 70938
All pnunn bugs reassigned to Pav, who is taking over the imglib.
Assignee: pnunn → pavlov
Status: ASSIGNED → NEW
code no longer used. marking fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.