Small patch for pg_basebackup argument parsing

From: Pierre Ducroquet <p(dot)psql(at)pinaraf(dot)info>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Small patch for pg_basebackup argument parsing
Date: 2017-04-13 21:32:32
Message-ID: 1613715.leD0ZEjuag@peanuts2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

Yesterday while doing a few pg_basebackup, I realized that the integer
parameters were not properly checked against invalid input.
It is not a critical issue, but this could be misleading for an user who
writes -z max or -s 0.5…
I've attached the patch to this mail. Should I add it to the next commit fest
or is it not needed for such small patches ?

Thanks

Pierre

Attachment Content-Type Size
0001-Check-the-results-of-atoi-in-pg_basebackup.patch text/x-patch 2.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2017-04-13 21:52:05 Re: logical replication apply to run with sync commit off by default
Previous Message Stephen Frost 2017-04-13 21:31:11 Re: Row Level Security UPDATE Confusion