OSDN Git Service

Validated minimum size of mountpoint/symlink reparse points
authorJean-Pierre André <jpandre@users.sourceforge.net>
Sat, 11 Feb 2017 09:00:34 +0000 (10:00 +0100)
committerJean-Pierre André <jpandre@users.sourceforge.net>
Sat, 11 Feb 2017 09:00:34 +0000 (10:00 +0100)
commit376f4cbca7c524ab19846082d3e3ba054b765951
treeb4eb142263c17fb3a8a1b95b702d1b90558f6e5a
parent3c5fb9b3525a2eae712e054a46ccf73dcf39ee69
Validated minimum size of mountpoint/symlink reparse points

valid_reparse_data() would read past the end of the reparse point buffer
if it was passed a malformed reparse point that had the tag for a
mountpoint or a symlink but had a data buffer smaller than expected.
Fix this by validating the buffer size.

(contributed by Eric Biggers)
libntfs-3g/reparse.c