FAQ
I've just uploaded DBD::ODBC 1.26_2 to pause. 1.26_1 contained an unfortunate bug for people binding a large number of parameters where an sprintf can overflow. Thanks to frew for spotting this and sorry it it inconvenienced anyone.

If you do not want to upgrade to 1.26_2 the change is a one liner in dbdimp.c:

--- dbdimp.c (revision 14506)
+++ dbdimp.c (working copy)
@@ -3709,7 +3709,7 @@

if (SvNIOK(ph_namesv) ) { /* passed as a number */
name = namebuf;
- my_snprintf(name, sizeof(name), "%d", (int)SvIV(ph_namesv));
+ my_snprintf(name, sizeof(namebuf), "%d", (int)SvIV(ph_namesv));
name_len = strlen(name);
}
else {

Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdbi-users @
categoriesperl
postedNov 9, '10 at 11:25a
activeNov 9, '10 at 11:25a
posts1
users1
websitedbi.perl.org

1 user in discussion

Martin J. Evans: 1 post

People

Translate

site design / logo © 2022 Grokbase