Handle incorrectly encoded types.
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 3 Nov 2010 23:15:46 +0000 (21:15 -0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 3 Nov 2010 23:40:28 +0000 (21:40 -0200)
commit13585bc169faa2f09a829c78e5630ce47aa59394
tree9a209a3a4e8c1ba5800110374c231a2a6abf24bb
parentb9e194af1783c605e52318f9370ab8178ac6061f
Handle incorrectly encoded types.

* metadata.c (do_mono_metadata_parse_type): Fail if
a valuetype is encoded as MONO_TYPE_CLASS and vice-versa.
This can't be done easily in the verifier since it requires
resolving the destination type.

Fixes #650936
mono/metadata/metadata.c