Biohazrd
Biohazrd copied to clipboard
Test handling weird sizes for implementation-defined sizes
Technically the standard does not define the size of some types, in particular: bool
, wchar_t
, and oddly enough: char16_t
/char32_t
.
In practice, these are all 1 byte, 2 bytes, 2 bytes, and 4 bytes respectively. However, we might consider exploring the Clang command line to see if there's a way to force them to be weird sizes and ensure we handle those scenarios appropriately.
Related: https://github.com/InfectedLibraries/Biohazrd/issues/108 / https://github.com/InfectedLibraries/Biohazrd/issues/156