Avoid memory overrun in a test leading to potential double-free.
authorJim Meyering <meyering@redhat.com>
Sun, 10 Apr 2011 18:13:23 +0000 (18:13 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Sun, 10 Apr 2011 18:13:23 +0000 (18:13 +0000)
commit4b9726d48cc7eea7e51b51e00e3720104cd2774f
tree84923574d7148244e7ef13407257998dade20efe
parent5b2d2d52fe20551875570ae70eedc99914981d37
Avoid memory overrun in a test leading to potential double-free.

2011-04-10  Jim Meyering  <meyering@redhat.com>

    Avoid memory overrun in a test leading to potential double-free.
    * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
    i.e., do copy the trailing NUL byte.

From-SVN: r172246
libiberty/ChangeLog
libiberty/testsuite/test-expandargv.c