Page MenuHomeFreeBSD

linker: Handle a truncated hints file properly
ClosedPublic

Authored by markj on Oct 22 2024, 3:05 PM.
Tags
None
Referenced Files
F107332364: D47240.diff
Sun, Jan 12, 3:06 PM
Unknown Object (File)
Fri, Jan 3, 6:31 PM
Unknown Object (File)
Dec 9 2024, 9:50 AM
Unknown Object (File)
Dec 7 2024, 2:31 PM
Unknown Object (File)
Dec 5 2024, 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
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