[unixODBC-support] Segmentation fault in case environment variables are too long

Nick Gorham nick at lurcher.org
Fri Jan 30 14:44:05 GMT 2015


On 23/01/15 01:02, Mike wrote:
>
> Quoting Michael KC6nig <michael.koenig at blue-yonder.com>:
>
>> Hi!
>>
>> My team has encountered a bug in unixODBC 2.2.14, but it is still 
>> present in more recent version as well.
>> If you use environment variables such as HOME and ODBCSYSINI with 
>> really long contents, segmentation faults
>> occur.
>>
>> Here is a transcript of what happens:
>>
>>> echo $HOME
>> /a/ridiculously/long/path/in/the/file/system/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789 
>>
>>
>>> echo $ODBCSYSINI
>> /a/ridiculously/long/path/in/the/file/system/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789/0123456789 
>>
>>
>>> isql "PostgreSQL R&D test database" -v
>> Segmentation fault
>>
>>> export ODBCSYSINI=/some/short/path/
>>> isql "PostgreSQL R&D test database" -v
>> Segmentation fault

This should be fixed in the current code in subversion and the 2.3.3pre 
tar file.

-- 
Nick


More information about the unixODBC-support mailing list