Skip to content
Commit fa236c2b authored by Arturo Giusti's avatar Arturo Giusti Committed by Jan Kara
Browse files

udf: Fix NULL pointer dereference in udf_symlink function

In function udf_symlink, epos.bh is assigned with the value returned
by udf_tgetblk. The function udf_tgetblk is defined in udf/misc.c
and returns the value of sb_getblk function that could be NULL.
Then, epos.bh is used without any check, causing a possible
NULL pointer dereference when sb_getblk fails.

This fix adds a check to validate the value of epos.bh.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=213083


Signed-off-by: default avatarArturo Giusti <koredump@protonmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent a149127b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment