]> granicus.if.org Git - postgresql/commit
Fix buffer overrun in isolation test program.
authorKevin Grittner <kgrittn@postgresql.org>
Fri, 15 Nov 2013 14:27:42 +0000 (08:27 -0600)
committerKevin Grittner <kgrittn@postgresql.org>
Fri, 15 Nov 2013 14:27:42 +0000 (08:27 -0600)
commit7cb964acb794078ef033cbf2e3a0e7670c8992a9
tree5fc28d4fdfc1cdd16dfad7fdf34f4135dabf356a
parent71dd54ada9c3d32dfc0eb082ff2023b12abe881a
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
src/test/isolation/isolation_main.c