Site icon EfmSoft

What does NTSTATUS 0x80000002 (STATUS_DATATYPE_MISALIGNMENT) mean?

 
Previous Next
STATUS_GUARD_PAGE_VIOLATION STATUS_BREAKPOINT

STATUS_DATATYPE_MISALIGNMENT

A data access violated an alignment requirement

This warning-severity exception describes a misaligned data access. Whether the processor can execute the access, whether Windows fixes it up, and whether software sees an exception depends on the architecture and alignment policy. Packed structures, incorrect pointer casts, truncated addresses, and binary data parsed without alignment-aware copies are common causes.

Do not assume that an access working on x86 proves the code is portable. Record the operand width and address modulus, then trace how the pointer was derived. If the data comes from a packed file or network structure, copying into an aligned local object is usually safer than dereferencing a cast pointer. A random-looking address instead suggests broader pointer corruption.

What to inspect

References


Looking for a different code? Search another status or error code.

Exit mobile version