FTPC: Fixed crash on large directories #243

Merged
Doczom merged 1 commits from b00bl1k/kolibrios:207-fix-ftpc-crash into main 2025-06-12 19:31:34 +02:00

View File

@@ -470,10 +470,14 @@ gui: ;//////////////////////////////////////////////////////////////////////////
dec edx dec edx
jnz @b jnz @b
inc ecx
lea esi, [edi-1] lea esi, [edi-1]
lea edi, [node_entry2+4] lea edi, [node_entry2+4]
@@: @@:
movsb movsb
dec ecx
; check if the file name is incomplete
jz .store_last_entry
cmp word[esi], 0x0a0d ; end of entry cmp word[esi], 0x0a0d ; end of entry
jne @b jne @b
mov byte[edi], 0 mov byte[edi], 0