libblkid-tiny: ntfs: fix use-after-free
authorYousong Zhou <yszhou4tech@gmail.com>
Fri, 25 Oct 2019 10:48:47 +0000 (10:48 +0000)
committerJohn Crispin <john@phrozen.org>
Sun, 27 Oct 2019 11:24:26 +0000 (12:24 +0100)
commitd05276dc1d6de119da518d62930b9a8ef55ef7e9
tree33ba20295981d3586b6d212fc2ed141ba9728576
parent4327ed40d96c95803b2d4d09ddf997c895eea071
libblkid-tiny: ntfs: fix use-after-free

The memory pointed to by ns can be reallocated when checking mft records

Fixes FS#2129

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
libblkid-tiny/ntfs.c