From: Greg Hartman Date: Wed, 17 Jul 2019 22:55:17 +0000 (-0700) Subject: Fix potential uninitialized read X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fexternal-minigbm.git;a=commitdiff_plain;h=6acf248c84b316a464f740c678d47f48eabd19fa Fix potential uninitialized read BUG: 137793471 Test: Patched and can compile minigbm Change-Id: I65577ca08f4d41ff6a7b6d2a2af42f82798608bf --- diff --git a/helpers.c b/helpers.c index 4fabfa9..592981d 100644 --- a/helpers.c +++ b/helpers.c @@ -520,7 +520,8 @@ void drv_modify_combination(struct driver *drv, uint32_t format, struct format_m struct drv_array *drv_query_kms(struct driver *drv) { struct drv_array *kms_items; - uint64_t plane_type, use_flag; + uint64_t plane_type = UINT64_MAX; + uint64_t use_flag; uint32_t i, j, k; drmModePlanePtr plane;