Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Commit [r6993] Maximize Restore History

getopt_long checker + one more crash fix

* Add getopt_long_chk(), a getopt_long variant that checks if the
overlapping short and long options agree on whether their argument
is not required, mandatory, or optional. If they disagree, the
program aborts.

* Fix a crash in command line parser that causes a NULL pointer
dereference when --db-cachesize is used without argument.
Found with getopt_long_chk().

m-a 2013-06-28

added /trunk/bogofilter/src/getopt_long_chk.c
changed /trunk/bogofilter/NEWS
changed /trunk/bogofilter/src/Makefile.am
changed /trunk/bogofilter/src/bogoconfig.c
changed /trunk/bogofilter/src/bogolexer.c
changed /trunk/bogofilter/src/bogotune.c
changed /trunk/bogofilter/src/bogoutil.c
changed /trunk/bogofilter/src/longoptions.h
/trunk/bogofilter/src/getopt_long_chk.c Diff Switch to side-by-side view
Loading...
/trunk/bogofilter/NEWS Diff Switch to side-by-side view
Loading...
/trunk/bogofilter/src/Makefile.am Diff Switch to side-by-side view
Loading...
/trunk/bogofilter/src/bogoconfig.c Diff Switch to side-by-side view
Loading...
/trunk/bogofilter/src/bogolexer.c Diff Switch to side-by-side view
Loading...
/trunk/bogofilter/src/bogotune.c Diff Switch to side-by-side view
Loading...
/trunk/bogofilter/src/bogoutil.c Diff Switch to side-by-side view
Loading...
/trunk/bogofilter/src/longoptions.h Diff Switch to side-by-side view
Loading...