]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: udf: Fix reading Logical Volume Integrity Descriptor Implementation Use...
authorPali Rohár <pali.rohar@gmail.com>
Mon, 13 Nov 2017 20:45:34 +0000 (21:45 +0100)
committerPali Rohár <pali.rohar@gmail.com>
Mon, 13 Nov 2017 20:45:34 +0000 (21:45 +0100)
commite44eb3e6e568a1dfa85d2ae76273578c7a55fbf4
tree6210f52c74dcbc7bb292d33eb74baa05aa27ddd4
parentb9bd8dc267a71611859496bff29e329868273714
libblkid: udf: Fix reading Logical Volume Integrity Descriptor Implementation Use (LVIDIU)

LVIDIU is stored at the end of Logical Volume Integrity Descriptor (LVID),
after two variable length array of partitions. And number of partitions is
stored in LVID, not in Logical Volume Descriptor (LVD).

Length of LVIDIU is also stored in LVID, so add check that LVIDIU has
enough size.

Fixes commit db316767434c2c451ec1732861256d5729143e89.
libblkid/src/superblocks/udf.c