GNOME Bugzilla – Bug 730574
hlsdemux: Saving IV from media sequence number is done out of file->iv structure
Last modified: 2014-05-22 12:47:15 UTC
[10:59] <damianZiobro> hi I am analyzing code of hlsdemux and I found bug there [10:59] <damianZiobro> in gst-plugins-bad version 1.3.2 [11:00] <damianZiobro> file ext/hls/m3u8.c line 352 [11:00] <damianZiobro> there is such code there: [11:00] <damianZiobro> guint8 *iv = file->iv + 12; GST_WRITE_UINT32_BE (iv + 12, file->sequence); [11:00] <damianZiobro> so we are basically moving 12 bytes two times [11:00] <damianZiobro> file->iv structure has 16 bytes [11:01] <damianZiobro> so wile we are moving 12 bytes 2 times we are out of structure which we are trying to write to [11:01] <damianZiobro> I think it is bug [11:01] <damianZiobro> moving 12 bytes should be done only once SOLUTION: Patch with the solution of this bug I pasted here: http://pastebin.com/6APZeHar
SOLUTION: Patch with the solution of this bug I pasted here: http://pastebin.com/6APZeHar
You can also just attach patches to bugzilla btw :) commit 5b547a553d200d0011f57617999b334eb6599533 Author: Damian Ziobro <ziobro.damian@gmail.com> Date: Thu May 22 11:54:40 2014 +0100 hlsdemux: Fix storing of the IV based on the media sequence number https://bugzilla.gnome.org/show_bug.cgi?id=730574