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
Differential D47240
linker: Handle a truncated hints file properly Authored by markj on Oct 22 2024, 3:05 PM. Tags None Referenced Files
Details If vattr.va_size is 0, we will end up accessing invalid memory. This is PR: 282268
Diff Detail
|