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, 5 Nov 2016 17:56:26 +0000 (18:56 +0100)
commitbb6a7b6f75ac544c956e3eefee297700ef4d3468
treefec058f48360cf314adac164ad0ef0952e3d119b
parentc0f6eff6a7edaa38a9ea4865ffc2ad36539d9d48
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>
libavcodec/lzf.c