uxmal / reko

Reko is a binary decompiler.
https://uxmal.github.io/reko
GNU General Public License v2.0
2.1k stars 251 forks source link

An item with the same key has already been added. (Parameter 'key') - NE Executable Error #1277

Closed cesar-avalos3 closed 11 months ago

cesar-avalos3 commented 11 months ago

Hello, I'm trying to decompile an old WATCOM-compiled 16-Bit NE Windows executable, and I'm getting this error,

Error: An error occurred during decompilation.
    An item with the same key has already been added. Key: 0015:4F8A (Parameter 'key')
       at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
   at Reko.ImageLoaders.MzExe.NeImageLoader.LoadProgram(Address addrLoad) in d:\dev\uxmal\reko\master\src\ImageLoaders\MzExe\NeImageLoader.cs:line 293
 [...]

The executable is from "Dark Sun Crimson Sands", Mdark.exe. I have two different versions of the program, and both exhibit the same behavior.

Mdark.zip

Thanks.

uxmal commented 11 months ago

Thanks for submitting this report. I will look into it later today

uxmal commented 11 months ago

The issue has been fixed. Thanks again for reporting it.