libsndfile/sndfile-ocloexec.patch
Takashi Iwai 5f87630d19 - Enable MP3 encoding; add libmp3lame-devel and mpg123-devel to
buildreq
- Move python3-base buildreq to *-progs package

- Fix out-of-bounds read in function vorbis_analysis_wrote in
  ogg_vorbis.c (CVE-2024-50612, bsc#1232438):
  libsndfile-CVE-2024-50612.patch

- Enable MP3 encoding; add libmp3lame-devel and mpg123-devel to
  buildreq
- Move python3-base buildreq to *-progs package

- Fix out-of-bounds read in function vorbis_analysis_wrote in
  ogg_vorbis.c (CVE-2024-50612, bsc#1232438):
  libsndfile-CVE-2024-50612.patch

OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libsndfile?expand=0&rev=94
2024-11-25 16:21:45 +00:00

19 lines
460 B
Diff

---
src/file_io.c | 3 +++
1 file changed, 3 insertions(+)
Index: libsndfile-1.1.0/src/file_io.c
===================================================================
--- libsndfile-1.1.0.orig/src/file_io.c
+++ libsndfile-1.1.0/src/file_io.c
@@ -598,6 +598,9 @@ psf_open_fd (PSF_FILE * pfile)
return - SFE_BAD_OPEN_MODE ;
break ;
} ;
+#ifdef O_CLOEXEC
+ oflag |= O_CLOEXEC;
+#endif
if (mode == 0)
fd = open (pfile->path, oflag) ;