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)
Wed, May 13, 6:19 PM
Unknown Object (File)
Wed, May 13, 4:42 PM
Unknown Object (File)
Tue, May 12, 2:19 PM
Unknown Object (File)
Thu, May 7, 9:15 AM
Unknown Object (File)
Wed, May 6, 2:03 AM
Unknown Object (File)
Wed, May 6, 12:20 AM
Unknown Object (File)
May 4 2026, 3:00 PM
Unknown Object (File)
May 3 2026, 1:29 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 52879
Build 49770: arc lint + arc unit