segfaults in mysql driver
Jan-Henrik Haukeland
hauk at tildeslash.com
Wed Mar 19 19:36:57 CET 2008
On 19. mars. 2008, at 15.40, Paul J Stevens wrote:
> Ok, I get it, I think.
>
> Reading the source I come to the conclusion that I should use
> ResetSet_readData
> for any column wider than STRLEN chars rather than _getString or
> _getBlob
No, _getString and _getBlob should of course work with any column
length data. This looks to be a number overflow bug of some sorts in
ensureCapacity() according to Martin, which we of course will fix. I'm
just stumped we haven't seen this before, ourselves. Must be that we
mainly work with small data and using SQLite.
Jan-Henrik
> kind of defeats the purpose of those last two methods, doesn't it?
>
> Or am I still missing something here?
>
>
>
> Paul J Stevens wrote:
>> Jan-Henrik,
>>
>> I'm running into some problems with the mysql backend. I can't seem
>> to retrieve
>> long-ish strings.
>>
>> The attached code will reliably segfault on my systems.
>>
>> This code does *not* fail on Postgresql.
>>
>> Am I doing something wrong?
More information about the libzdb-general
mailing list