Обсуждение: psqlODBC 09.01.0100 Unicode version still crashes on long server messages?

Поиск
Список
Период
Сортировка

psqlODBC 09.01.0100 Unicode version still crashes on long server messages?

От
"Jan-Peter Seifert"
Дата:
<div style="font-family: Verdana;font-size: 12.0px;"><div>Hello,</div><div> </div><div>it seems when using the Unicode
versionof the driver it crashes when: <pre class="bz_comment_text" id="comment_text_80" style="word-wrap:
break-word;">log_statement= 'all'
 

client_min_messages < notice</pre></div><div>and a long query ( e.g. create function ) is sent to the
server.</div><div> </div><div>Didnot test it with a long erronous query sent to the server without using the settings
above.But I guess this would cause the driver to crash as well.</div><div> </div><div>Back in psqlODBC v08.04.0200 ANSI
therewas a crash when the server message was longer than ~4096 bytes.</div><div> </div><div>I guess this had been fixed
inv09.00.0100 with this patch:</div><div>6.) Removed the use of misused strcat_s together with snprintf_s (bug report
fromJap-Peter Seifert) and use strlcat instead of strncat.</div><div> </div><div>Could it be that this had been fixed
inthe ANSI version only?</div><div> </div><div>Sorry if this had already been fixed in recent
versions.</div><div> </div><div>Couldyou check, please?</div><div> </div><div>Thank you very
much!</div><div> </div><div>Peter</div><div> </div><div> </div><divclass="signature"> </div></div> 

Re: psqlODBC 09.01.0100 Unicode version still crashes on long server messages?

От
Heikki Linnakangas
Дата:
On 13.05.2013 16:15, Jan-Peter Seifert wrote:
> Hello,
> it seems when using the Unicode version of the driver it crashes when:
>
> log_statement ='all'
>
> client_min_messages<   notice
>
> and a long query ( e.g. create function ) is sent to the server.
> Did not test it with a long erronous query sent to the server without using the
> settings above. But I guess this would cause the driver to crash as well.

Works for me. Can you provide a test case, please?

> Back in psqlODBC v08.04.0200 ANSI there was a crash when the server message was
> longer than ~4096 bytes.
> I guess this had been fixed in v09.00.0100 with this patch:
> 6.) Removed the use of misused strcat_s together with snprintf_s (bug report
> from Jap-Peter Seifert) and use strlcat instead of strncat.
> Could it be that this had been fixed in the ANSI version only?

Don't think so. But it wouldn't surprise me if there are still similar
bugs lurking elsewhere in the code...

- Heikki


Re: psqlODBC 09.01.0100 Unicode version still crashes on long server messages?

От
"Jan-Peter Seifert"
Дата:
Hello Heikki,

> Gesendet: Montag, 13. Mai 2013 um 15:51 Uhr
> Von: "Heikki Linnakangas" <hlinnakangas@vmware.com>
> Works for me. Can you provide a test case, please?

sorry - not psqlODBC but our client software was the cause this time.

Thank you very much for your quick response!

Peter