pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: pgsql-bugs@postgresql.org
Subject: Re: pg_dump -Fd fails to detect ENOSPC
Date: Wed, 17 Sep 2014 10:26:23 -0500
Message-ID: <20140917152623.GA13240@telsasoft.com> (raw)
In-Reply-To: <20140916165715.GA4560@telsasoft.com>
References: <20140916165715.GA4560@telsasoft.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Seems to be a simple unchecked return value...I'm testing with this, but won't
endeavor to propose a formal patch.

pg_dump.c
if (copybuf)
{
	int ret2;
	ret2=WriteData(fout, copybuf, ret);
	if (ret!=ret2) {
		exit_horribly(NULL, "error writing, (%d %d)\n", ret, ret2);
	}

	PQfreemem(copybuf);
}


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



view thread (4+ messages)  latest in thread

Message-ID: <20140917152623.GA13240@telsasoft.com>
Permalink:  ../20140917152623.GA13240@telsasoft.com/
Also on:    postgresql.org/message-id/20140917152623.GA13240@telsasoft.com

 · 

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-bugs@postgresql.org
  Cc: pryzby@telsasoft.com
  Subject: Re: pg_dump -Fd fails to detect ENOSPC
  In-Reply-To: <20140917152623.GA13240@telsasoft.com>
  References: <20140916165715.GA4560@telsasoft.com> <20140917152623.GA13240@telsasoft.com>

* 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