Commit Graph

577 Commits

Author SHA1 Message Date
c02b6b2f77 Remove test file download logic from CMakeLists.txt and copy file directly 2025-10-09 17:55:47 +01:00
854137d8d1 Add functionality to download test file if not present 2025-10-09 17:00:45 +01:00
714a2d9c5d Add unit tests for opening AaruFormat images in open_image.cpp 2025-10-09 17:00:38 +01:00
3926d8f41e Integrate CTest for per-test reporting in tests_run 2025-10-09 17:00:20 +01:00
4a915ee152 Add missing include for aaru.h in decls.h 2025-10-09 16:59:41 +01:00
791a7f8879 Add function to retrieve deep copy of ImageInfo structure from AaruFormat image 2025-10-09 15:39:22 +01:00
e4c9b3f295 Update ImageInfo documentation. 2025-10-09 15:31:34 +01:00
ef76712380 Add functions to retrieve user, negative, and overflow sectors in AaruFormat images 2025-10-09 14:59:45 +01:00
73f2df925b Reconstruct CD long sectors from DDT v2 images. 2025-10-09 12:29:23 +01:00
ac0e2610e1 Refactor context structure for improved padding 2025-10-09 02:37:46 +01:00
b884cfe8ea Rename field names for consistency across the codebase 2025-10-09 02:33:35 +01:00
5e346e6fd5 Rename XmlMediaType to MetadataMediaType for clarity and consistency 2025-10-09 02:26:09 +01:00
5be6727ec2 Refactor image info structure to use fixed-size arrays and improve UTF-16 to UTF-8 conversion 2025-10-09 02:24:09 +01:00
fb4acfcbda Refactor metadata handling in context structures to improve organization and clarity 2025-10-09 02:06:34 +01:00
b02f9d4402 Refactor aaruformatContext structure for improved organization and clarity 2025-10-09 01:57:32 +01:00
fafca45dae Remove concept of 16-bit DDTs. 2025-10-09 01:47:39 +01:00
a51e170183 Refactor media information retrieval in info.c to use API calls instead of directly accessing context structures. 2025-10-09 01:06:45 +01:00
f4b0f55fc1 Add filetime formatting for creation and last written times in info.c 2025-10-09 00:53:49 +01:00
d24bf749c4 Add media type string conversion and update info display in info.c 2025-10-09 00:53:38 +01:00
802048b957 Enhance application name conversion in convert.c to support UTF-16LE encoding 2025-10-09 00:52:16 +01:00
71bc311140 Enhance error handling in tape.c by adding checks for incorrect identifiers in data blocks 2025-10-08 19:47:40 +01:00
cee3cb88e1 Improve memory management in optical.c by ensuring proper allocation and deallocation of dataTracks 2025-10-08 19:47:27 +01:00
d25b73d8dc Fix memory allocation for MediaModel and DriveFirmwareRevision in metadata.c 2025-10-08 19:47:14 +01:00
854e11bcf8 Enhance dump hardware block processing in dump.c with improved error handling and memory management 2025-10-08 19:47:04 +01:00
69a0496527 Enhance data processing in data.c with improved validation and memory management 2025-10-08 19:46:52 +01:00
ad595b4dac Remove unused function declaration for adding subindex entries in internal.h 2025-10-08 19:46:39 +01:00
c8df31f561 Enhance checksum processing in checksum.c with improved error handling and memory management 2025-10-08 19:46:28 +01:00
15885c76a2 Enhance DDT processing in ddt_v1.c and ddt_v2.c with improved error handling for LZMA compression 2025-10-08 19:46:07 +01:00
69c0b53e1b Enhance index processing in index_v1.c with improved error handling and memory management 2025-10-08 19:45:37 +01:00
2017becbfd Enhance index processing in index_v2.c with improved error handling and memory management 2025-10-08 19:45:27 +01:00
a160fbdbaf Enhance index processing in index_v3.c with improved error handling and memory management 2025-10-08 19:45:17 +01:00
09d58bce8c Refactor compression handling in close.c to improve buffer management and CRC64 calculation 2025-10-08 19:45:04 +01:00
7529b1f9df Refactor DDT initialization for improved memory management and alignment handling 2025-10-08 19:44:38 +01:00
97bc659571 Improve cache initialization to prevent division by zero in blockHeaderCache 2025-10-08 19:43:21 +01:00
ea63297348 Add cleanup function for failed image creation to improve memory management 2025-10-08 19:42:57 +01:00
8162a6f6cb Add memory management improvements and validation checks in aaruf_get_dumphw and aaruf_set_dumphw functions 2025-10-08 19:41:11 +01:00
709543a37d Add null checks for filename and image_stream in aaruf_identify functions 2025-10-08 19:40:38 +01:00
4595fbb4ac Refactor Sony tag handling to improve block validation and memory management 2025-10-08 19:39:47 +01:00
d220ac44f3 Improve cache initialization by adding divisor check to prevent division by zero 2025-10-08 19:39:05 +01:00
6556a943bc Fix block processing flow by adding missing break statements for TapeFileBlock and TapePartitionBlock cases 2025-10-08 19:37:49 +01:00
95f9aa6f65 Initialize context memory after allocation to prevent undefined behavior 2025-10-08 19:37:36 +01:00
1e9ca18c6f Refactor aaruf_open function to improve readability and maintainability 2025-10-08 19:37:20 +01:00
f8488af80e Implement cleanup function for open failures to ensure proper resource deallocation 2025-10-08 19:37:04 +01:00
dd20ab4531 Enhance option parsing with robust error handling and improved value validation 2025-10-08 19:36:16 +01:00
ae19b9198f Refactor error handling in aaruf_read_sector functions to improve robustness and set correct length values 2025-10-08 19:35:56 +01:00
227e9b478f Add missing free calls for allocated memory in sector reading functions 2025-10-08 19:35:15 +01:00
acf92f6dcf Add validation for LZMA block lengths and handle errors in sector reading 2025-10-08 19:34:22 +01:00
38efda2a50 Add error handling for fseek in aaruf_read_sector to improve robustness 2025-10-08 19:33:36 +01:00
fc4fe2d69d Fix TRACE logging to reflect correct function names in sector read error handling 2025-10-08 19:32:52 +01:00
6cb9af6270 Add NULL pointer checks for length in media tag and sector read functions 2025-10-08 19:31:57 +01:00