Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0XGh-0005il-3C for pgsql-odbc@arkaria.postgresql.org; Tue, 07 Jan 2014 14:04:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W0XGg-0000Ic-GI for pgsql-odbc@arkaria.postgresql.org; Tue, 07 Jan 2014 14:04:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0XGf-0000IV-MS for pgsql-odbc@postgresql.org; Tue, 07 Jan 2014 14:04:29 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0XGY-00089s-EC for pgsql-odbc@postgresql.org; Tue, 07 Jan 2014 14:04:29 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id C87C4285F2; Tue, 7 Jan 2014 06:04:17 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id C5B3C400E9; Tue, 7 Jan 2014 06:04:17 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id E238112000A; Tue, 7 Jan 2014 06:05:29 -0800 (PST) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Tue, 7 Jan 2014 06:05:29 -0800 (PST) Message-ID: <52CC095F.3040602@vmware.com> Date: Tue, 07 Jan 2014 16:04:15 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: Pavel Raiskup CC: psql-odbc Subject: Re: Static analysis fix request References: <38586059.r5Bu4hye1i@nb.usersys.redhat.com> <52CA8222.4000208@vmware.com> <27238438.jIy8boxxDo@nb.usersys.redhat.com> In-Reply-To: <27238438.jIy8boxxDo@nb.usersys.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.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 On 01/06/2014 04:48 PM, Pavel Raiskup wrote: >> That code is really difficult to read, and hence difficult to get >> correct. Since we've already been burned twice by it, let's make it less >> error-prone. How about the attached? Does that look correct to you? > > Thanks for looking at this, I don't see a problem in your patch; the code > should not change behavior (except not touching outside array borders) Ok, committed. Thanks! - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc