pgsql: Fix buffer overrun in isolation test program.

From: Kevin Grittner <kgrittn(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix buffer overrun in isolation test program.
Date: 2013-11-15 14:29:07
Message-ID: E1VhKOR-0005uK-0P@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix buffer overrun in isolation test program.

Commit 061b88c732952c59741374806e1e41c1ec845d50 saved argv0 to a
global buffer without ensuring that it was zero terminated,
allowing references to it to overrun the buffer and access other
memory. This probably would not have presented any security risk,
but could have resulted in very confusing failures if the path to
the executable was very long.

Reported by David Rowley

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7cb964acb794078ef033cbf2e3a0e7670c8992a9

Modified Files
--------------
src/test/isolation/isolation_main.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2013-11-15 14:33:17 Re: SSL renegotiation
Previous Message Robert Haas 2013-11-15 13:56:53 pgsql: doc: Restore proper alphabetical order.