Skip to contentSkip to conversation

: [PATCH] aserver.c -- terminate long options list and thus prevent segmentation fault on invalid command line options

ALSA - lib 0000524 [email protected] 1 participant 1 message Nov 9, 2004

lore
Share & tools
lore
#0 lore raw

The following issue has been CLOSED
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=524>
======================================================================

Reported By:                jdthood
Assigned To:                tiwai
======================================================================
Project:                    ALSA - lib
Issue ID:                   524
Category:                   general
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             09-22-2004 23:38 CEST
Last Modified:              11-09-2004 16:38 CET

======================================================================
Summary: [PATCH] aserver.c -- terminate long options list and
thus prevent segmentation fault on invalid command line options Description:

aserver.c 2004-09-04 16:34:56.000000000 +0200 renamed from aserver.c.orig 2004-09-04 16:16:53.000000000 +0200 +2 -1
@@ -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;

======================================================================

----------------------------------------------------------------------
jdthood - 09-24-04 21:23
----------------------------------------------------------------------
Summary: Terminate long_options array

----------------------------------------------------------------------
tiwai - 09-28-04 19:22
----------------------------------------------------------------------
Applied to CVS. Thanks.

Issue History
Date Modified Username Field Change
======================================================================

09-22-04 23:38 jdthood        New Issue                                    
09-23-04 18:17 tiwai          Note Added: 0001828                          
09-24-04 21:23 jdthood        Note Added: 0001904                          
09-28-04 19:22 tiwai          Status                   new => resolved     
09-28-04 19:22 tiwai          Resolution               open => fixed       
09-28-04 19:22 tiwai          Assigned To               => tiwai           
09-28-04 19:22 tiwai          Note Added: 0001955                          
11-09-04 16:38 tiwai          Status                   resolved => closed  

======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click