Page MenuHomeFreeBSD

fstyp: Fix some memory safety bugs
ClosedPublic

Authored by markj on Oct 26 2024, 4:39 PM.
Tags
None
Referenced Files
F159293284: D47292.id145483.diff
Fri, Jun 12, 12:25 PM
Unknown Object (File)
Sat, May 23, 2:42 AM
Unknown Object (File)
May 8 2026, 3:02 AM
Unknown Object (File)
Apr 30 2026, 9:11 PM
Unknown Object (File)
Apr 30 2026, 11:12 AM
Unknown Object (File)
Apr 25 2026, 7:01 AM
Unknown Object (File)
Apr 25 2026, 7:01 AM
Unknown Object (File)
Apr 20 2026, 2:41 PM
Subscribers

Details

Summary

In the hammer2 label reader, make sure to check for a NULL return from
read_buf().

In the NTFS label reader,

  • Avoid an infinite loop if a record length is 0.
  • Avoid walking past the end of the buffer.
  • When a label is found, avoid reading past the end of the buffer.

PR: 278281

Diff Detail

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