Re: [PATCH] fetch--tool: fix uninitialized buffer when reading from stdin
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Feb 26, 2007, 17:06 UTC
- Message-ID
- <Pine.LNX.4.64.0702260905420.12485@woody.linux-foundation.org>
- In-Reply-To
- <Pine.LNX.4.63.0702261741360.22628@wbgn013.biozentrum.uni-wuerzburg.de>
On Mon, 26 Feb 2007, Johannes Schindelin wrote:
> > But I agree your patch is saner.
Well, it's not the "saner" I'm worried about, I was more worried about the fact that your patch added random '\0' characters in the middle of the stdin input if it was ever bigger than CHUNK_SIZE. I suspect you only tested with small input to stdin.
Linus