You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2010/07/25 17:38:18 UTC
DO NOT REPLY [Bug 49645] New: apr_dbd_odbc memory corruption
https://issues.apache.org/bugzilla/show_bug.cgi?id=49645
Summary: apr_dbd_odbc memory corruption
Product: APR
Version: HEAD
Platform: PC
OS/Version: All
Status: NEW
Severity: critical
Priority: P2
Component: APR-util
AssignedTo: bugs@apr.apache.org
ReportedBy: kappa@psilambda.com
Created an attachment (id=25799)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25799)
patch that fixes crash
The apr_dbd_odbc driver crashes if used like the other database drivers.
To reproduce: use the odbc driver and use the apr_dbd_datum_get function.
The results differs using the odbc driver than if using the other drivers.
This was first encountered on Windows and Linux. The attached patch is an svn
diff.
Details:
After doing some testing and then comparing the odbc driver to the other
drivers (pgsql, oracle, etc). I noticed what appears to be a bug in the ODBC
driver. For getting binary data (in odbc_datum_get), it is using the /void
*data/ argument differently than the other drivers--it is copying over the
contents pointed to by the data pointer instead of assigning the pointer
address into the location of the data pointer. The attached patch shows the
change
that fixes it to be like the other drivers. (Oracle and the other
drivers all do something like: '/*(char**)data = (char*)entry;/".)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 49645] apr_dbd_odbc memory corruption
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49645
Jeff Trawick <tr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jeff Trawick <tr...@apache.org> 2010-09-24 17:23:27 EDT ---
fixed in apr-util 1.3.next through apr trunk
thanks for the patch!
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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