fix MemorySanitizer warning and yaml separator field
This commit is contained in:
parent
f37e5bba77
commit
049299e074
24
0001-fix-MemorySanitizer-use-of-uninitialized-value.patch
Normal file
24
0001-fix-MemorySanitizer-use-of-uninitialized-value.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From 73915cab4bb5af47c07c9aa5b1436c8f339b6af3 Mon Sep 17 00:00:00 2001
|
||||
From: maminjie <maminjie1@huawei.com>
|
||||
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
|
||||
|
||||
@ -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 <maminjie1@huawei.com> - 0.11-3
|
||||
- fix MemorySanitizer: use-of-uninitialized-value
|
||||
|
||||
* Sat Nov 30 2019 daiqianwen <daiqianwen@huawei.com> - 0.11-2
|
||||
- Package init
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: xiph/opusfile
|
||||
tag_prefix: ^v
|
||||
seperator: .
|
||||
separator: .
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user