Commit Graph

505 Commits

Author SHA1 Message Date
87db877873 Implement bounds checking for sector addresses in read/write functions 2025-10-02 17:29:13 +01:00
a8f39093bb Add support for negative sector addresses in read/write functions 2025-10-02 17:07:17 +01:00
5c7610c1c0 Use heuristics to setup table shift. 2025-10-02 04:40:16 +01:00
05491bd935 Fix overflow detection when setting single level DDT v2. 2025-10-02 04:38:09 +01:00
d92b4b2987 Fix setting single level DDT v2. 2025-10-02 04:37:32 +01:00
fe57dc726f Add missing log.h include for logging functionality in crc64_vmull.c 2025-10-02 03:44:00 +01:00
41aee42c53 Enhance documentation for various structures with detailed descriptions and formatting improvements 2025-10-01 05:35:39 +01:00
1f91ad1e08 Enhance documentation for enums with detailed descriptions and formatting improvements 2025-10-01 03:08:21 +01:00
641cb9824b Refactor include guards for consistency across header files 2025-10-01 02:55:59 +01:00
4403cf267f Refactor variable declarations and expressions for improved readability and consistency across multiple source files 2025-10-01 02:54:51 +01:00
a1b3b5db92 Refactor variable declarations for improved clarity and consistency in multiple source files 2025-10-01 02:39:37 +01:00
a7434322ea Add const qualifiers to function parameters and local variables for improved type safety 2025-10-01 02:34:42 +01:00
f1811e6b3c Refactor variable declarations for improved scope and clarity in multiple source files 2025-10-01 01:32:30 +01:00
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