AndreyAkinshin / knockout-mvc

Power of Knockout.js for ASP.NET MVC
http://knockoutmvc.com
203 stars 125 forks source link

Bug fix: stack overflow issue #50

Open rhillaardvark opened 9 years ago

rhillaardvark commented 9 years ago

This fixes a bug where, given a type that contains a static property of its own type with a non-null value, the ConvertData function will cause a stack overflow when called on an object of that type. This case can arise in structs that contain references to global values, such as System.Guid.Empty (the System.Guid type does not cause this crash because it is excluded by the IsSystemType() function).