Page MenuHomeFreeBSD

linker: Handle a truncated hints file properly
ClosedPublic

Authored by markj on Oct 22 2024, 3:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 9, 9:50 AM
Unknown Object (File)
Sat, Dec 7, 2:31 PM
Unknown Object (File)
Thu, Dec 5, 4:49 PM
Unknown Object (File)
Nov 16 2024, 8:18 AM
Unknown Object (File)
Nov 12 2024, 5:08 PM
Unknown Object (File)
Nov 9 2024, 8:04 PM
Unknown Object (File)
Nov 6 2024, 9:27 PM
Unknown Object (File)
Nov 5 2024, 7:00 PM
Subscribers

Details

Summary

If vattr.va_size is 0, we will end up accessing invalid memory. This is
mostly harmless (because malloc(0) still allocates some memory), but it
triggers a KASAN report.

PR: 282268

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60151
Build 57035: arc lint + arc unit