/FileX-v6.2.1/test/regression_test/ |
D | filex_unicode_name_string_test.c | 82 UCHAR buffer[512]; in ftest_0_entry() local 139 buffer[0] = '/'; in ftest_0_entry() 142 buffer[i] = 'a'; in ftest_0_entry() 144 buffer[255] = 0; in ftest_0_entry() 147 status = fx_directory_create( &ram_disk, (CHAR *)buffer); in ftest_0_entry() 149 status = fx_directory_local_path_set(&ram_disk, &local_path, (CHAR *)buffer); in ftest_0_entry() 151 status = fx_directory_default_set(&ram_disk, (CHAR *)buffer); in ftest_0_entry() 160 buffer[255] = '/'; in ftest_0_entry() 161 buffer[256] = 0; in ftest_0_entry() 164 ram_disk.fx_media_last_found_name[i] = (CHAR)buffer[i]; in ftest_0_entry()
|
D | filex_fault_tolerant_enable_test.c | 107 UCHAR buffer[2048]; in ftest_0_entry() local 186 _fx_utility_memory_copy(source_buffer, buffer, ram_disk.fx_media_bytes_per_sector); in ftest_0_entry() 189 start_cluster = _fx_utility_32_unsigned_read(buffer + FX_FAULT_TOLERANT_BOOT_INDEX); in ftest_0_entry() 250 _fx_utility_memory_copy(source_buffer, buffer, ram_disk.fx_media_bytes_per_sector); in ftest_0_entry() 253 start_cluster = _fx_utility_32_unsigned_read(buffer + FX_FAULT_TOLERANT_BOOT_INDEX); in ftest_0_entry() 284 …_fx_utility_memory_copy(source_buffer, buffer, 1 * ram_disk.fx_media_sectors_per_cluster * ram_dis… in ftest_0_entry() 287 return_if_fail(_fx_utility_32_unsigned_read(buffer) == FX_FAULT_TOLERANT_ID); in ftest_0_entry() 290 size = _fx_utility_16_unsigned_read(buffer + 4); in ftest_0_entry() 296 checksum = _fx_fault_tolerant_calculate_checksum(buffer, FX_FAULT_TOLERANT_LOG_HEADER_SIZE); in ftest_0_entry() 300 …checksum = _fx_fault_tolerant_calculate_checksum(buffer + FX_FAULT_TOLERANT_FAT_CHAIN_OFFSET, FX_F… in ftest_0_entry() [all …]
|
D | filex_utility_test.c | 247 CHAR buffer[16]; in ftest_0_entry() local 768 _fx_utility_memory_set((UCHAR*)buffer, 0, 0); in ftest_0_entry() 769 _fx_utility_memory_set((UCHAR*)buffer, 0, sizeof(buffer)); in ftest_0_entry() 770 size = _fx_utility_string_length_get(buffer, sizeof(buffer)); in ftest_0_entry() 773 buffer[0] = 'a'; in ftest_0_entry() 774 size = _fx_utility_string_length_get(buffer, sizeof(buffer)); in ftest_0_entry() 777 _fx_utility_memory_set((UCHAR*)buffer, 'a', sizeof(buffer)); in ftest_0_entry() 778 size = _fx_utility_string_length_get(buffer, sizeof(buffer)); in ftest_0_entry() 779 return_if_fail(size == sizeof(buffer)); in ftest_0_entry() 781 _fx_utility_memory_set((UCHAR*)buffer, 'a', sizeof(buffer)); in ftest_0_entry() [all …]
|
D | fx_ram_driver_test.c | 211 UCHAR buffer[BUFFER_SIZE]; in _fx_ram_driver() local 442 _fx_utility_memory_copy(block_start, buffer, bytes_per_block); in _fx_ram_driver() 445 _fx_utility_memory_copy(source_buffer, buffer + offset, bytes_per_write); in _fx_ram_driver() 471 _fx_utility_memory_copy(buffer, block_start, bytes_per_block); in _fx_ram_driver() 664 UCHAR buffer[4096]; in _filex_fault_tolerant_log_check() local 691 _fx_utility_memory_copy(source_buffer, buffer, media_ptr -> fx_media_bytes_per_sector); in _filex_fault_tolerant_log_check() 694 start_cluster = _fx_utility_32_unsigned_read(buffer + FX_FAULT_TOLERANT_BOOT_INDEX); in _filex_fault_tolerant_log_check() 733 _fx_utility_memory_copy(source_buffer, buffer, FX_FAULT_TOLERANT_MINIMAL_BUFFER_SIZE); in _filex_fault_tolerant_log_check() 736 if (_fx_utility_32_unsigned_read(buffer) != FX_FAULT_TOLERANT_ID) in _filex_fault_tolerant_log_check() 746 size = _fx_utility_16_unsigned_read(buffer + 4); in _filex_fault_tolerant_log_check() [all …]
|
D | filex_file_seek_test.c | 31 static UCHAR buffer[128]; variable 642 status = fx_file_write(&my_file, buffer, 128); in ftest_0_entry() 643 status += fx_file_write(&my_file, buffer, 128); in ftest_0_entry() 644 status += fx_file_write(&my_file, buffer, 128); in ftest_0_entry() 645 status += fx_file_write(&my_file, buffer, 128); in ftest_0_entry() 647 status += fx_file_write(&my_file, buffer, 128); in ftest_0_entry() 648 status += fx_file_write(&my_file, buffer, 128); in ftest_0_entry() 649 status += fx_file_write(&my_file, buffer, 128); in ftest_0_entry() 650 status += fx_file_write(&my_file, buffer, 128); in ftest_0_entry() 807 status = fx_file_write(&my_file, buffer, 128); in ftest_0_entry() [all …]
|
D | filex_file_create_delete_test.c | 108 UCHAR buffer[30]; in ftest_0_entry() local 335 status = fx_file_read(&file_1, buffer, 30, &actual); in ftest_0_entry() 341 status = fx_file_read(FX_NULL, buffer, 30, &actual); in ftest_0_entry() 346 status = fx_file_read(&file_2, buffer, 30, &actual); in ftest_0_entry() 350 status = fx_file_read(&file_3, buffer, 30, &actual); in ftest_0_entry() 354 status = fx_file_read(&file_4, buffer, 30, &actual); in ftest_0_entry() 429 status = fx_file_write(&file_5, buffer, 128); in ftest_0_entry() 438 status += fx_file_write(&file_6, buffer, 128); in ftest_0_entry() 603 status = fx_file_write(&file_6, buffer, 128); in ftest_0_entry() 604 status += fx_file_write(&file_6, buffer, 128); in ftest_0_entry() [all …]
|
D | filex_fault_tolerant_enable_1_test.c | 108 UCHAR buffer[2048]; in ftest_0_entry() local 275 … 1 + ram_disk.fx_media_sectors_per_FAT + ram_disk.fx_media_root_sectors, buffer, (ULONG64)1, FX_DA… in ftest_0_entry() 278 buffer[5]++; in ftest_0_entry() 281 … 1 + ram_disk.fx_media_sectors_per_FAT + ram_disk.fx_media_root_sectors, buffer, (ULONG64)1, FX_DA… in ftest_0_entry() 294 … 1 + ram_disk.fx_media_sectors_per_FAT + ram_disk.fx_media_root_sectors, buffer, (ULONG64)1, FX_DA… in ftest_0_entry() 297 buffer[FX_FAULT_TOLERANT_LOG_HEADER_SIZE]++; in ftest_0_entry() 298 … 1 + ram_disk.fx_media_sectors_per_FAT + ram_disk.fx_media_root_sectors, buffer, (ULONG64)1, FX_DA… in ftest_0_entry()
|
D | filextestcontrol.c | 475 UCHAR buffer[100]; in tx_application_define() local 1132 status = _fxe_media_format(&media_instance, fake_driver, FX_NULL, buffer, 0, in tx_application_define() 1150 status = _fxe_media_format(&media_instance, fake_driver, FX_NULL, buffer, 0, in tx_application_define() 1170 status = _fxe_media_format(&media_instance, fake_driver, FX_NULL, buffer, 0, in tx_application_define() 1230 buffer, 0, 0); in tx_application_define() 1249 buffer, 0, sizeof(FX_MEDIA)); in tx_application_define() 1267 buffer, 0, sizeof(FX_MEDIA)); in tx_application_define() 1287 buffer, 0, sizeof(FX_MEDIA)); in tx_application_define() 1313 buffer, 0, sizeof(FX_MEDIA)); in tx_application_define() 1341 buffer, 0, sizeof(FX_MEDIA)); in tx_application_define() [all …]
|
D | filex_unicode_test.c | 111 UCHAR buffer[512]; in ftest_0_entry() local 590 buffer[i] = 'A'; in ftest_0_entry() 592 length = fx_unicode_length_get(buffer); in ftest_0_entry() 601 buffer[0] = 0; in ftest_0_entry() 602 buffer[3] = 0; in ftest_0_entry() 603 buffer[8] = 0; in ftest_0_entry() 604 buffer[9] = 0; in ftest_0_entry() 606 length = fx_unicode_length_get(buffer); in ftest_0_entry()
|
D | filex_directory_create_delete_test.c | 77 static UCHAR buffer[128]; variable 1201 status += fx_media_read(&ram_disk, ram_disk.fx_media_root_sector_start+1, buffer); in ftest_0_entry() 1202 buffer[0x40] = 0x1f; in ftest_0_entry() 1203 status += fx_media_write(&ram_disk, ram_disk.fx_media_root_sector_start+1, buffer); in ftest_0_entry() 1588 status += fx_unicode_file_create(&ram_disk, my_unicode_name, 15, (CHAR *)buffer); in ftest_0_entry() 1589 status += fx_unicode_file_create(&ram_disk, my_unicode_name1, 15, (CHAR *)buffer); in ftest_0_entry() 1690 status += fx_directory_first_entry_find(&ram_disk, (CHAR *)buffer); in ftest_0_entry() 1691 status += fx_directory_next_entry_find(&ram_disk, (CHAR *)buffer); in ftest_0_entry() 1704 status = fx_directory_next_entry_find(&ram_disk, (CHAR *)buffer); in ftest_0_entry() 1717 status = fx_directory_next_entry_find(&ram_disk, (CHAR *)buffer); in ftest_0_entry() [all …]
|
D | filex_fault_tolerant_corrupted_log_file_test.c | 4 …X includes integer under and overflows which may be exploited to achieve buffer overflow and modif… 7 With the condition bypassed one may force a buffer overflow in the memcpy call with the possibility… 9 …n bypass of the comparison against media_ptr -> fx_media_memory_size allowing a buffer overflow.
|
D | filex_file_allocate_truncate_test.c | 93 CHAR buffer[1]; in ftest_0_entry() local 627 status += fx_file_read(&read_only, buffer, 1, &actual); in ftest_0_entry() 743 status += fx_file_read(&read_only, buffer, 1, &actual); in ftest_0_entry() 887 status += fx_file_read(&read_only, buffer, 1, &actual); in ftest_0_entry() 1064 status += fx_file_read(&read_only, buffer, 1, &actual); in ftest_0_entry()
|
D | filex_fault_tolerant_enable_2_test.c | 98 UCHAR buffer[2048]; in ftest_0_entry() local 307 status = _fx_utility_logical_sector_read( &ram_disk, 99, buffer, 1, FX_DIRECTORY_SECTOR); in ftest_0_entry() 369 status = _fx_utility_logical_sector_read( &ram_disk, 99, buffer, 1, FX_DIRECTORY_SECTOR); in ftest_0_entry()
|
D | filex_unicode_directory_entry_test.c | 101 UCHAR buffer[512]; in ftest_0_entry() local 323 destination_dir.fx_dir_entry_name = (CHAR *)buffer; in ftest_0_entry()
|
D | filex_file_read_write_test.c | 29 static UCHAR buffer[128*3]; variable 2518 status += fx_file_write(&my_file, buffer, 128*3); in ftest_0_entry() 2523 status += fx_file_read(&my_file, buffer, 128*3, &actual); in ftest_0_entry() 2528 status += fx_file_read(&my_file, buffer, 128*3, &actual); in ftest_0_entry()
|
D | filex_fault_tolerant_enable_3_test.c | 101 UCHAR buffer[2048]; in ftest_0_entry() local 888 dir_entry.fx_dir_entry_name = (CHAR *)buffer; in ftest_0_entry()
|
/FileX-v6.2.1/docs/ |
D | revision_history.txt | 72 …x_fault_tolerant_write_log_file.c Fixed read overflow of fault tolerant memory buffer. 87 fx_ram_driver.c Checked buffer overflow. 615 buffer, and changed UL to ULONG cast.
|