diff options
author | Jaechul Lee <jcsing.lee@samsung.com> | 2023-06-19 15:18:35 +0900 |
---|---|---|
committer | Jaechul Lee <jcsing.lee@samsung.com> | 2023-06-19 15:18:35 +0900 |
commit | 3c30a70c8f3de487ac201ada50281e204855bcbc (patch) | |
tree | fac34181f67cddd5beef41e59faec50bcfe0b90b | |
parent | 7b392d8a697b0ff938ed8be9cacb0a390e54ac47 (diff) | |
download | rnnoise-tizen_8.0.tar.gz rnnoise-tizen_8.0.tar.bz2 rnnoise-tizen_8.0.zip |
Fix coverity issue (Uninitialized pointer read)tizen_9.0_m2_releasetizen_8.0_m2_releaseaccepted/tizen/unified/dev/20230726.115318accepted/tizen/unified/20230629.132050accepted/tizen/9.0/unified/20241030.232528accepted/tizen/8.0/unified/20231005.095517tizen_9.0tizen_8.0tizenaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedaccepted/tizen_8.0_unified
[Version] 0.0.4
[Issue Type] Coverity
Change-Id: Ibc940271aab502ed155c67036daac2cf3c6a72aa
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
-rw-r--r-- | packaging/rnnoise.spec | 4 | ||||
-rw-r--r-- | src/kiss_fft.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/packaging/rnnoise.spec b/packaging/rnnoise.spec index 96a9937..275cc78 100644 --- a/packaging/rnnoise.spec +++ b/packaging/rnnoise.spec @@ -1,7 +1,7 @@ %global date 20210312 Name: rnnoise Version: 0 -Release: 0.3 +Release: 0.4 Summary: Recurrent neural network for audio noise reduction License: BSD-3-Clause URL: https://gitlab.xiph.org/xiph/rnnoise @@ -27,7 +27,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} Devel files for %{name}. %prep -%autosetup -n %{name}-%{version}.%{date} -p1 +%setup -q cp %{SOURCE1} . cat > 'package_version' <<-EOF diff --git a/src/kiss_fft.c b/src/kiss_fft.c index d6b9f26..033cea0 100644 --- a/src/kiss_fft.c +++ b/src/kiss_fft.c @@ -449,6 +449,7 @@ kiss_fft_state *opus_fft_alloc_twiddles(int nfft,void * mem,size_t * lenmem, kiss_twiddle_cpx *twiddles; st->nfft=nfft; + st->bitrev = NULL; #ifdef FIXED_POINT st->scale_shift = celt_ilog2(st->nfft); if (st->nfft == 1<<st->scale_shift) @@ -506,7 +507,8 @@ void opus_fft_free(const kiss_fft_state *cfg, int arch) if (cfg) { opus_fft_free_arch((kiss_fft_state *)cfg, arch); - opus_free((opus_int16*)cfg->bitrev); + if (cfg->bitrev) + opus_free((opus_int16*)cfg->bitrev); if (cfg->shift < 0) opus_free((kiss_twiddle_cpx*)cfg->twiddles); opus_free((kiss_fft_state*)cfg); |