| Previous | Next |
| kOSKextReturnNotFound | kOSKextReturnSerialization |
kOSKextReturnBadData
Malformed data, not a serialization status
kOSKextReturnBadData identifies malformed data. The XNU header deliberately distinguishes it from kOSKextReturnSerialization, which covers conversion or serialization and deserialization of URLs, strings, or XML. That difference is useful when preserving the original failing artifact.
The return value alone does not identify whether the bad data came from a bundle property, a binary payload, or an internal representation. Record the parser or validation stage before replacing or regenerating files.
Compare the two data paths
| Status | Focus of investigation |
|---|---|
kOSKextReturnBadData | The supplied data is malformed; XNU says this code is not used for XML. |
kOSKextReturnSerialization | Conversion or serialization/deserialization of a URL, string, or XML failed. |
kOSKextReturnValidation | The bundle reached validation but diagnostics report a validation failure. |
What to retain
- The exact input artifact and its provenance, with any sensitive material handled according to policy.
- The parser or API boundary that produced the status and the preceding diagnostic.
- Whether the same input fails before or after any URL/string/XML transformation.
References
Looking for a different code? Search another status or error code.