fixup! Fix SVACE defects 24/270024/2 submit/tizen/20220124.093031 submit/tizen/20220126.072709
authorSeungbae Shin <seungbae.shin@samsung.com>
Mon, 24 Jan 2022 09:22:18 +0000 (18:22 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 24 Jan 2022 09:28:18 +0000 (18:28 +0900)
[Version] 15.0-2
[Issue Type] Vulnerability

Change-Id: I6f4296902e05800346fa96e9cf59a8f8d293d144

packaging/pulseaudio.spec
src/pulsecore/sound-file-stream.c
src/pulsecore/sound-file.c

index 686d94e..9a2946e 100644 (file)
@@ -4,7 +4,7 @@
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          15.0
-Release:          1
+Release:          2
 Group:            Multimedia/Audio
 License:          LGPL-2.1
 URL:              http://pulseaudio.org
index 55e0144..22d3c61 100644 (file)
@@ -300,6 +300,9 @@ int pa_play_file(
     pa_zero(sfi);
     if (!(u->sndfile = sf_open_fd(fd, SFM_READ, &sfi, 1))) {
         pa_log("Failed to open file %s", fname);
+#ifdef __TIZEN__
+        fd = -1;
+#endif
         goto fail;
     }
 
@@ -418,6 +421,9 @@ int pa_play_file_repeat(
     pa_zero(sfi);
     if (!(u->sndfile = sf_open_fd(fd, SFM_READ, &sfi, 1))) {
         pa_log("Failed to open file %s", fname);
+#ifdef __TIZEN__
+        fd = -1;
+#endif
         goto fail;
     }
 
index f678430..be7a2bd 100644 (file)
@@ -75,6 +75,9 @@ int pa_sound_file_load(
     pa_zero(sfi);
     if (!(sf = sf_open_fd(fd, SFM_READ, &sfi, 1))) {
         pa_log("Failed to open file %s", fname);
+#ifdef __TIZEN__
+        fd = -1;
+#endif
         goto finish;
     }