Skip to Content.
Sympa Menu

freetds - Re: Crash in tsql

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Crash in tsql
  • Date: 14 Aug 2002 16:31:56 +0200


...omissis...

>
> 3. Current code also reintroduces the possibility of iconv_open()
> without a matching iconv_close() which I had removed. (If the
> first iconv_open succeeds and the second fails. use_iconv is
> only set if BOTH succeed, but tds_iconv_close is only called
> if use_iconv is set. Another example where its better to call
> tds_iconv_close and let it figure out the details :)
>
> Cheers,
>
> David
>
Note also that TDSICONVINFO is initialize with a memset(..,0,..).
But iconv_t is -1 if uninitialized leading to unpredictable results (if
closed before open, like charset not defined).

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page