Kernel: bug in new iso9660 driver #265

Closed
opened 2025-06-13 18:50:17 +02:00 by Doczom · 1 comment
Owner

The names of files and directories obtained by reading the directory do not correspond to the actual file names for the iso9660 without support for the joliet extension

iso image for test

The names of files and directories obtained by reading the directory do not correspond to the actual file names for the iso9660 without support for the joliet extension [iso image for test ](https://t.me/kolibri_os/138116)
Doczom added the
FS
Category/Drivers
FASM
Kind
Bug
Priority
High
HardwareTested
labels 2025-06-13 18:50:17 +02:00
Doczom self-assigned this 2025-06-13 18:50:17 +02:00
Author
Owner

a possible problem has been found. Instead of the movsb instruction, the movsd instruction is used in the following code
It may be worth replacing the jbe instruction with jb

;-----------------------------------------------------------------------------
        ; copy real name
        movzx   ecx, byte[ebx - 1]
        cmp     [ebp + ISO9660.type_encoding], 0
        jnz     .ucs2
        cmp     eax, 2
        je      .ascii2utf16
@@:
        sub     ecx, 1 ; CF + ZF
        jbe     @f
        movsd
        cmp     byte[esi], ';'
        jne     @b
@@:
        mov     byte[edi], 0
        jmp     .end_copy
a possible problem has been found. Instead of the movsb instruction, the movsd instruction is used in the following code It may be worth replacing the jbe instruction with jb ```fasm ;----------------------------------------------------------------------------- ; copy real name movzx ecx, byte[ebx - 1] cmp [ebp + ISO9660.type_encoding], 0 jnz .ucs2 cmp eax, 2 je .ascii2utf16 @@: sub ecx, 1 ; CF + ZF jbe @f movsd cmp byte[esi], ';' jne @b @@: mov byte[edi], 0 jmp .end_copy ```
Doczom added a new dependency 2025-06-14 20:29:53 +02:00
Sweetbread removed a dependency 2025-06-23 13:28:06 +02:00
Burer closed this issue 2025-06-23 13:30:18 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#265
No description provided.