Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99F40C2B1 for ; Wed, 18 Jul 2012 08:39:07 +0000 (UTC) Received: (qmail 88113 invoked by uid 500); 18 Jul 2012 08:39:07 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 87616 invoked by uid 500); 18 Jul 2012 08:38:58 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 87567 invoked by uid 99); 18 Jul 2012 08:38:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2012 08:38:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [116.6.133.30] (HELO DGSMTP.deltaww.com.cn) (116.6.133.30) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2012 08:38:50 +0000 X-TM-IMSS-Message-ID: <21c065670004fc97@DELTAWW.COM.CN> Received: from DGCONF.dg.deltagroup.com ([10.201.1.88]) by DELTAWW.COM.CN ([10.201.1.30]) with ESMTP (TREND IMSS SMTP Service 7.1) id 21c065670004fc97 ; Wed, 18 Jul 2012 16:37:44 +0800 Received: from DGEX2V.dg.deltagroup.com ([fe80::1db9:9d2f:ec20:e223]) by DGCONF.dg.deltagroup.com ([::1]) with mapi; Wed, 18 Jul 2012 16:38:59 +0800 From: =?iso-2022-jp?B?VFJPWS5MSVUgGyRCTi09VTBOGyhC?= To: "dev@apr.apache.org" Date: Wed, 18 Jul 2012 16:38:23 +0800 Subject: Please confirm the freetds bug in apr-util-1.4.1.tar.gz Thread-Topic: Please confirm the freetds bug in apr-util-1.4.1.tar.gz Thread-Index: Ac1kwKbsYlU/9wsKS8CQN5LIVRA8Cw== Message-ID: <4994179EC7ED6843AAB0A30A1639E7F81DB5260901@DGEX2V.dg.deltagroup.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: zh-CN, en-US Content-Type: multipart/alternative; boundary="_000_4994179EC7ED6843AAB0A30A1639E7F81DB5260901DGEX2Vdgdelta_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_4994179EC7ED6843AAB0A30A1639E7F81DB5260901DGEX2Vdgdelta_ Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable Dear all, I found a bug and don=1B$B!G=1B(Bt know where to file it. Just send the m= ail to let you know. In the apr_dbd_freetds.c +630, function freetds_open: sql =3D apr_palloc (pool, sizeof (apr_dbd_t)); // should be apr_pcalloc, = like apr_dbd_pgsql_open.c +1231 if calls dbd_freetds_query after freetds_open, it will fail. static int dbd_freetds_query(apr_dbd_t *sql, int *nrows, const char *query) { if (sql->trans && sql->trans->errnum) { return sql->trans->errnum; } =1B$B!D=1B(B Please confirm this issue. http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/dbd/apr_dbd_freetd= s.c?view=3Dmarkup http://svn.apache.org/viewvc/apr/apr-util/branches/1.5.x/dbd/apr_dbd_freetd= s.c?view=3Dmarkup Best Regards Chunwei Liu --_000_4994179EC7ED6843AAB0A30A1639E7F81DB5260901DGEX2Vdgdelta_ Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable

Dear all,

  I found a bug and don=1B$B!G=1B(Jt know= where to file it. Just send the mail to let you know.

In the apr_dbd_freetds.c +630, function freetds_open:

 

sql = =3D apr_palloc (pool, sizeof (apr_dbd_t));  // should be  apr_pca= lloc, like apr_dbd_pgsql_open.c +1231

 

if calls dbd_freetds_query after fr= eetds_open,  it will fail.

static i= nt dbd_freetds_query(apr_dbd_t *sql, int *nrows, const char *query)

{

 &nbs= p;  if (sql->trans && sql->trans->errnum) {

        return= sql->trans->errnum;

}

=1B$B!D=1B(J

 

<= p class=3DMsoNormal>Please confirm this issue.

 

http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/dbd/apr_dbd_fr= eetds.c?view=3Dmarkup

http://svn.apache.org/viewvc/apr/apr-util/branches/1.5.x/db= d/apr_dbd_freetds.c?view=3Dmarkup

 

 

 

Best Regards

Chunwei Liu

&= nbsp;

= --_000_4994179EC7ED6843AAB0A30A1639E7F81DB5260901DGEX2Vdgdelta_--