Bug 48447 - filenameW in glib/poppler-document.cc allocated with operator new[], freed with operator delete
Summary: filenameW in glib/poppler-document.cc allocated with operator new[], freed wi...
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: glib frontend (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-08 20:25 UTC by Jason
Modified: 2012-05-02 10:38 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch (553 bytes, application/octet-stream)
2012-04-08 20:25 UTC, Jason
Details

Description Jason 2012-04-08 20:25:18 UTC
Created attachment 59661 [details]
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.
Comment 1 Carlos Garcia Campos 2012-05-02 10:38:59 UTC
Sorry for the delay, I've just pushed it to current git master. Thanks!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.