[freetds] One failing unit test (iconv_read) on git master on OS X

Frediano Ziglio freddy77 at gmail.com
Mon Sep 16 03:44:33 EDT 2013


2013/9/15 Marc Abramowitz <marca at surveymonkey.com>:
> On 9/15/13 11:24 AM, "Marc Abramowitz" <marca at surveymonkey.com> wrote:
>
>>So perhaps there's only 1024 bytes of space in the output buffer? I'll try
>>to dig in...
>
> Interesting data pointŠ If I make the following change, then it makes the
> iconv_read test pass (although it makes a few other tests fail and one
> hangs):
>
> https://gist.github.com/msabramo/6574246
>

I would call it workaround!

>
>
>
>
> So it appears that it has something to do with it not allocating a big
> enough buffer to not passing the right size.
>

No, libTDS is expected to handle it and reallocate the buffer as
needed. The function is expected to handle whatever file length so
it's not always possible to understand the right size in advance.

Frediano


More information about the FreeTDS mailing list