From 25eb4c69097ca4f5665b050cfa4247a19ffd8c55 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 22 Apr 2009 08:45:27 +0200 Subject: sort -m: don't segfault when output file is also an input file * src/sort.c (avoid_trashing_input): Fix an off-by-one error and guard the use of memmove. * NEWS (Bug fixes): Mention it. * tests/misc/sort: Add tests to exercise the offending code. * THANKS: Update. Reported by Otavio Salvador in http://bugs.debian.org/525048. --- THANKS | 1 + 1 file changed, 1 insertion(+) (limited to 'THANKS') diff --git a/THANKS b/THANKS index fe523fe12..876a6b665 100644 --- a/THANKS +++ b/THANKS @@ -435,6 +435,7 @@ Ole Laursen olau@hardworking.dk Oliver Kiddle okiddle@yahoo.co.uk Ørn E. Hansen oehansen@daimi.aau.dk Oskar Liljeblad osk@hem.passagen.se +Otavio Salvador otavio@ossystems.com.br Pádraig Brady P@draigBrady.com Patrick Mauritz oxygene@studentenbude.ath.cx Paul D. Smith psmith@gnu.org -- cgit v1.2.3-54-g00ecf