From c82b03a74ce8e45cc6e22ddea3064f154a1a55e4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 8 Jan 2017 14:36:04 +0100 Subject: [PATCH] decoder/wavpack: fix crash bug --- NEWS | 2 ++ src/decoder/plugins/WavpackDecoderPlugin.cxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index d03044778..773264f7a 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ ver 0.20.1 (not yet released) * input - curl: fix crash bug +* decoder + - wavpack: fix crash bug * storage - curl: new storage plugin for WebDAV (work in progress) * mixer diff --git a/src/decoder/plugins/WavpackDecoderPlugin.cxx b/src/decoder/plugins/WavpackDecoderPlugin.cxx index 53e865fc6..7473c2373 100644 --- a/src/decoder/plugins/WavpackDecoderPlugin.cxx +++ b/src/decoder/plugins/WavpackDecoderPlugin.cxx @@ -536,7 +536,7 @@ wavpack_streamdecode(DecoderClient &client, InputStream &is) auto is_wvc = wavpack_open_wvc(client, is.GetURI()); if (is_wvc) { open_flags |= OPEN_WVC; - can_seek &= wvc->is.IsSeekable(); + can_seek &= is_wvc->IsSeekable(); wvc.reset(new WavpackInput(&client, *is_wvc)); }