Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit aac4e419 authored by Naohiro Aota's avatar Naohiro Aota Committed by Christoph Hellwig
Browse files

hfsplus: Add additional range check to handle on-disk corruptions



'recoff' is read from disk and used for an argument to memcpy, so if
the value read from disk is larger than the page size, it result to
"general protection fault". This patch add additional range check for
the value, so that disk fuzz won't cause such fault.

Signed-off-by: default avatarNaohiro Aota <naota@elisp.net>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent dd7f3d54
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