Page MenuHomeFreeBSD

Fix a buffer overrun.
ClosedPublic

Authored by jhb on Aug 26 2020, 4:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 25 2024, 1:49 PM
Unknown Object (File)
Nov 23 2024, 12:34 PM
Unknown Object (File)
Nov 20 2024, 5:41 PM
Unknown Object (File)
Nov 19 2024, 3:16 PM
Unknown Object (File)
Nov 19 2024, 10:47 AM
Unknown Object (File)
Nov 5 2024, 12:13 PM
Unknown Object (File)
Nov 1 2024, 7:20 PM
Unknown Object (File)
Nov 1 2024, 7:19 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.