Bug 48447

Summary: filenameW in glib/poppler-document.cc allocated with operator new[], freed with operator delete
Product: poppler Reporter: Jason <jasongross9+bugzilla>
Component: glib frontendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: medium CC: jasongross9+bugzilla
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch

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.