diff --git a/src/Makefile b/src/Makefile index c1242a6dc..e4f8ae901 100644 --- a/src/Makefile +++ b/src/Makefile @@ -77,7 +77,7 @@ NOW := $(shell date +%s) ## CFLAGS := -O2 -s -pipe -W -Wall -std=c99 -Iinclude/ -#CFLAGS := -g -pipe -W -Wall -std=c99 -Iinclude/ +#CFLAGS := -g -ggdb -pipe -W -Wall -std=c99 -Iinclude/ -fsanitize=address ## ## Native compilation target diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 327ffbcdc..d1c06035c 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -1729,7 +1729,7 @@ static uint count_lines (FILE *fd) { uint cnt = 0; - char *buf = (char *) mymalloc (BUFSIZ); + char *buf = (char *) mymalloc (BUFSIZ + 1); size_t nread_tmp = 0;