Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133201

Recording audio can crash if audio was previously recorded with a codec with a bigger buffer size

    XMLWordPrintable

Details

    • All
    • 5d599c305 (dev), 10c9ff0db (6.9), d137a96d8 (6.8), c68dfb564 (dev), 75e7010db (tqtc/lts-6.5), b818fde98 (6.9), 4d803d788 (6.8)
    • Multimedia wk 5-6

    Description

      To reproduce, use AudioRecorder app.
      1. Select audio codec A-EC3 (has a buffer size of 12288 bytes
      2. Record audio and stop
      3. Select audio codec AAC (has a buffer size of 8192)
      4. Record audio and stop
      5. If app did not crash, repeat from 1

      The reason is a bug in the logic for sending audio buffers. An internal 'm_pcm' array is used to accumulate data, but if this array size is greater than the current buffer size, the application crashes when copying a negative number of bytes.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-133201
          # Subject Branch Project Status CR V

          Activity

            People

              johanseg Jøger Hansegård
              johanseg Jøger Hansegård
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: