projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
471c10c
)
Fixed a buffer overflow in potfile handling
author
Jens Steube
<jens.steube@gmail.com>
Sun, 17 Jan 2016 01:18:07 +0000
(
02:18
+0100)
committer
Jens Steube
<jens.steube@gmail.com>
Sun, 17 Jan 2016 01:18:07 +0000
(
02:18
+0100)
src/oclHashcat.c
patch
|
blob
|
history
diff --git
a/src/oclHashcat.c
b/src/oclHashcat.c
index
d03d696
..
ec49760
100644
(file)
--- a/
src/oclHashcat.c
+++ b/
src/oclHashcat.c
@@
-10257,6
+10257,8
@@
int main (int argc, char **argv)
continue;
}
+ if (plain_len >= 255) continue;
+
memcpy (pot_ptr->plain_buf, plain_buf, plain_len);
pot_ptr->plain_len = plain_len;