R. Yushaev
074fad9fef
Correct buffer size parameter in snprintf calls
...
There are approx. 240 snprintf calls that set the target buffer size to
out_len - 1 or similar. This "mind the null character" subtraction is
unnecessary since snprintf already includes the string termination into
the given buffer size.
6 years ago
jsteube
8ec2af97ed
Eventual fix for unicode folder name issue on windows
7 years ago
Rosen Penev
dee6934f32
Fix cast qual with double pointers
7 years ago
Rosen Penev
0555613305
Remove else statement after return
...
Suggested by clang tidy
7 years ago
philsmd
611b62a25d
fixed double-free problem if OpenCL/ folder is missing (and e.g. shared folder == session folder)
7 years ago
Royce Williams
067372f5ce
more event_log_* standardization
8 years ago
Rosen Penev
4ceb7a1afa
Prefer _WIN to _POSIX for defines.
...
Also miscellaneous fixes here and there.
8 years ago
jsteube
231592101e
Test commit to workaround coverity false-positive
8 years ago
philsmd
d92f8b1d82
memory: we should free this memory in case of error in folder.c
8 years ago
Rosen Penev
a3d04a40b0
Fix more cppcheck warnings
8 years ago
Rosen Penev
2a2bd0e2b1
Restore strerror as %m is unsupported by the BSDs
...
The BSDs just print m instead of the actual error message. Benefit
is not worth the cost.
8 years ago
jsteube
45daaab6ac
If the user specifies a folder to scan for wordlists instead of directly a wordlist, then ignore the hidden files
8 years ago
jsteube
b3067680a7
If the user specifies a folder to scan for wordlists instead of directly a wordlist, then ignore the hidden files
8 years ago
jsteube
6ece83760d
Add wrapping function for asprintf()
8 years ago
Rosen Penev
36bd1c7dd9
Replace some snprintf calls with asprintf.
...
Simplifies the code.
8 years ago
Jens Steube
035dcd6898
Merge pull request #898 from neheb/master
...
Thread safety fixes.
8 years ago
Rosen Penev
5c0bd0a15f
Remove strerror in favor of thread safe %m
8 years ago
Nikolai Lifanov
4c8addcfb5
FreeBSD: fix refactoring some more - sysctl produces a string
8 years ago
Rosen Penev
96783ed7a3
Fix compilation for native Cygwin
8 years ago
Nikolai Lifanov
9c937aa3d3
add missing includes for FreeBSD
...
These were lost during refactoring and found again
in preparation for port update to upcoming 3.20.
8 years ago
jsteube
66a9f2f544
Merge strcmp() changes from https://github.com/hashcat/hashcat/pull/604
8 years ago
jsteube
e43747f36c
Do not use deprecated readdir_r(), man pages tells us to fall back to readdir()
8 years ago
jsteube
ea4fd1de50
Remove complicated checks after memory allocation and in case of error print to stderr instead. This makes the memory allocation functions more natural to use.
8 years ago
jsteube
aa1b7408a0
Add some missing returncode checks to get_exec_path()
8 years ago
Rosen Penev
03efea645f
More sign fixes
8 years ago
jsteube
af633cdf77
Replaced all calls to readdir() with readdir_r() to ensure thread safety with exception to windows, because there's no readdir_r() for windows. We should replace this with FindFirstFile() and FindNextFile() in a later version
8 years ago
jsteube
24d535d197
Replaced all calls to getpwuid() with getpwuid_r() to ensure thread safety
8 years ago
jsteube
69804dc5f7
Fix folder.c warnings when compiling on windows
8 years ago
jsteube
9eb9543cda
Basic sysfs support to read temp and read/write fan speed for amd-gpu-pro
8 years ago
jsteube
93adde9d2f
* Wrap everything related to *stat() into own functions
...
* Testwise remove early includes to stdin for OSX, see if they are still required
8 years ago
Rosen Penev
a219b95c17
Fix a bunch of warnings
8 years ago
jsteube
5815055a7a
Fixes https://github.com/hashcat/hashcat/issues/545
8 years ago
jsteube
c6c31a86d8
Add some changes to improve compiling on MSYS2
8 years ago
jsteube
8598a79732
Removed exit() from memory.c, resulting in all exit() calls removed from all code in the repository
8 years ago
jsteube
af9de0a7b7
Fix some error string formats
8 years ago
jsteube
8fc4da795b
Replace fprintf(stderr, ...) on malloc.c with log_event_error()
8 years ago
jsteube
07f5b2195b
Hopefully fixes some OSX compiler errors
8 years ago
jsteube
0f96c57ead
Remove some workarounds to use get rid of unused variable warnings
8 years ago
jsteube
27bec8be13
Get rid of logging.c and most exit() calls replaced with return() for true library usage
8 years ago
jsteube
662ddec0bb
Update folder.c function parameters
8 years ago
jsteube
57cb082fda
Add some useful stuff to main.c
8 years ago
jsteube
9413ed8f56
Centralize hashcat_ctx memory allocation and deallocation
8 years ago
jsteube
5f18fb40f1
Added hc_mkdir instead of mkdir macro
8 years ago
jsteube
d16b6228a6
Fix exec_path_len replacement on OSX
8 years ago
jsteube
299edf5170
Fix some missing sign conversions
8 years ago
jsteube
af1701c765
Fix some memleaks on shutdown
8 years ago
jsteube
1cc4358820
Introduce folder_config_t
8 years ago
jsteube
a0f6ed6832
Introduce hashes_t; not finishe yet
8 years ago
jsteube
3daf0af480
Added docs/credits.txt
...
Added docs/team.txt
8 years ago
jsteube
fe634d93aa
More pre-sorting
8 years ago