forked from pool/aubio
- Fix minor security issues leading to segfault or buffer overread (CVE-2018-14522, bsc#1102359, CVE-2018-14523, bsc#1102364): 0001-src-pitch-pitchyinfft.c-fix-out-of-bound-read-when-s.patch 0002-src-pitch-pitchyinfft.c-comment-out-debug-output.patch 0001-src-notes-notes.c-bail-out-if-pitch-creation-failed-.patch 0002-src-io-source_wavread.c-also-exit-if-samplerate-is-n.patch - Refresh the previous fixes from the upstream version aubio-wavread-input-validation.patch aubio-resampler-NULL-deref-fix.patch OBS-URL: https://build.opensuse.org/request/show/627873 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/aubio?expand=0&rev=25
26 lines
850 B
Diff
26 lines
850 B
Diff
From 25f280f347868fc0f4ecdcb0b45d5a9400f8f772 Mon Sep 17 00:00:00 2001
|
|
From: Paul Brossier <piem@piem.org>
|
|
Date: Mon, 6 Aug 2018 14:03:48 +0200
|
|
Subject: [PATCH] src/notes/notes.c: bail out if pitch creation failed (see
|
|
#188)
|
|
|
|
---
|
|
src/notes/notes.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/notes/notes.c b/src/notes/notes.c
|
|
index f6b7d5673cff..343e5a00bc2f 100644
|
|
--- a/src/notes/notes.c
|
|
+++ b/src/notes/notes.c
|
|
@@ -83,6 +83,7 @@ aubio_notes_t * new_aubio_notes (const char_t * method,
|
|
o->onset_output = new_fvec (1);
|
|
|
|
o->pitch = new_aubio_pitch (pitch_method, o->pitch_buf_size, o->hop_size, o->samplerate);
|
|
+ if (o->pitch == NULL) goto fail;
|
|
if (o->pitch_tolerance != 0.) aubio_pitch_set_tolerance (o->pitch, o->pitch_tolerance);
|
|
aubio_pitch_set_unit (o->pitch, "midi");
|
|
o->pitch_output = new_fvec (1);
|
|
--
|
|
2.18.0
|
|
|