lzf: update pointer p after realloc
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 4 Nov 2016 21:58:49 +0000 (22:58 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 26 Nov 2016 23:28:04 +0000 (00:28 +0100)
commit1af13ea53930963981f929f78c08ca883751fdbe
tree33e085876522ac20eef0d39fc164229e335eff4c
parentcb0b8182448cd3888837f8c33cd8686ba0eb04a1
lzf: update pointer p after realloc

This fixes heap-use-after-free detected by AddressSanitizer.

Reviewed-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit bb6a7b6f75ac544c956e3eefee297700ef4d3468)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/lzf.c