1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

Fixed some heap buffer overflow

This commit is contained in:
Jens Steube 2016-01-14 20:30:38 +01:00
parent 245301c9b4
commit 7bfee268d4
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;