Page MenuHomeFreeBSD

fstyp: Fix some memory safety bugs
ClosedPublic

Authored by markj on Sat, Oct 26, 4:39 PM.
Tags
None
Referenced Files
F102642916: D47292.id145534.diff
Fri, Nov 15, 6:07 AM
Unknown Object (File)
Thu, Nov 7, 5:38 AM
Unknown Object (File)
Fri, Nov 1, 12:26 PM
Unknown Object (File)
Fri, Nov 1, 12:26 PM
Unknown Object (File)
Fri, Nov 1, 12:25 PM
Unknown Object (File)
Fri, Nov 1, 12:20 PM
Unknown Object (File)
Wed, Oct 30, 2:29 AM
Unknown Object (File)
Sat, Oct 26, 4:39 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