mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-30 12:49:04 +00:00
Fixed some heap buffer overflow
This commit is contained in:
parent
245301c9b4
commit
7bfee268d4
@ -77,7 +77,7 @@ NOW := $(shell date +%s)
|
|||||||
##
|
##
|
||||||
|
|
||||||
CFLAGS := -O2 -s -pipe -W -Wall -std=c99 -Iinclude/
|
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
|
## Native compilation target
|
||||||
|
@ -1729,7 +1729,7 @@ static uint count_lines (FILE *fd)
|
|||||||
{
|
{
|
||||||
uint cnt = 0;
|
uint cnt = 0;
|
||||||
|
|
||||||
char *buf = (char *) mymalloc (BUFSIZ);
|
char *buf = (char *) mymalloc (BUFSIZ + 1);
|
||||||
|
|
||||||
size_t nread_tmp = 0;
|
size_t nread_tmp = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user