jbevain/cecil — pull request #84 by leppie (2011-11-07 15:50:56+00:00)
Title: Small fix for custom attribute signatures

Hi

reader._siglength = 0, so when reader tries to readUint16, it returns garbage.

The attribute is generated in Reflection.Emit using new CustomAttributeBuilder(constructor, new byte[0]).

Did not check the spec on validity, but the assembly passes peverify.

Cheers

leppie