udf: Verify symlink size before loading it

commit a1d47b2629 upstream.

UDF specification allows arbitrarily large symlinks. However we support
only symlinks at most one block large. Check the length of the symlink
so that we don't access memory beyond end of the symlink block.

Reported-by: Carl Henrik Lunde <chlunde@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Jan Kara 2014-12-19 12:21:47 +01:00 • committed by Luis Henriques
commit ec06d480b2