Page MenuHomeFreeBSD

udf: Reject read requests with an invalid length
ClosedPublic

Authored by jhb on Jul 27 2023, 11:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 20, 10:01 PM
Unknown Object (File)
Thu, Nov 20, 10:01 PM
Unknown Object (File)
Thu, Nov 20, 10:01 PM
Unknown Object (File)
Thu, Nov 20, 9:53 PM
Unknown Object (File)
Thu, Nov 6, 7:12 PM
Unknown Object (File)
Fri, Oct 31, 5:42 AM
Unknown Object (File)
Oct 11 2025, 4:12 AM
Unknown Object (File)
Oct 11 2025, 4:12 AM
Subscribers

Details

Summary
  • If the size is negative or if rounding it up to a multiple of the block size overflows, fail the read request with ERANGE.
  • While here, add a sanity check that the ICB length for the root directory is at least as long as a minimum-sized file entry.

PR: 257768
Reported by: Robert Morris <rtm@lcs.mit.edu>
Sponsored by: FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable