Rosen Penev
14f5a26027
use const char for fopen mode
...
Fixes -Wwrite-strings warnings.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-07-22 18:11:11 -07:00
Jens Steube
254e33c473
File handling: Do not abort on seeing a BOM in input files, just warn and ignore the BOM
2021-06-29 20:42:22 +02:00
Jens Steube
2af45cd03f
Rename hc_fopen_nozip() to hc_fopen_raw()
2021-06-29 20:13:11 +02:00
Jens Steube
f54643479d
CRC32: Prevent decompression of data used in CRC32 calculation on host. This leads to false negatives with TrueCrypt/VeraCrypt keyfiles
2021-05-29 13:27:05 +02:00
Alex Stanev
7252091d3b
Correct check for gz header.
...
gzip format is described in rfc1952.
From there, first 2 bytes (0x1f8b) are header;
next is Compression method (0x08 for deflate, this is the general used method);
and 4th byte is Flags. Some compression tools don't set this and we can't process the gzips.
zlib plays well in this cases, so we can just drop the check for the 4th byte.
2020-12-26 22:49:05 +02:00
philsmd
e59f61e8cf
cosmetic: minor code style fixes
2020-06-13 11:19:00 +02:00
Jens Steube
891b59fb2f
Remove some old code no longed needed
2020-06-03 10:05:29 +02:00
philsmd
e151a72717
huge fwrite/fread problem on windows fixed
2020-06-02 09:52:10 +02:00
Jens Steube
1da40bf5d8
Fix double close() in hc_fclose()
2020-02-29 10:39:28 +01:00
Jens Steube
9824e6e91b
Update unstable warnings for Intel GPU on macOSX 10.15
2020-01-14 13:29:02 +01:00
Rosen Penev
fd8150769d
Add casts where needed in C++ mode
...
Otherwise, -fpermissive must be passed.
2019-09-11 18:05:01 -07:00
Jens Steube
97c9e86d15
Filehandling: Print a truncation warning in case an oversized line was detected
2019-08-06 12:22:24 +02:00
Rosen Penev
fb75164126
Run through Clang's google-readability-casting
...
Removes casts where the type is identical.
2019-08-03 22:37:38 -07:00
Gabriele Gristina
b54ad7981f
update repo and re-apply zip patch
2019-07-29 18:42:50 +02:00
Gabriele Gristina
d0ec5c7b77
move hc_* file functions from shared.c/.h to filehandling.c/.h
2019-07-13 00:20:41 +02:00
Gabriele Gristina
481c752456
No more compress functions, update example.dict.gz, remove some comments
2019-06-27 20:18:47 +02:00
Gabriele Gristina
398c89c75c
switch almost all FILE ops, potfile is the only missing
2019-06-26 19:06:46 +02:00
Gabriele Gristina
b2529af172
remove original commented code
2019-06-22 15:00:50 +02:00
Gabriele Gristina
6cb4abd526
Add zlib support v2
2019-06-21 21:56:38 +02:00
jsteube
05a01d3843
fix some datatypes
2018-02-08 19:13:29 +01:00
jsteube
8abd7ae9d1
Fix some old GCC compiler warnings
2017-07-06 10:35:25 +02:00
jsteube
dc170907ed
Compress multiple newlines to one in host code, too
2017-02-26 15:48:14 +01:00
jsteube
dc4f96f42e
Fixed string not null terminated when reading maskfiles
2017-02-14 11:14:32 +01:00
jsteube
992bc01f3c
Fixed parsing of hashes in case the last line did not include a linefeed character
2017-01-05 21:58:24 +01:00
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.
2016-11-20 22:54:52 +01:00
Rosen Penev
03efea645f
More sign fixes
2016-11-16 21:17:28 -08:00
jsteube
8598a79732
Removed exit() from memory.c, resulting in all exit() calls removed from all code in the repository
2016-10-13 10:07:04 +02:00
jsteube
8fc4da795b
Replace fprintf(stderr, ...) on malloc.c with log_event_error()
2016-10-10 11:03:11 +02:00
jsteube
683077b42a
Use larger counter to handle larger wordlists
2016-09-30 16:43:59 +02:00
jsteube
a0f6ed6832
Introduce hashes_t; not finishe yet
2016-09-16 17:01:18 +02:00
jsteube
3daf0af480
Added docs/credits.txt
...
Added docs/team.txt
2016-09-11 22:20:15 +02:00
jsteube
6aee697112
Cleanup some macro values
2016-09-08 12:17:56 +02:00
jsteube
3ed4bfd237
Move tuningdb specific functions into their own source file
2016-09-06 19:44:27 +02:00