Closed Bug 336141 Opened 18 years ago Closed 2 years ago

Missing out-of-memory check at gfx/src/qt/nsDeviceContextQt.cpp:115

Categories

(Core Graveyard :: Ports: Qt, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: vda, Assigned: zack)

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

    pWidget = new QWidget();
    bCleanUp = PR_TRUE;
...
  QStyle &style = pWidget->style();
  mScrollbarWidth = mScrollbarHeight = style.pixelMetric(QStyle::PM_ScrollBarExtent);

  DeviceContextImpl::CommonInit();

  if (bCleanUp)
    delete pWidget;


Reproducible: Always
Assignee: nobody → general
Component: General → GFX
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: general → zack
Component: GFX → Ports: Qt
QA Contact: ian → cbiesinger
pWidget is never checked for NULL, pWidget->style() may deref a NULL ptr
QA Contact: cbiesinger → ports-qt
Product: Core → Core Graveyard

This bug lies at rest in the graveyard.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.