[vlc-commits] packetizer: av1: fix segfault on invalid OBU

Francois Cartegnie git at videolan.org
Wed Oct 10 16:15:34 CEST 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 10 10:31:23 2018 +0200| [6b0db1afda56b33882c16a0312e5c6c995790200] | committer: Tristan Matthews

packetizer: av1: fix segfault on invalid OBU

refs #21275

(cherry picked from commit 70e36e296718660bf4868a859aabcc9f948e3ca3)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=6b0db1afda56b33882c16a0312e5c6c995790200
---

 modules/packetizer/av1.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/packetizer/av1.c b/modules/packetizer/av1.c
index 961382dcbf..dd02827ecf 100644
--- a/modules/packetizer/av1.c
+++ b/modules/packetizer/av1.c
@@ -446,6 +446,7 @@ static block_t *PacketizeOBU(decoder_t *p_dec, block_t **pp_block)
         {
             msg_Warn(p_dec,"Invalid OBU header in sequence, discarding");
             /* frag is not OBU, drop */
+            p_sys->obus.p_chain = p_frag->p_next;
             if(p_frag->p_next == NULL)
                 p_sys->obus.pp_chain_last = &p_sys->obus.p_chain;
             else



More information about the vlc-commits mailing list