PR target/42811 (prerequisite)
PR target/42811 (prerequisite) * jvmti.cc (_Jv_GetJVMTIEnv): Avoid use of uninitialised memory. From-SVN: r157605
This commit is contained in:
parent
045a52c82e
commit
713812e244
|
@ -1,3 +1,8 @@
|
||||||
|
2010-03-21 Dave Korn <dave.korn.cygwin@gmail.com>
|
||||||
|
|
||||||
|
PR target/42811 (prerequisite)
|
||||||
|
* jvmti.cc (_Jv_GetJVMTIEnv): Avoid use of uninitialised memory.
|
||||||
|
|
||||||
2010-03-13 Matthias Klose <doko@ubuntu.com>
|
2010-03-13 Matthias Klose <doko@ubuntu.com>
|
||||||
|
|
||||||
PR libgcj/42676
|
PR libgcj/42676
|
||||||
|
|
|
@ -2210,6 +2210,7 @@ _Jv_GetJVMTIEnv (void)
|
||||||
{
|
{
|
||||||
_Jv_JVMTIEnv *env
|
_Jv_JVMTIEnv *env
|
||||||
= (_Jv_JVMTIEnv *) _Jv_MallocUnchecked (sizeof (_Jv_JVMTIEnv));
|
= (_Jv_JVMTIEnv *) _Jv_MallocUnchecked (sizeof (_Jv_JVMTIEnv));
|
||||||
|
memset (env, 0, sizeof (_Jv_JVMTIEnv));
|
||||||
env->p = &_Jv_JVMTI_Interface;
|
env->p = &_Jv_JVMTI_Interface;
|
||||||
struct jvmti_env_list *element
|
struct jvmti_env_list *element
|
||||||
= (struct jvmti_env_list *) _Jv_MallocUnchecked (sizeof (struct jvmti_env_list));
|
= (struct jvmti_env_list *) _Jv_MallocUnchecked (sizeof (struct jvmti_env_list));
|
||||||
|
|
Loading…
Reference in New Issue