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:38:55 +0000 (00:38 +0100)
commitef2d91e9c337f50edbc7631485bfec385601f4bb
tree261e1be5a38b24342f711c083cf4de20ec0652c0
parentdcc8d2418acac6539e2533fc046f3d00f1c0c333
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