shithub: aubio

Download patch

ref: 31c306a70dadac0d81272d6104ad81d9a320f0f5
parent: bb96d027c3fb498e247b7a9cbb7393980f462eef
author: Paul Brossier <piem@piem.org>
date: Wed Nov 30 10:38:29 EST 2016

src/io/sink_apple_audio.c: avoid crash on empty file name

--- a/src/io/sink_apple_audio.c
+++ b/src/io/sink_apple_audio.c
@@ -63,7 +63,7 @@
   s->max_frames = MAX_SIZE;
   s->async = false;
 
-  if (uri == NULL) {
+  if ( (uri == NULL) || (strlen(uri) < 1) ) {
     AUBIO_ERROR("sink_apple_audio: Aborted opening null path\n");
     goto beach;
   }