-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-System.Runtimebugin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged
Milestone
Description
It is invalid to reinterpret cast a
ref byteto aref ushort/uint/ulongwithout first checking the alignment of the input buffer. This could cause problems on future architectures or IOT devices where unaligned reads incur faults. This code should pin and check alignment or should useUnsafe.WriteUnalignedinstead.
Metadata
Metadata
Assignees
Labels
area-System.Runtimebugin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged