[reflection] Throw TLE for Type.GetType("", true) (Fixes #59664)
commit0c61eb1b122b8d98e2e3ad3f443c97bd21e471b2
authorAleksey Kliger <aleksey@xamarin.com>
Mon, 9 Oct 2017 23:15:41 +0000 (9 19:15 -0400)
committerMarek Safar <marek.safar@gmail.com>
Wed, 11 Oct 2017 06:57:50 +0000 (11 08:57 +0200)
tree4e81a8106b0abec432a013ab03e977226bf06a75
parente004f1ed5e1ee46344c2b5e291350e95d7877e24
[reflection] Throw TLE for Type.GetType("", true) (Fixes #59664)

In the C parser check for empty at the outset.
In the managed parser, copy an empty string component to the built-up TypeSpec
and handle it in the Type.GetType (..., asmResolver, typeResolver) implementation
mcs/class/corlib/ReferenceSources/Type.cs
mcs/class/corlib/System/TypeSpec.cs
mono/metadata/reflection.c