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, Apr 30, 8:28 AM
Unknown Object (File)
Mon, Apr 27, 9:08 AM
Unknown Object (File)
Fri, Apr 10, 4:36 AM
Unknown Object (File)
Mon, Apr 6, 5:50 PM
Unknown Object (File)
Mon, Apr 6, 5:43 PM
Unknown Object (File)
Mon, Apr 6, 8:53 AM
Unknown Object (File)
Mon, Apr 6, 7:49 AM
Unknown Object (File)
Thu, Apr 2, 12:32 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