In libsndfile before 1.0.28, an error in the "flac_buffer_copy()" function (flac.c) can be exploited to cause a stack-based buffer overflow via a specially crafted FLAC file.
https://security.gentoo.org/glsa/201707-04
https://secuniaresearch.flexerasoftware.com/secunia_research/2017-4/
https://github.com/erikd/libsndfile/commit/60b234301adf258786d8b90be5c1d437fc8799e0