From 3fdee1de316477cfa8cb68a9b1b4a712350e26f6 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 23 Jun 2017 20:21:42 +0000 Subject: fixed null pointer dereference (#923) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7250 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/mad/decoder_mad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/Input') diff --git a/src/plugins/Input/mad/decoder_mad.cpp b/src/plugins/Input/mad/decoder_mad.cpp index 5e1f392ca..afebf39ff 100644 --- a/src/plugins/Input/mad/decoder_mad.cpp +++ b/src/plugins/Input/mad/decoder_mad.cpp @@ -246,7 +246,7 @@ bool DecoderMAD::findHeader() { size_t remaining = 0; - if (!m_stream.next_frame) + if (m_stream.next_frame) { remaining = m_stream.bufend - m_stream.next_frame; memmove (m_input_buf, m_stream.next_frame, remaining); -- cgit v1.2.3-13-gbd6f