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)

x86
Linux
defect

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
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
Keywords: intl
QA Contact: ruixu → ylong
give to shanjian
Assignee: bstell → shanjian
Status: ASSIGNED → NEW
Priority: -- → P4
Status: NEW → ASSIGNED
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
Mass Reassign Please excuse the spam
Assignee: shanjian → nobody
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 → ---
Reassigning Franks old bugs to Jungshik Shin for triage - Sorry for spam
Assignee: nobody → jshin1987
Status: REOPENED → NEW
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
QA Contact: amyy → i18n
It looks like this code was removed around mozilla-1.9.0 or so.
Status: NEW → RESOLVED
Closed: 21 years ago10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.