Page MenuHomeFreeBSD

Fix a buffer overrun.
ClosedPublic

Authored by jhb on Aug 26 2020, 4:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 18, 1:47 AM
Unknown Object (File)
Tue, Apr 14, 1:16 PM
Unknown Object (File)
Tue, Apr 14, 12:21 AM
Unknown Object (File)
Sat, Apr 11, 12:49 PM
Unknown Object (File)
Sat, Apr 11, 9:49 AM
Unknown Object (File)
Sun, Apr 5, 9:15 AM
Unknown Object (File)
Sun, Apr 5, 8:36 AM
Unknown Object (File)
Sat, Apr 4, 3:24 PM
Subscribers

Details

Summary

fgetln() returns 'len' valid characters. line[len] is out of bounds.

Reported by: CHERI
Obtained from: CheriBSD

Test Plan
  • tests failed when compiled under CHERI and pass afterwards

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Aug 26 2020, 4:40 PM
jhb created this revision.
This revision is now accepted and ready to land.Aug 26 2020, 5:54 PM
This revision was automatically updated to reflect the committed changes.