pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <inoue@tpf.co.jp>
To: Nikhil Deshpande <ndeshpande@vmware.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: [PATCH] Fix crash during connect using SSPI auth
Date: Tue, 24 Jun 2014 12:35:36 +0900
Message-ID: <53A8F208.3060204@tpf.co.jp> (raw)
In-Reply-To: <53A895EE.9040902@vmware.com>
References: <53A895EE.9040902@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hi Nikhil,

(2014/06/24 6:02), Nikhil Deshpande wrote:
> Hi,
>
> I ran into a crash in psqlodbc driver on Windows while trying to connect
> using SSPI authentication (both client and server are on same Windows
> host, using a Windows local account instead of domain account, without
> any Kerberos setup).
>
> The crash is due to a NULL pointer dereference in function
> extract_extra_attribute_setting(), ci->conn_settings.name was
> NULL in caller MakePrincHint():
>
> 1741 char *extract_extra_attribute_setting(const pgNAME setting, ...
> 1742 {
> 1743         const char *str = GET_NAME(setting);
> ...
> 1750         for (cptr = str; *cptr; cptr++)     <-- *cptr crashes
>
> Please see attached stack trace for more details.
>
>
> With attached patch, connection using SSPI authentication was
> successful.

Applied.
Thanks.

regards,
Hiroshi Inoue


-- 
I am using the free version of SPAMfighter.
SPAMfighter has removed 11063 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

Do you have a slow PC? Try a Free scan 
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen



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



view thread (2+ messages)

Message-ID: <53A8F208.3060204@tpf.co.jp>
Permalink:  ../53A8F208.3060204@tpf.co.jp/
Also on:    postgresql.org/message-id/53A8F208.3060204@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, ndeshpande@vmware.com
  Subject: Re: [PATCH] Fix crash during connect using SSPI auth
  In-Reply-To: <53A8F208.3060204@tpf.co.jp>
  References: <53A895EE.9040902@vmware.com> <53A8F208.3060204@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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