Fix ASAN (heap-buffer-overflow) defect 08/186908/2 accepted/tizen/unified/20180822.093810 submit/tizen/20180817.045134 submit/tizen/20180821.040322
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 16 Aug 2018 10:32:39 +0000 (19:32 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Fri, 17 Aug 2018 03:43:59 +0000 (12:43 +0900)
[Version] 11.1-45
[Issue Type] ASAN

Change-Id: Ia1b2d315df5beb9fa302cdb2dd0786a13bee50df

packaging/pulseaudio.spec
src/pulsecore/core-util.c

index 8a75553..ebbcb88 100644 (file)
@@ -3,7 +3,7 @@
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          11.1
-Release:          44
+Release:          45
 Group:            Multimedia/Audio
 License:          LGPL-2.1
 URL:              http://pulseaudio.org
index d4cfa20..a1d2136 100644 (file)
@@ -1740,7 +1740,11 @@ char *pa_get_binary_name_malloc(void) {
             return NULL;
         }
 
+#ifdef __TIZEN__
+        if (strnlen(t, allocated - 1) < allocated - 1)
+#else
         if (strlen(t) < allocated - 1)
+#endif
             break;
 
         pa_xfree(t);