AxDSan / obfuscar

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

Critical issue in name generator where 0 and 52 as index will generate 'A' as output #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pass 0 to the name generator
2. pass 52 to the name generator

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by carlokok@gmail.com on 15 Oct 2009 at 6:58

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry, but I cannot reproduce this:
UniqueName(0) returns "A"
UniqueName(52) returns "aA"
UniqueName(0, ".") returns "A"
UniqueName(52, ".") returns "a.A"

The last two results are used for type names. I admit that in some 
configurations
(e.g. XmlSerializer) it is not desirable to have the same type names in 
different
namespaces. The ReuseNames variable set to false disables this behavior. (see
Configuration in the Wiki)

Original comment by webbi...@gmail.com on 6 Nov 2009 at 3:21