[libbluray-devel] [Git][videolan/libbluray][master] Avoid branching based on uninitialized data

Petri Hintukainen gitlab at videolan.org
Mon Apr 5 13:40:21 UTC 2021



Petri Hintukainen pushed to branch master at VideoLAN / libbluray


Commits:
12b5bd8f by hpi1 at 2021-04-05T16:35:43+03:00
Avoid branching based on uninitialized data

Not an issue here (result is unused), just silence sanitizer ...

- - - - -


1 changed file:

- src/libbluray/bdj/bdj.c


Changes:

=====================================
src/libbluray/bdj/bdj.c
=====================================
@@ -772,7 +772,7 @@ static int _bdj_init(JNIEnv *env, struct bluray *bd, const char *disc_root, cons
 
 int bdj_jvm_available(BDJ_CONFIG *storage)
 {
-    const char *java_home;
+    const char *java_home = NULL;
     void* jvm_lib = _load_jvm(&java_home, storage->java_home);
     if (!jvm_lib) {
         BD_DEBUG(DBG_BDJ | DBG_CRIT, "BD-J check: Failed to load JVM library\n");



View it on GitLab: https://code.videolan.org/videolan/libbluray/-/commit/12b5bd8fc2317304386455a70f12a0e738dfb961

-- 
View it on GitLab: https://code.videolan.org/videolan/libbluray/-/commit/12b5bd8fc2317304386455a70f12a0e738dfb961
You're receiving this email because of your account on code.videolan.org.




More information about the libbluray-devel mailing list