From: bugtrack@alsa-project.org Subject: [ALSA - lib 0000524]: [PATCH] aserver.c -- terminate long options list and thus prevent segmentation fault on invalid command line options Date: Fri, 24 Sep 2004 21:23:25 +0200 (CEST) Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <20040924192325.0A550B09D@server.perex-int.cz> Content-Type: text/plain; charset=iso-8859-1 Return-path: Received: from mail.perex.cz (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 6C01B293 for ; Fri, 24 Sep 2004 21:23:25 +0200 (MEST) Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A BUGNOTE has been added to this bug. ====================================================================== https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000524 ====================================================================== Reported By: jdthood Assigned To: ====================================================================== Project: ALSA - lib Bug ID: 524 Category: general Reproducibility: always Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 09-22-2004 23:38 CEST Last Modified: 09-24-2004 21:23 CEST ====================================================================== Summary: [PATCH] aserver.c -- terminate long options list and thus prevent segmentation fault on invalid command line options Description: --- aserver/aserver.c.orig 2004-09-04 16:16:53.000000000 +0200 +++ aserver/aserver.c 2004-09-04 16:34:56.000000000 +0200 @@ -1006,7 +1006,8 @@ int main(int argc, char **argv) { static struct option long_options[] = { - {"help", 0, 0, 'h'} + {"help", 0, 0, 'h'}, + { 0 , 0 , 0, 0 } }; int c; snd_config_t *conf; ====================================================================== ---------------------------------------------------------------------- tiwai - 09-23-2004 18:17 CEST ---------------------------------------------------------------------- Please provide a signed-off-by line... ---------------------------------------------------------------------- jdthood - 09-24-2004 21:23 CEST ---------------------------------------------------------------------- Summary: Terminate long_options array Signed-off-by: Thomas Hood Bug History Date Modified Username Field Change ====================================================================== 09-22-04 23:38 jdthood New Bug 09-23-04 18:17 tiwai Bugnote Added: 0001828 09-24-04 21:23 jdthood Bugnote Added: 0001904 ====================================================================== ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php