nyxiscoo1 / obfuscar

Automatically exported from code.google.com/p/obfuscar
0 stars 0 forks source link

Cannot map the rva to any section #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Obfuscating with Mono.Cecilc
2. Recieve this error
C:\Copy\KdG\Dev\kdguntu\v20131128\screenshotmaker\bin>Obfuscar obfuscar.xml
Loading project...Loading assemblies...
Onverwerkte uitzondering: System.ArgumentOutOfRangeException: Het opgegeven 
argument ligt buiten het bereik van geldige waarden.
Parameternaam: Cannot map the rva to any section
   bij Mono.Cecil.Binary.Image.ResolveVirtualAddress(RVA rva)
   bij Mono.Cecil.Binary.ImageReader.SetPositionToAddress(RVA address)
   bij Mono.Cecil.Binary.ImageReader.VisitImportAddressTable(ImportAddressTable
iat)
   bij Mono.Cecil.Binary.Image.Accept(IBinaryVisitor visitor)
   bij Mono.Cecil.Binary.ImageReader.Read(String file)
   bij Mono.Cecil.BaseAssemblyResolver.GetCorlib(AssemblyNameReference reference
)
   bij Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name)
   bij Mono.Cecil.DefaultAssemblyResolver.Resolve(AssemblyNameReference name)
   bij Obfuscar.AssemblyCache.GetTypeDefinition(TypeReference type)
   bij Obfuscar.InheritMap.GetVirtualMethods(AssemblyCache cache, TreeSet`1 meth
ods, TypeDefinition type)
   bij Obfuscar.InheritMap..ctor(Project project)
   bij Obfuscar.Project.LoadAssemblies()
   bij Obfuscar.Obfuscator..ctor(String projfile)
   bij Obfuscar.Program.Main(String[] args)

What is the expected output? What do you see instead?
Expected to see obfuscated .exe in the folder,
but got the error message above

What version of the product are you using? On what operating system?
Windows 8.1, Mono.Cecil 0.5.0.1, Obfuscar.exe 1.3.2.0

Please provide any additional information below.

Original issue reported on code.google.com by yves.sch...@gmail.com on 23 Jan 2014 at 9:39

GoogleCodeExporter commented 8 years ago
You should try to switch to the fork maintained by me,

https://obfuscar.codeplex.com/

It uses latest Cecil which should have already resolved issues like this.

Original comment by lextu...@gmail.com on 4 Feb 2014 at 11:17