Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 11 Jan 2003 00:31:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 11 Jan 2003 00:31:51 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:4360 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Sat, 11 Jan 2003 00:31:50 -0500 Date: Fri, 10 Jan 2003 21:36:02 -0800 (PST) From: Linus Torvalds To: Rusty Russell cc: Richard Henderson , Miles Bader , Subject: Re: [PATCH] Make `obsolete params' work correctly if MODULE_SYMBOL_PREFIX is non-empty In-Reply-To: <20030111050918.99C762C04F@lists.samba.org> 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 Content-Length: 620 Lines: 21 On Sat, 11 Jan 2003, Rusty Russell wrote: > > Just in case someone names a variable over 2000 chars, and uses it as > an old-style module parameter? No. Just because variable-sized arrays aren't C, and generate crappy code. > for (i = 0; i < num; i++) { > + char sym_name[strlen(obsparm[i].name) > + + sizeof(MODULE_SYMBOL_PREFIX)]; It's still there. Linus - 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/