Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzHWQ-00025l-GR for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 03:35:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzHWO-0007oy-Rk for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 03:35:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzHWM-0007op-P7 for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 03:35:46 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzHWE-0000F4-Jc for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 03:35:44 +0000 Received: (qmail 20638 invoked by uid 512); 24 Jun 2014 03:35:37 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 24 Jun 2014 03:35:37 -0000 Message-ID: <53A8F208.3060204@tpf.co.jp> Date: Tue, 24 Jun 2014 12:35:36 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Nikhil Deshpande CC: pgsql-odbc@postgresql.org Subject: Re: [PATCH] Fix crash during connect using SSPI auth References: <53A895EE.9040902@vmware.com> In-Reply-To: <53A895EE.9040902@vmware.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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