bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21611: probable bug in tee: tee overwrites argv[argc] (coreutils-8.2


From: Rainer Deyke
Subject: bug#21611: probable bug in tee: tee overwrites argv[argc] (coreutils-8.24)
Date: Sat, 3 Oct 2015 11:48:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

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 (address@hidden)

Attachment: patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]