Andrew Hamilton b71bc0f8b4 fs/fshelp: Avoid possible NULL pointer deference
Avoid attempting to defererence a NULL pointer to call read_symlink() when
the given filesystem does not provide a read_symlink() function. This could
be triggered if the calling filesystem had a file marked as a symlink.
This appears possible for HFS and was observed during fuzzing of NTFS.

Signed-off-by: Andrew Hamilton <adhamilt@gmail.com>
Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2025-05-29 15:45:24 +02:00
..
2011-10-30 16:10:18 +01:00
2025-02-13 15:45:56 +01:00
2025-04-04 19:35:51 +02:00
2011-04-11 18:13:00 +02:00
2011-04-11 08:16:13 +02:00
2010-05-06 11:34:04 +05:30
2012-12-08 20:56:58 +01:00