From 4256526a0e94f5fbeb50fdccc0eec6cd5b654939 Mon Sep 17 00:00:00 2001 From: maminjie Date: Thu, 3 Dec 2020 10:00:40 +0800 Subject: [PATCH] fix MemorySanitizer warning and yaml separator field --- ...Sanitizer-use-of-uninitialized-value.patch | 24 +++++++++++++++++++ opusfile.spec | 6 ++++- opusfile.yaml | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 0001-fix-MemorySanitizer-use-of-uninitialized-value.patch diff --git a/0001-fix-MemorySanitizer-use-of-uninitialized-value.patch b/0001-fix-MemorySanitizer-use-of-uninitialized-value.patch new file mode 100644 index 0000000..c2690b5 --- /dev/null +++ b/0001-fix-MemorySanitizer-use-of-uninitialized-value.patch @@ -0,0 +1,24 @@ +From 73915cab4bb5af47c07c9aa5b1436c8f339b6af3 Mon Sep 17 00:00:00 2001 +From: maminjie +Date: Thu, 3 Dec 2020 01:30:52 +0000 +Subject: [PATCH] fix MemorySanitizer: use-of-uninitialized-value + +--- + src/opusfile.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/opusfile.c b/src/opusfile.c +index 8b000a2..889cb31 100644 +--- a/src/opusfile.c ++++ b/src/opusfile.c +@@ -479,6 +479,7 @@ static int op_fetch_headers_impl(OggOpusFile *_of,OpusHead *_head, + int *_cserialnos,ogg_page *_og){ + ogg_packet op; + int ret; ++ memset(&op,0,sizeof(ogg_packet)); + if(_serialnos!=NULL)*_nserialnos=0; + /*Extract the serialnos of all BOS pages plus the first set of Opus headers + we see in the link.*/ +-- +2.23.0 + diff --git a/opusfile.spec b/opusfile.spec index 1c800a3..90394ea 100644 --- a/opusfile.spec +++ b/opusfile.spec @@ -1,10 +1,11 @@ Name: opusfile Version: 0.11 -Release: 2 +Release: 3 Summary: A high-level API provides seeking, decode, and playback of Opus streams License: BSD URL: http://www.opus-codec.org/ Source0: http://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz +Patch0000: 0001-fix-MemorySanitizer-use-of-uninitialized-value.patch BuildRequires: libogg-devel openssl-devel opus-devel @@ -49,6 +50,9 @@ Development package for opusfile package. %{_libdir}/{libopusfile.so,libopusurl.so} %changelog +* Thu Dec 03 2020 maminjie - 0.11-3 +- fix MemorySanitizer: use-of-uninitialized-value + * Sat Nov 30 2019 daiqianwen - 0.11-2 - Package init diff --git a/opusfile.yaml b/opusfile.yaml index 5794458..005f70c 100644 --- a/opusfile.yaml +++ b/opusfile.yaml @@ -1,4 +1,4 @@ version_control: github src_repo: xiph/opusfile tag_prefix: ^v -seperator: . +separator: . -- Gitee