projects
/
hashcat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed some heap buffer overflow
[hashcat.git]
/
src
/
oclHashcat.c
diff --git
a/src/oclHashcat.c
b/src/oclHashcat.c
index
327ffbc
..
d1c0603
100644
(file)
--- 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;