Broken error handling in odbc_execute
| Bug #52512 | Broken error handling in odbc_execute | ||||
|---|---|---|---|---|---|
| Submitted: | 2010-08-02 10:57 UTC | Modified: | 2010-11-07 19:14 UTC | ||
| From: | mkoegler at auto dot tuwien dot ac dot at | Assigned: | felipe (profile) | ||
| Status: | Closed | Package: | ODBC related | ||
| PHP Version: | 5.3.3 | OS: | any | ||
| Private report: | No | CVE-ID: | None | ||
[2010-08-02 10:57 UTC] mkoegler at auto dot tuwien dot ac dot at
Description: ------------ odbc_execute has problems in its error handling: * The list of open file descriptors for parameters is not closed properly params[i].fp is not initialized with -1 => close may be called with a value leftover in memory by safe_emalloc. * In the case of some errors, the file descriptors are not closed * The return value of SQLDescribeParam and SQLBindParameter are not checked Adding these error checks also yields to better error messages with some database systems.
Patches
odbc_execute_errorhandling.patch (last revision 2010-08-02 08:58 UTC by mkoegler at auto dot tuwien dot ac dot at)Pull Requests
History
AllCommentsChangesGit/SVN commits
[2010-11-06 18:55 UTC] felipe@php.net
[2010-11-07 19:14 UTC] felipe@php.net
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: felipe
[2010-11-07 19:14 UTC] felipe@php.net