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)
Sat, Dec 7, 2:31 PM
Unknown Object (File)
Thu, Dec 5, 4:49 PM
Unknown Object (File)
Sat, Nov 16, 8:18 AM
Unknown Object (File)
Tue, Nov 12, 5:08 PM
Unknown Object (File)
Sat, Nov 9, 8:04 PM
Unknown Object (File)
Nov 6 2024, 9:27 PM
Unknown Object (File)
Nov 5 2024, 7:00 PM
Unknown Object (File)
Oct 30 2024, 10:49 AM
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 Not Applicable
Unit
Tests Not Applicable