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)
Fri, Oct 10, 8:24 AM
Unknown Object (File)
Mon, Sep 29, 2:01 AM
Unknown Object (File)
Fri, Sep 19, 12:33 AM
Unknown Object (File)
Sep 13 2025, 2:50 AM
Unknown Object (File)
Sep 7 2025, 5:58 AM
Unknown Object (File)
Sep 7 2025, 4:39 AM
Unknown Object (File)
Sep 6 2025, 9:19 PM
Unknown Object (File)
Sep 6 2025, 3:30 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