diff options
| author | hexcoder- <heiko@hexco.de> | 2020-02-16 21:56:40 +0100 |
|---|---|---|
| committer | hexcoder- <heiko@hexco.de> | 2020-02-16 21:56:40 +0100 |
| commit | 0ad698ffbf221538976074299179bba675317879 (patch) | |
| tree | 94099f4382d27870c62c7a152220262d34ac404f | |
| parent | b670ba182e266b674a6d0389774d78de960abf57 (diff) | |
| download | afl++-0ad698ffbf221538976074299179bba675317879.tar.gz | |
add option -h and man page for afl-as
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | src/afl-as.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile index ea991cd3..0e20f226 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ VERSION = $(shell grep '^$(HASH)define VERSION ' ../config.h | cut -d '"' -f PROGS = afl-gcc afl-fuzz afl-showmap afl-tmin afl-gotcpu afl-analyze SH_PROGS = afl-plot afl-cmin afl-cmin.bash afl-whatsup afl-system-config -MANPAGES=$(foreach p, $(PROGS) $(SH_PROGS), $(p).8) +MANPAGES=$(foreach p, $(PROGS) $(SH_PROGS), $(p).8) afl-as.8 ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -flto=full -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1" CFLAGS_FLTO ?= -flto=full diff --git a/src/afl-as.c b/src/afl-as.c index 941105df..966a36bb 100644 --- a/src/afl-as.c +++ b/src/afl-as.c @@ -518,7 +518,7 @@ int main(int argc, char** argv) { be_quiet = 1; - if (argc < 2) { + if (argc < 2 || (argc == 2 && strcmp(argv[1], "-h") == 0)) { SAYF( "\n" |
