apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59711] New: double free issue in apr_app.c and start.c on Windows
Date Wed, 15 Jun 2016 20:30:27 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59711

            Bug ID: 59711
           Summary: double free issue in apr_app.c and start.c on Windows
           Product: APR
           Version: HEAD
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
          Assignee: bugs@apr.apache.org
          Reporter: luke1410@gmx.de

Created attachment 33952
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33952&action=edit
patch to fix the issue

The complete details are provided here:
http://www.mail-archive.com/dev%40apr.apache.org/msg26471.html

In short:
freeing _wenviron in apr_app.c and start.c will trigger another free from
within the Visual Studio runtime when the application terminates at least since
Visual Studio 2010 (presumably with VS 2008 and VS 2005 too). Hence testapp.exe
raises a runtime exception.

The applied patch fixes the issue for me and is a revised version of the patch
attached to the mailing list thread above (in addition to dropping the
free-call it also removes the then unnecessary if-check and temp storage of the
environment pointer.

patch against apr 1.5.2 (but expected to work with any current version
including 0.9.x and trunk)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message