Fix StackOverflow in ApplicationTrustEnumerator
commit5e5033f5e5e6860c1de30a86dc46e5e397fd0b0e
authorEgor Bogatov <egorbo@gmail.com>
Thu, 19 Sep 2019 18:05:15 +0000 (19 21:05 +0300)
committerSteve Pfister <steveisok@users.noreply.github.com>
Thu, 19 Sep 2019 18:05:15 +0000 (19 14:05 -0400)
tree4f8e4a760e9eda8fd3d1662eb24f1f5da218d9de
parent06a814e66f8da460cb4d6f94141dc6ba9882cc0d
Fix StackOverflow in ApplicationTrustEnumerator

ApplicationTrustEnumerator used to call itself. The following snippet crashed with SO:

using System.Security.Policy;
public class Program {
        public static void Main (string[] args)
        {
            ApplicationTrustCollection col = ApplicationSecurityManager.UserApplicationTrusts;
            col.GetEnumerator ();
        }
}
mcs/class/corlib/System.Security.Policy/ApplicationTrustEnumerator.cs