Commit Graph

62 Commits (master)

Author SHA1 Message Date
Rosen Penev ae07d65f34 clang-tidy: remove useless casts
9 months ago
Jens Steube 03e5260e3a
Merge pull request #3604 from justpretending/redundant_conditions
1 year ago
justpretending 3ae939e922 Remove some redundant conditions (fixes #3602)
1 year ago
justpretending c2fcef6c50 Support for FIFO outfiles (fixes #3582)
1 year ago
danielnachun 29373a0f6d
src/filehandling.c: add missing include
2 years ago
philsmd a24d723d66
minor code style fixes
2 years ago
philsmd 5ef522ed8f
whitespace and code style fixes
3 years ago
Jukka Ojanen c6ac306950 Fix fgetl() logic
3 years ago
Jukka Ojanen ac9d2241c2 Increase unzReadCurrentFile() chunk size to INT_MAX
3 years ago
Jukka Ojanen 592b28f65f Add tests for 32 bit build
3 years ago
Jukka Ojanen e6c89040fe Refactor xz file reading
3 years ago
Jukka Ojanen 63cc905bbc Refactor zip file reading
3 years ago
Jukka Ojanen b542d293b4 Refactor Windows file reading/writing
3 years ago
Jukka Ojanen 5baaa4fb0f Fix merge mistake
3 years ago
Jukka Ojanen 213b533975 Use HCFILE_BUFFER_SIZE for xz stream
3 years ago
Jukka Ojanen 5afbd77347 Merge branch 'master' of https://github.com/hashcat/hashcat into gzip
3 years ago
Jukka Ojanen 1b4edf879b Set GZIP internal buffer size to 256k (default 8k)
3 years ago
Jukka Ojanen 106fe88e4e Report the uncompressed size only if it's known
3 years ago
Jukka Ojanen 8324d3cd07 Initialize both 32bit CrcGenerateTable() and 64bit Crc64GenerateTable()
3 years ago
Jukka Ojanen b2870dadfd Fix include file case
3 years ago
Jukka Ojanen f502d80459 Fix include file case
3 years ago
Jukka Ojanen 4dcdbebb2f Scan the xz file to determinate the number of blocks and streams, and its uncompressed size
3 years ago
Jukka Ojanen 47bb7620ee Use fastest SHA-256 implementation supported by CPU
3 years ago
Jukka Ojanen 3cacbe0e1f Add support for xz compressed files
3 years ago
Jukka Ojanen 3bc7b6af90 Avoid directly accessing file handle
3 years ago
Jukka Ojanen fed32a58c7 Always cleanup and initialize all parts of HC_FILE structure
3 years ago
Jukka Ojanen 089a4847db Check NULL pointer before using gzip/zip APIs
3 years ago
Jukka Ojanen 36c209c421 Check NULL pointer before using file APIs
3 years ago
Jukka Ojanen 6cf553410b Avoid (possible) undefined behaviour in hc_fclose(), and don't assume plain file
3 years ago
Rosen Penev 14f5a26027 use const char for fopen mode
3 years ago
Jens Steube 254e33c473 File handling: Do not abort on seeing a BOM in input files, just warn and ignore the BOM
3 years ago
Jens Steube 2af45cd03f Rename hc_fopen_nozip() to hc_fopen_raw()
3 years ago
Jens Steube f54643479d CRC32: Prevent decompression of data used in CRC32 calculation on host. This leads to false negatives with TrueCrypt/VeraCrypt keyfiles
3 years ago
Alex Stanev 7252091d3b Correct check for gz header.
3 years ago
philsmd e59f61e8cf
cosmetic: minor code style fixes
4 years ago
Jens Steube 891b59fb2f Remove some old code no longed needed
4 years ago
philsmd e151a72717
huge fwrite/fread problem on windows fixed
4 years ago
Jens Steube 1da40bf5d8 Fix double close() in hc_fclose()
4 years ago
Jens Steube 9824e6e91b Update unstable warnings for Intel GPU on macOSX 10.15
4 years ago
Rosen Penev fd8150769d Add casts where needed in C++ mode
5 years ago
Jens Steube 97c9e86d15 Filehandling: Print a truncation warning in case an oversized line was detected
5 years ago
Rosen Penev fb75164126
Run through Clang's google-readability-casting
5 years ago
Gabriele Gristina b54ad7981f update repo and re-apply zip patch
5 years ago
Gabriele Gristina d0ec5c7b77 move hc_* file functions from shared.c/.h to filehandling.c/.h
5 years ago
Gabriele Gristina 481c752456 No more compress functions, update example.dict.gz, remove some comments
5 years ago
Gabriele Gristina 398c89c75c switch almost all FILE ops, potfile is the only missing
5 years ago
Gabriele Gristina b2529af172 remove original commented code
5 years ago
Gabriele Gristina 6cb4abd526 Add zlib support v2
5 years ago
jsteube 05a01d3843 fix some datatypes
6 years ago
jsteube 8abd7ae9d1 Fix some old GCC compiler warnings
7 years ago