Page MenuHomeFreeBSD

libdiff: Simplify truncation detection
ClosedPublic

Authored by des on Feb 4 2026, 6:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 14, 2:53 PM
Unknown Object (File)
Wed, May 13, 11:48 PM
Unknown Object (File)
Wed, May 13, 11:04 PM
Unknown Object (File)
Wed, May 13, 10:47 PM
Unknown Object (File)
Wed, May 13, 10:42 PM
Unknown Object (File)
Wed, May 13, 10:39 PM
Unknown Object (File)
Wed, May 13, 10:37 PM
Unknown Object (File)
Wed, May 13, 9:25 PM
Subscribers

Details

Summary
  • Adjust the comment to reflect the fact that SIGBUS can occur not only if the file is truncated, but also if an I/O error occurs while paging in any part of it.
  • Instead of setting a flag, just return EIO.

MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

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