Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 6 Nov 2001 20:07:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 6 Nov 2001 20:07:10 -0500 Received: from bacon.van.m-l.org ([208.223.154.200]:9088 "EHLO bacon.van.m-l.org") by vger.kernel.org with ESMTP id ; Tue, 6 Nov 2001 20:06:59 -0500 Date: Tue, 6 Nov 2001 20:06:48 -0500 (EST) From: George Greer X-X-Sender: To: cc: Subject: Re: PROPOSAL: dot-proc interface [was: /proc stuff] In-Reply-To: <20011106194923.D6AB1A3C19@fancypants.trellisinc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 6 Nov 2001 dank@trellisinc.com wrote: >In article <20011105155955.A16505@codepoet.org> Erik Anderson wrote: >> Come now, it really isn't that difficult: > >> char name[80]; >> if (sscanf(line, "%4u %4u %llu %s", &major, &minor, &size, name) == 4) > >if it's so easy to do, why do you have a great big buffer overflow here? Because he forgot about "%80s"? But if he forgot that he may accidently use strcpy, strcat, and gets, so... Or maybe it was just an exercise for the reader? -- George Greer, greerga@m-l.org http://www.m-l.org/~greerga/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/