playlist/flac: copy the URI to fix use-after-free bug
Closes https://github.com/MusicPlayerDaemon/MPD/issues/508
This commit is contained in:
parent
38f0c16904
commit
0d98677212
2
NEWS
2
NEWS
|
@ -3,6 +3,8 @@ ver 0.21.6 (not yet released)
|
||||||
- allow loading playlists specified as absolute filesystem paths
|
- allow loading playlists specified as absolute filesystem paths
|
||||||
* input
|
* input
|
||||||
- cdio_paranoia: fix build failure due to missing #include
|
- cdio_paranoia: fix build failure due to missing #include
|
||||||
|
* playlist
|
||||||
|
- flac: fix use-after-free bug
|
||||||
* support abstract sockets on Linux
|
* support abstract sockets on Linux
|
||||||
|
|
||||||
ver 0.21.5 (2019/02/22)
|
ver 0.21.5 (2019/02/22)
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
#include <FLAC/metadata.h>
|
#include <FLAC/metadata.h>
|
||||||
|
|
||||||
class FlacPlaylist final : public SongEnumerator {
|
class FlacPlaylist final : public SongEnumerator {
|
||||||
const char *const uri;
|
const std::string uri;
|
||||||
|
|
||||||
FLAC__StreamMetadata *const cuesheet;
|
FLAC__StreamMetadata *const cuesheet;
|
||||||
const unsigned sample_rate;
|
const unsigned sample_rate;
|
||||||
|
|
Loading…
Reference in New Issue