obfuscar: Still can not obfuscate based on public/private (one line fix, patch avail)
What steps will reproduce the problem?
1. use attrib="protected" (or public)
2. view output with monodis or other disassembler
Methods and fields are not obfuscated based on visibility, and only the
rx/name/type patterns are used.
This appears in release version 1.5.0, and svn rev 62 (latest).
MethodTester::CheckMethodVisibility always returns true. Change its last
line to return false, and the program works as expected.
Index: Obfuscar/MethodTester.cs
===================================================================
--- Obfuscar/MethodTester.cs (revision 62)
+++ Obfuscar/MethodTester.cs (working copy)
@@ -92,7 +92,7 @@
else
throw new
ApplicationException(string.Format("'{0}' is not valid for the 'attrib'
value of skip elements. Only 'public' and 'protected' are supported by
now.", attribute));
}
- return true;
+ return false; // does not match, is
private/internal/etc
}
}
}
Original issue reported on code.google.com by tekh...@gmail.com on 9 Nov 2009 at 9:52
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Comments: 18