Page MenuHomeFreeBSD

fstyp: Fix some memory safety bugs
ClosedPublic

Authored by markj on Oct 26 2024, 4:39 PM.
Tags
None
Referenced Files
F161207346: D47292.diff
Wed, Jul 1, 4:07 PM
F161207319: D47292.diff
Wed, Jul 1, 4:06 PM
Unknown Object (File)
Tue, Jun 30, 5:35 PM
Unknown Object (File)
Tue, Jun 30, 9:10 AM
Unknown Object (File)
Mon, Jun 29, 8:48 AM
Unknown Object (File)
Mon, Jun 29, 4:17 AM
Unknown Object (File)
Fri, Jun 26, 5:03 PM
Unknown Object (File)
Fri, Jun 12, 12:25 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