tizen-audio-routing: Initialize value to avoid a crash 89/238189/3 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.123839 accepted/tizen/6.0/unified/hotfix/20201103.051255 accepted/tizen/unified/20200710.114032 submit/tizen/20200709.084332 submit/tizen/20200709.084932 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 tizen_6.0.m2_release
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 9 Jul 2020 08:09:14 +0000 (17:09 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 9 Jul 2020 08:34:53 +0000 (17:34 +0900)
There was a call related case dereferencing this value without
initializing it in __reset_voice_devices_info().

[Version] 0.1.32
[Issue Type] Improvement

Change-Id: I1c6ea3448d072501985ec6c8287efc316bc62cbf
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/audio-hal-sc7727.spec
tizen-audio-routing.c

index a575d74..7a84689 100644 (file)
@@ -1,6 +1,6 @@
 Name:       audio-hal-sc7727
 Summary:    TIZEN Audio HAL for SC7727
-Version:    0.1.31
+Version:    0.1.32
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index a9e8e47..54ebdbf 100644 (file)
@@ -375,6 +375,8 @@ audio_return_t _audio_routing_init(audio_hal_t *ah)
     ah->device.active_out = 0x0;
     ah->device.mode = VERB_NORMAL;
     ah->device.is_radio_on = 0;
+    ah->device.init_call_devices = NULL;
+    ah->device.num_of_call_devices = 0;
 
     if ((audio_ret = _ucm_init(ah)))
         AUDIO_LOG_ERROR("failed to _ucm_init(), ret(0x%x)", audio_ret);