Commit Graph

292 Commits

Author SHA1 Message Date
bf24a8da3a Reorder include statements for consistency in main.c and usage.c 2025-10-01 01:24:07 +01:00
15ec8c6584 Fix variable naming for header write operation in close.c 2025-10-01 01:23:57 +01:00
c653aca52c Initialize DDT header using aggregate initialization for clarity 2025-10-01 00:53:10 +01:00
8542d18ef1 Refactor test fixture classes to use non-const pointers and modern C++ initialization 2025-10-01 00:52:46 +01:00
75c7ebfefd Enhance DDT entry functions to support existing entries and improve deduplication logic 2025-09-30 20:45:30 +01:00
43c06775f0 Update return types in DDT functions to improve error handling 2025-09-30 20:10:55 +01:00
f6ed0f1856 Add hash map implementation for sector deduplication 2025-09-30 20:10:40 +01:00
88816c37fd Add xxHash submodule and CMake integration for fast hashing 2025-09-30 20:04:45 +01:00
f34215f33c Enable readability check for braces around statements in .clang-tidy 2025-09-30 18:49:58 +01:00
d0f7bd7127 Fix error codes in errors.h to use parentheses for consistency 2025-09-30 18:48:49 +01:00
495a5bc55a Add error code for DDT entry setting failure and update related functions to return status 2025-09-30 18:47:38 +01:00
ae402f2fd1 Add OpenSSL and LibreSSL support for tests using crypto functions 2025-09-30 16:16:53 +01:00
d5d2bb100f Enhance documentation for various functions 2025-09-30 16:03:34 +01:00
bebdbee136 Refactor variable names for consistency in read.c 2025-09-30 15:21:53 +01:00
90ba53b071 Enhance documentation for media tag and sector reading functions in read.c 2025-09-30 15:20:15 +01:00
dda0ee89e8 Refactor variable names for consistency and readability across multiple files 2025-09-30 15:11:27 +01:00
352850a698 Refactor function signatures to use const char* for string parameters 2025-09-30 13:48:31 +01:00
fe20a40a0e Add Clang-Tidy configuration for code quality checks 2025-09-30 13:32:14 +01:00
9382243369 Add detailed documentation for various processing functions in AaruFormat 2025-09-30 13:08:45 +01:00
0260bcb4c3 Add overflow detection for DDT entries to prevent data loss 2025-09-30 12:35:36 +01:00
c122839733 Improve int64_to_string() by using snprintf for cache key collision prevention 2025-09-30 01:51:41 +01:00
6df199f8e8 Fix nextBlockPosition calculation to prevent overwriting DDT and reset offsets 2025-09-30 01:51:18 +01:00
63e1a1403f Fix sector address calculation for cached DDT entries to ensure correct indexing 2025-09-30 01:50:45 +01:00
ca5d8bf842 Fix memcpy destination offset in writing buffer to ensure correct data placement 2025-09-29 14:47:09 +01:00
71400ab276 Replace malloc with calloc for writing buffer allocation to ensure memory is zero-initialized 2025-09-29 14:46:55 +01:00
524e71ec61 Fix memcpy offset calculation in aaruf_read_sector() for correct data retrieval 2025-09-29 14:46:37 +01:00
0f31aa1562 Add CLI comparison command for AaruFormat images 2025-09-29 14:45:55 +01:00
d5e45a92fe Remove unnecessary memset for sector data in aaruf_read_sector() when sector status is not dumped 2025-09-29 10:11:00 +01:00
1c3c9ddfc5 Update sector write logic to use SectorStatusDumped for improved status tracking 2025-09-29 10:10:32 +01:00
b02cab437f Refactor CRC64 handling in write sector logic to initialize context and update CRC at appropriate stages 2025-09-29 02:59:38 +01:00
adbe4e1b2d Refactor secondary DDT table creation logic to check for cached entries 2025-09-28 21:26:26 +01:00
f7f9ce53dd Add TRACE logging for setting secondary DDT entries in cached structures 2025-09-28 21:25:55 +01:00
f992267f18 Implement handling for never-written cached secondary DDT, including writing to disk and updating index entries 2025-09-28 19:44:28 +01:00
ed665ee763 Add cachedDdtPosition to track primary DDT position for new tables 2025-09-28 19:44:15 +01:00
c2c9d9f7d4 Initialize primary DDT and calculate data block start position 2025-09-28 18:44:33 +01:00
f456bcdfc6 Rename trace log from aaruf_open to parse_options for clarity 2025-09-28 18:44:17 +01:00
f3dd65c8e2 Add null check for options in aaruf_open() to prevent potential crashes 2025-09-28 18:44:05 +01:00
201a1d7022 Update nextBlockPosition calculation for aligned block writing 2025-09-28 18:43:44 +01:00
d4040e10af Update primary table entry to use calculated ddtPosition instead of cachedDdtOffset 2025-09-28 18:43:08 +01:00
e39e803c91 Align end of file to block boundary for improved data integrity 2025-09-28 18:42:33 +01:00
f5304c3173 Change nextBlockPosition type to uint64_t for improved precision 2025-09-28 18:42:01 +01:00
99b432cab6 Add convert command to AaruFormat tool for image conversion 2025-09-28 17:23:14 +01:00
90ca1ee872 Initialize index entries array and update index management for DDT entries 2025-09-28 17:08:33 +01:00
1fd250220a Write cached DDT tables to file and update primary table entries 2025-09-28 16:36:23 +01:00
a4b76fe509 Close current data block before writing cached secondary level table 2025-09-28 16:13:56 +01:00
ce20e37007 Add DDT entry setting function and integrate it into write process 2025-09-28 15:27:30 +01:00
d8e39eb87b Add primary DDT offset and implement DDT entry setting functions 2025-09-28 15:15:05 +01:00
bed8b75491 Enhance logging and error handling across multiple modules 2025-08-14 00:38:28 +01:00
d62e3119c2 Add slog logging support and update error handling in various modules 2025-08-13 20:16:42 +01:00
64c58c0300 Add write functionality for sectors and implement block closing logic 2025-08-13 16:17:45 +01:00