shithub: aubio

Download patch

ref: e9572462f613c7c552cf0d8e9c02e3a037e46272
parent: 4ca4a4a5d80fedee87f434b512e3335d927af82a
author: Paul Brossier <piem@piem.org>
date: Sun Dec 16 14:39:28 EST 2018

[io] prevent possible crash on empty string in source_apple_audio

--- a/src/io/source_apple_audio.c
+++ b/src/io/source_apple_audio.c
@@ -59,7 +59,7 @@
 {
   aubio_source_apple_audio_t * s = AUBIO_NEW(aubio_source_apple_audio_t);
 
-  if (path == NULL) {
+  if (path == NULL || strnlen(path, PATH_MAX) < 1) {
     AUBIO_ERROR("source_apple_audio: Aborted opening null path\n");
     goto beach;
   }