.NET application crashed

Issues related to VMProtect
Post Reply
wwh1004
Posts: 2
Joined: Wed Aug 14, 2019 2:02 am

.NET application crashed

Post by wwh1004 »

Code: Select all

[BeginUltra]
private static void Main(string[] args)
{
	for (;;)
	{
		int a;
		switch (a = Console.Read())
		{
		case 49:
			Console.WriteLine("1");
			break;
		case 50:
			Console.WriteLine("2");
			break;
		case 51:
			Console.WriteLine("3");
			break;
		default:
			Console.WriteLine("s " + a.ToString());
			break;
		}
		Console.WriteLine("ok");
		Console.WriteLine();
	}
}
Code like this will cause crash.
ConsoleApp1.zip
(6.55 KiB) Downloaded 296 times
wwh1004
Posts: 2
Joined: Wed Aug 14, 2019 2:02 am

Re: .NET application crashed

Post by wwh1004 »

Enter some characters and app crashes.
Snipaste_2019-08-16_12-42-52.png
Snipaste_2019-08-16_12-42-52.png (38.73 KiB) Viewed 2773 times
Admin
Site Admin
Posts: 2585
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: .NET application crashed

Post by Admin »

Post Reply