Page MenuHomeFreeBSD

fstyp: Fix some memory safety bugs
ClosedPublic

Authored by markj on Oct 26 2024, 4:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 1, 10:59 PM
Unknown Object (File)
Fri, Sep 25, 8:28 PM
Unknown Object (File)
Wed, Sep 23, 6:22 AM
Unknown Object (File)
Mon, Sep 7, 2:48 PM
Unknown Object (File)
Aug 28 2026, 8:20 AM
Unknown Object (File)
Aug 13 2026, 10:26 AM
Unknown Object (File)
Aug 11 2026, 3:54 AM
Unknown Object (File)
Aug 10 2026, 10:46 AM
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