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)
Fri, Oct 18, 5:26 PM
Unknown Object (File)
Thu, Oct 17, 9:30 PM
Unknown Object (File)
Sun, Oct 13, 2:40 AM
Unknown Object (File)
Sun, Oct 13, 2:11 AM
Unknown Object (File)
Sun, Oct 13, 2:11 AM
Unknown Object (File)
Oct 5 2024, 6:47 AM
Unknown Object (File)
Oct 3 2024, 1:48 PM
Unknown Object (File)
Oct 3 2024, 7:23 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