Menu

#923 Possible null pointer dereference

Fixed
None
Medium
mad plugin
Defect
2017-06-23
2017-06-22
Jano Svitok
No

https://sourceforge.net/p/qmmp-dev/code/HEAD/tree/trunk/qmmp/src/plugins/Input/mad/decoder_mad.cpp#l252

if (!m_stream.next_frame)
{
        remaining = m_stream.bufend - m_stream.next_frame;
        memmove (m_input_buf, *m_stream.next_frame*, remaining);
}

is most probably null pointer dereference.

See https://github.com/mcallegari/qlcplus/issues/982 (LT;DR: compiling with gcc 7.x gives
"Fehler: Argument 2 ist null, aber nichtnull wird erwartet [-Werror=nonnull]"

Search for nonnull in https://gcc.gnu.org/gcc-7/changes.html

Discussion

  • trialuser02

    trialuser02 - 2017-06-23
    • status: New --> Fixed
    • assigned_to: trialuser02
     
  • trialuser02

    trialuser02 - 2017-06-23

    Fixed in [r7250]. Thank you!

     

    Related

    Commit: [r7250]


Log in to post a comment.