hxxx_nal: remove useless optim
authorThomas Guillem <thomas@gllm.fr>
Wed, 27 May 2020 11:02:08 +0000 (13:02 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Thu, 4 Jun 2020 12:24:17 +0000 (14:24 +0200)
commitd5c43c21c747ff30ed19fcca745dea3481c733e0
treeea70262548b539eeefaeeb866f5eb106266ef9eb
parent441907f4352107737523bf9cfb56eabe3563edb4
hxxx_nal: remove useless optim

This special case is now useless since p_source is always copied to p_dest,
right after in the memmove loop.

Furthermore, this caused an invalid payload size when the buffer was actually
reallocated since the payload calculation was comparing two different buffers
offset.

CVE-2020-13428

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
(cherry picked from commit 56822f03d7a498bb22257d6075723c0e1c7f91fe)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
modules/packetizer/hxxx_nal.c