Missing out-of-memory check at gfx/src/ps/nsPostScriptObj.cpp:297

RESOLVED INVALID

Status

RESOLVED INVALID
13 years ago
10 years ago

People

(Reporter: vda, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060320 Firefox/1.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060320 Firefox/1.5

    mPrintContext = new PSContext();
    memset(mPrintContext, 0, sizeof(struct PSContext_));

There more of the same later in this file:

    URL_Struct_* url = new URL_Struct_;
    memset(url, 0, sizeof(URL_Struct_));
...
              ncode = new PRInt32;
              *ncode = code;
...
    linfo = new PS_LangGroupInfo;
    linfo->mEncoder = nsnull;
    linfo->mU2Ntable = nsnull;


Reproducible: Always
Assignee: nobody → general
Component: General → GFX
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk

Comment 1

11 years ago
nsPostScriptObj.cpp is gone in the trunk.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.