Skip site navigation (1) Skip section navigation (2)

ecpg: numeric_div error handling

From: Neil Conway <neilc(at)samurai(dot)com>
To: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: ecpg: numeric_div error handling
Date: 2005-07-01 02:02:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
This patch adds some missing error handling to PGTYPESnumeric_div() in 
ecpg's pgtypeslib: (1) we need to check the return value of sub_abs() 
(2) we need to check the return value of 4 calls to digitbuf_alloc().

Per Coverity static analysis by EDB.

Barring any objections I'll apply this to CVS later today.


Attachment: ecpg_numeric_div-3.patch
Description: text/x-patch (3.5 KB)


pgsql-patches by date

Next:From: Tom LaneDate: 2005-07-01 02:21:46
Subject: Re: 2PC transaction id
Previous:From: Neil ConwayDate: 2005-07-01 01:28:18
Subject: ecpg: check for strdup() failure

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group