]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: iso9660: check that iso->publisher_id and iso->application_id are not file...
authorPali Rohár <pali.rohar@gmail.com>
Tue, 8 Dec 2020 23:36:13 +0000 (00:36 +0100)
committerPali Rohár <pali.rohar@gmail.com>
Tue, 8 Dec 2020 23:36:13 +0000 (00:36 +0100)
commit5ff184b5b561494152e6e4a4217e4351948a6b31
tree5f00110dd695256a4a405aab3bed27bf67d82fd4
parent8d027a2135af110bf9f4b4a165e34a2f8c0f6203
libblkid: iso9660: check that iso->publisher_id and iso->application_id are not file paths

ECMA 119 (ISO 9660) says that if the first byte is set to (5F), the
remaining bytes of this field shall specify an identifier for a file
containing the data. As libblkid does not support reading files from the
filesystem itself it cannot parse fields which starts with 0x5F '_' char.

So for now ignore iso->publisher_id and iso->application_id values which
starts with '_' character.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
libblkid/src/superblocks/iso9660.c