Re: [PATCH] fetch--tool: fix uninitialized buffer when reading from stdin

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Monday, February 26, 2007 - 11:05 am

On Mon, 26 Feb 2007, Johannes Schindelin wrote:


Well, that CHUNK_SIZE is just silly. I don't see why you'd have a 
chunk-size of a megabyte to begin with, IO doesn't really get any more 
efficient that way. And yeah, in this case it would easily hide the bug, 
because in practice nobody would ever test with that much input data.

It might make sense to make the chunk-size smaller just from a testability 
standpoint (not to mention that it's probably currently just wasting 
memory for most users - although at least under Linux, if you never use a 
page, none will be allocated for you, so the OS may hide the wastage).

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] fetch--tool: fix uninitialized buffer when reading ..., Johannes Schindelin, (Mon Feb 26, 5:08 am)
Re: [PATCH] fetch--tool: fix uninitialized buffer when rea ..., Johannes Schindelin, (Mon Feb 26, 9:47 am)
Re: [PATCH] fetch--tool: fix uninitialized buffer when rea ..., Johannes Schindelin, (Mon Feb 26, 10:27 am)
Re: [PATCH] fetch--tool: fix uninitialized buffer when rea ..., Johannes Schindelin, (Mon Feb 26, 10:28 am)
Re: [PATCH] fetch--tool: fix uninitialized buffer when rea ..., Linus Torvalds, (Mon Feb 26, 11:05 am)
Re: [PATCH] fetch--tool: fix uninitialized buffer when rea ..., Johannes Schindelin, (Tue Feb 27, 12:35 pm)