Page MenuHomeFreeBSD

Fix a buffer overrun.
ClosedPublic

Authored by jhb on Aug 26 2020, 4:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 11:41 AM
Unknown Object (File)
Dec 20 2023, 6:10 AM
Unknown Object (File)
Dec 14 2023, 3:53 PM
Unknown Object (File)
Jul 9 2023, 8:09 PM
Unknown Object (File)
Jul 4 2023, 7:44 AM
Unknown Object (File)
Jul 4 2023, 7:42 AM
Unknown Object (File)
Jul 4 2023, 7:39 AM
Unknown Object (File)
Jul 4 2023, 7:31 AM
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

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 33173
Build 30522: arc lint + arc unit

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.