Closed
Bug 121642
Opened 24 years ago
Closed 10 years ago
check malloc return in anti aliased scaled bitmap code
Categories
(Core :: Internationalization, defect, P4)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bstell, Assigned: jshin1987)
References
()
Details
(Keywords: intl)
as ftang noted in comment #17 of bug 119042 the return for malloc should
be tested
| Reporter | ||
Comment 1•24 years ago
|
||
http://lxr.mozilla.org/seamonkey/source/gfx/src/x11shared/nsXFontAAScaledBitmap.
cpp#998
1020 if (exp_len > sizeof(exp_buffer))
1021 expanded_data = (PRUint8*)malloc(expanded_width*expanded_height);
Status: NEW → ASSIGNED
Comment 2•24 years ago
|
||
give to shanjian
Assignee: bstell → shanjian
Status: ASSIGNED → NEW
Priority: -- → P4
Updated•24 years ago
|
Status: NEW → ASSIGNED
Comment 3•21 years ago
|
||
shanjian is no longer working on mozilla for 2 years and these bugs are still
here. Mark them won't fix. If you want to reopen it, find a good owner first.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → WONTFIX
Comment 5•21 years ago
|
||
Mass Re-opening Bugs Frank Tang Closed on Wensday March 02 for no reason, all
the spam is his fault feel free to tar and feather him
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Comment 6•21 years ago
|
||
Reassigning Franks old bugs to Jungshik Shin for triage - Sorry for spam
Assignee: nobody → jshin1987
Status: REOPENED → NEW
Comment 7•19 years ago
|
||
Jungshik: Would it be acceptable to make this function (scale_imageAntiJag) return a PRBOOL indicating error / success to that its callers may check and take appropriate action on failure?
It seems there are a few points in this function that require memory assignment checks and returns on failure, also upgrading this to major because if one of these allocations fails (e.g. the one with the website link) we'd get |expanded_data[exp_index+j] = padded_src[padded_index]| which could then lead to a crash.
Severity: normal → major
Updated•16 years ago
|
QA Contact: amyy → i18n
Comment 8•10 years ago
|
||
It looks like this code was removed around mozilla-1.9.0 or so.
Status: NEW → RESOLVED
Closed: 21 years ago → 10 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•