0xd4d / dnlib

Reads and writes .NET assemblies and modules
MIT License
2.13k stars 582 forks source link

Invalid section RVA #26

Closed barnacleboy closed 9 years ago

barnacleboy commented 9 years ago

Hi!

I'm trying to confuse a mixed-mode assembly with ConfuserEx. When the output assembly gets written I'm getting the error "Invalid section RVA" - also when disabling all protections, so I guess ConfuserEx may not be the source of the problem. What does this error message mean? The assembly is a .NET 3.5 standard C++/CLI mixed mode assembly that is signed with an Authenticode certificate. Are there any known issues or any known conditions when this error is raised?

Thank you in advance! P

0xd4d commented 9 years ago

The error is from: https://github.com/0xd4d/dnlib/blob/master/src/DotNet/Writer/NativeModuleWriter.cs#L344

It means that some sections RVA has now changed. Maybe @yck1509 (ConfuserEx author) knows more.

barnacleboy commented 9 years ago

Yep, I've found the line of code. Will repost it in the ConfuserEx issue section. Thanks!