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: 42C4A421.5060802@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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.

-Neil

Attachment Content-Type Size
ecpg_numeric_div-3.patch text/x-patch 3.5 KB

Responses

Browse pgsql-patches by date

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