[Poppler-bugs] [Bug 48447] New: filenameW in glib/poppler-document.cc allocated with operator new[], freed with operator delete

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Apr 8 20:25:18 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=48447

             Bug #: 48447
           Summary: filenameW in glib/poppler-document.cc allocated with
                    operator new[], freed with operator delete
    Classification: Unclassified
           Product: poppler
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Windows (All)
            Status: NEW
          Severity: minor
          Priority: medium
         Component: glib frontend
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: jasongross9+bugzilla at gmail.com


Created attachment 59661
  --> https://bugs.freedesktop.org/attachment.cgi?id=59661
Patch

In glib/poppler-document.cc, filenameW is allocated with new WCHAR[length] on
line 188, but freed with delete filenameW, on line 195.  Dr. Memory flagged
this as an "invalid heap argument".

I've attached the trivial patch for this.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list