You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2007/01/01 16:17:02 UTC

[Bug 5263] getopt does not properly handle missing optional argument in last long option of command line

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5263





------- Additional Comments From sidney@sidney.com  2007-01-01 07:17 -------
Created an attachment (id=3805)
 --> (http://issues.apache.org/SpamAssassin/attachment.cgi?id=3805&action=view)
patch to fix the bug

This patch initializes spamc_optarg to NULL at the beginning of the function
instead of having to do it in multiple execution paths later and possibly
missing one as was the cause of this bug.

I also found a fencepost error processing a longopt at the end of the command
line.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.