Changeset 4c37e87


Ignore:
Timestamp:
Dec 17, 2018, 3:10:07 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
56fa1e0
Parents:
40bdc14
Message:

[io] sink_vorbis: prevent crash on null path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_vorbis.c

    r40bdc14 r4c37e87  
    6666{
    6767  aubio_sink_vorbis_t * s = AUBIO_NEW(aubio_sink_vorbis_t);
     68
     69  if (!uri) {
     70    AUBIO_ERROR("sink_apple_audio: Aborted opening null path\n");
     71    goto failure;
     72  }
    6873
    6974  s->path = AUBIO_ARRAY(char_t, strnlen(uri, PATH_MAX) + 1);
Note: See TracChangeset for help on using the changeset viewer.