projects
/
hashcat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a bug where hashcat crashes for accessing deallocated buffer if user spams...
[hashcat.git]
/
src
/
hashcat.c
diff --git
a/src/hashcat.c
b/src/hashcat.c
index
13ee720
..
958ceb7
100644
(file)
--- a/
src/hashcat.c
+++ b/
src/hashcat.c
@@
-925,6
+925,9
@@
void status_display ()
if (data.devices_status == STATUS_INIT) return;
if (data.devices_status == STATUS_STARTING) return;
if (data.devices_status == STATUS_INIT) return;
if (data.devices_status == STATUS_STARTING) return;
+ // in this case some required buffers are free'd, ascii_digest() would run into segfault
+ if (data.shutdown_inner == 1) return;
+
if (data.machine_readable == 1)
{
status_display_machine_readable ();
if (data.machine_readable == 1)
{
status_display_machine_readable ();
@@
-1715,6
+1718,8
@@
static void status_benchmark ()
if (data.devices_status == STATUS_INIT) return;
if (data.devices_status == STATUS_STARTING) return;
if (data.devices_status == STATUS_INIT) return;
if (data.devices_status == STATUS_STARTING) return;
+ if (data.shutdown_inner == 1) return;
+
if (data.machine_readable == 1)
{
status_benchmark_automate ();
if (data.machine_readable == 1)
{
status_benchmark_automate ();