GNU bug report logs - #21611
probable bug in tee: tee overwrites argv[argc] (coreutils-8.24)

Previous Next

Package: coreutils;

Reported by: Rainer Deyke <rainerd <at> eldwood.com>

Date: Sat, 3 Oct 2015 13:25:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Rainer Deyke <rainerd <at> eldwood.com>
To: 21611 <at> debbugs.gnu.org
Subject: bug#21611: probable bug in tee: tee overwrites argv[argc] (coreutils-8.24)
Date: Sat, 3 Oct 2015 11:48:59 +0200
[Message part 1 (text/plain, inline)]
As mentioned in a comment on line 198 of 'tee.c', 'tee' overwrites 
'argv[argc]'.  This is very bad style at best, and probably undefined 
behavior on at least some platforms.  The attached patch replaces the 
current hack with another hack that is still bad style, but probably 
safer than the current hack.


-- 
Rainer Deyke (rainerd <at> eldwood.com)
[patch (text/plain, attachment)]

This bug report was last modified 9 years and 254 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.