pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
psqlODBC 09.01.0100 Unicode version still crashes on long server messages?
3+ messages / 2 participants
[nested] [flat]

* psqlODBC 09.01.0100 Unicode version still crashes on long server messages?
@ 2013-05-13 13:15  Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
  0 siblings, 1 reply; 3+ messages in thread

From: Jan-Peter Seifert @ 2013-05-13 13:15 UTC (permalink / raw)
  To: pgsql-odbc

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello,</div>

<div>&nbsp;</div>

<div>it seems when using the Unicode version of the driver it crashes when:
<pre class="bz_comment_text" id="comment_text_80" style="word-wrap: break-word;">log_statement = &#39;all&#39;

client_min_messages &lt; notice</pre>
</div>

<div>and a long query ( e.g. create function ) is sent to the server.</div>

<div>&nbsp;</div>

<div>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.</div>

<div>&nbsp;</div>

<div>Back in psqlODBC v08.04.0200 ANSI there was a crash when the server message was longer than ~4096 bytes.</div>

<div>&nbsp;</div>

<div>I guess this had been fixed in v09.00.0100 with this patch:</div>

<div>6.) Removed the use of misused strcat_s together with snprintf_s (bug report from Jap-Peter Seifert) and use strlcat instead of strncat.</div>

<div>&nbsp;</div>

<div>Could it be that this had been fixed in the ANSI version only?</div>

<div>&nbsp;</div>

<div>Sorry if this had already been fixed in recent versions.</div>

<div>&nbsp;</div>

<div>Could you check, please?</div>

<div>&nbsp;</div>

<div>Thank you very much!</div>

<div>&nbsp;</div>

<div>Peter</div>

<div>&nbsp;</div>

<div>&nbsp;</div>

<div class="signature">&nbsp;</div></div></body></html>




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: psqlODBC 09.01.0100 Unicode version still crashes on long server messages?
@ 2013-05-13 13:51  Heikki Linnakangas <hlinnakangas@vmware.com>
  parent: Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
  0 siblings, 1 reply; 3+ messages in thread

From: Heikki Linnakangas @ 2013-05-13 13:51 UTC (permalink / raw)
  To: Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>; +Cc: pgsql-odbc

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


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: psqlODBC 09.01.0100 Unicode version still crashes on long server messages?
@ 2013-05-13 16:29  Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
  parent: Heikki Linnakangas <hlinnakangas@vmware.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Jan-Peter Seifert @ 2013-05-13 16:29 UTC (permalink / raw)
  To: Heikki Linnakangas <hlinnakangas@vmware.com>; +Cc: pgsql-odbc


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


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2013-05-13 16:29 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-05-13 13:15 psqlODBC 09.01.0100 Unicode version still crashes on long server messages? Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2013-05-13 13:51 ` Heikki Linnakangas <hlinnakangas@vmware.com>
2013-05-13 16:29   ` Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox