The Windows implementation of CSecureJNIEnv::DetermineSecurityPolicy casts a jboolean* to a JDBool*. A jboolean is a char and a JDBool is an int. This results in a stack stomp which was reported by the Microsoft Run-Time checking facilities. This needs to be fixed in order to make further progress in debugging.
Fix is straightforward and is to use temporaries of type JDBool.