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)
Sun, Jun 30, 5:04 PM
Unknown Object (File)
Fri, Jun 28, 8:40 AM
Unknown Object (File)
May 8 2024, 4:38 PM
Unknown Object (File)
Jan 12 2024, 6:12 AM
Unknown Object (File)
Dec 20 2023, 5:39 AM
Unknown Object (File)
Nov 26 2023, 3:58 AM
Unknown Object (File)
Oct 2 2023, 8:03 PM
Unknown Object (File)
Sep 6 2023, 10:11 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