Page MenuHomeFreeBSD

fstyp: Fix some memory safety bugs
ClosedPublic

Authored by markj on Oct 26 2024, 4:39 PM.
Tags
None
Referenced Files
F150722943: D47292.id145483.diff
Fri, Apr 3, 3:15 PM
Unknown Object (File)
Thu, Apr 2, 9:52 AM
Unknown Object (File)
Mon, Mar 30, 5:10 AM
Unknown Object (File)
Sun, Mar 29, 6:14 PM
Unknown Object (File)
Tue, Mar 24, 11:29 PM
Unknown Object (File)
Wed, Mar 18, 9:25 PM
Unknown Object (File)
Mon, Mar 16, 2:40 PM
Unknown Object (File)
Mon, Mar 16, 2:34 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