Open VinceQu opened 1 year ago
Indeed, that is an expected side effect of #1336, and should be fixed.
Implementing DOS disks using fs_mapper
is not quite intuitive since its API doesn't make much sense in that context. Until we figure this out, you may use the workaround you mentioned: turning the disk index (usually 0x80) into a string. As long as it is consistent, it should work just fine.
I am changing the issue subject to reflect that.
I encountered this issue too. Had to check out old_dev
branch for the DOS examples to work.
*Describe the bug The 8086 DOS/MBR example in the qiling/examples folder is not running correctly.
Fresh install with pip. Ubuntu 22.04 in WSL.
Sample Code
Expected behavior The example should run.
Additional context Lines 86 and 87 of qiling/loader/dos.py
It seems like the "has_mapping()" function expects a "str" not an "int" as os.fspath() is later called with the passed value as an argument. Sadly i am not very familiar with the internal structure of qiling. I am guessing that simply turning the 0x80 into a string ("0x80") might lead to other problems further down the line.