fixed heap-use-after-free issue 40/320940/4 accepted/tizen_unified_x_asan accepted/tizen/unified/20241204.183306 accepted/tizen/unified/x/20241218.032535 accepted/tizen/unified/x/asan/20241224.004302
authorSejun Park <sejun79.park@samsung.com>
Tue, 26 Nov 2024 01:23:10 +0000 (10:23 +0900)
committerSejun Park <sejun79.park@samsung.com>
Thu, 28 Nov 2024 04:00:53 +0000 (13:00 +0900)
Change-Id: I0bcbbc171fe64979cf0e6a7ef463fdb722abbb1e

client/stt.c
packaging/stt.spec

index 128264a746636b6b994e9f03edad8b4b9a89b40a..f0384beb8ea430ec718daee0e3872bf7600c8af2 100644 (file)
@@ -880,7 +880,8 @@ int stt_set_server_stt(stt_h stt, const char* key, char* user_data)
 
 static Eina_Bool __stt_connect_daemon(void *data)
 {
-       stt_client_s* client = (stt_client_s*)data;
+       stt_h stt = (stt_h)data;
+       stt_client_s* client = stt_client_get(stt);
        int ret = -1;
 
        if (NULL == client) {
@@ -970,7 +971,7 @@ int stt_prepare(stt_h stt)
        SLOG(LOG_INFO, TAG_STTC, "===== Prepare STT");
 
        ecore_thread_main_loop_begin();
-       g_connect_timer = ecore_timer_add(0.02, __stt_connect_daemon, (void*)client);
+       g_connect_timer = ecore_timer_add(0.02, __stt_connect_daemon, client->stt);
        ecore_thread_main_loop_end();
 
        SLOG(LOG_INFO, TAG_STTC, "=====");
index 0c20de88481b4e27a4e8cfd8662ef1b43dbfa183..d286462ca7de1c4f8e88c711e43db1886655ea5b 100644 (file)
@@ -1,6 +1,6 @@
 Name:       stt
 Summary:    Speech To Text client library and daemon
-Version:    1.90.2
+Version:    1.100.1
 Release:    1
 Group:      Graphics & UI Framework/Voice Framework
 License:    Apache-2.0