Hi,
I would like to report a bug in mono.cecil. The error is in class
UserStringHeap.cs and at function
********
string ReadStringAt (int offset)
{
int length = Utilities.ReadCompressedInteger
(this.Data, offset,
out offset) - 1;
if (length < 1)
return string.Empty;
char [] chars = new char [length / 2];
for (int i = offset, j = 0; i < offset + length; i += 2)
chars [j++] = (char) (Data [i] | (Data [i + 1]
<< 8)); <-- it
gives Index Ouf Of Ranges back.
return new string (chars);
}
*********
The error occurs when I try to analyze this file:
http://www.box.net/shared/c5f44xlomc
. This file may be a trojan. I am not sure. I am analyzing it. So be
careful when working with it. I used the block code below to define
where is an error in Mono.Cecil.
**********
AssemblyDefinition ad = AssemblyFactory.GetAssembly("C:\\Users\\TN\
\Desktop\\WOWDoS.exe"); <-- Load is OK.
AssemblyFactory.SaveAssembly(ad, "C:\\Users\\TN\\Desktop\
\WOWDoS_new.exe"); <--- Fail in saving.
**********
I hope the developers fix this error soon.
Regards.
TN
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---