Closed Bug 335929 Opened 19 years ago Closed 19 years ago

Missing check for out-of-memory situation

Categories

(Core Graveyard :: Viewer App, defect)

1.8 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: vda, Unassigned)

Details

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 JSConsole:858 newBuffer = new CHAR[aSize + count + 1]; LPSTR writePointer = newBuffer; while (*readPointer != '\0') { if (*readPointer == '\n') { *writePointer++ = 0x0D; } *writePointer++ = *readPointer++; } *writePointer = '\0'; } return newBuffer; } newBuffer is not checked for NULL after new Reproducible: Always
Assignee: nobody → viewer-app
Component: General → Viewer App
Product: Firefox → Core
QA Contact: general
Version: unspecified → 1.8 Branch
wontfix see bug 335930
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.