Skip to content
Commit cf5d29ae authored by Daniel Schulte's avatar Daniel Schulte Committed by Albert Astals Cid
Browse files

thumbnail: Fix heap-use-after-free in AudioCreator::create

There is a heap-use-after-free issue in `AudioCreator::create` resulting from storing the pointer to a temporary `QByteArray`'s data() in a pointer and accessing it after the byte-array has been freed (when the the temporary object was created on is over).

This fixes it by moving the `QByteArray` onto the stack, thus making it not temporary anymore, keeping it around until its data isn't needed anymore.

BUGS: 469458
(cherry picked from commit 3bd4906f)
parent dddfbfe3
Pipeline #480017 skipped
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment