Biohazrd icon indicating copy to clipboard operation
Biohazrd copied to clipboard

Test handling weird sizes for implementation-defined sizes

Open PathogenDavid opened this issue 3 years ago • 1 comments

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.

PathogenDavid avatar Nov 18 '20 14:11 PathogenDavid

Related: https://github.com/InfectedLibraries/Biohazrd/issues/108 / https://github.com/InfectedLibraries/Biohazrd/issues/156

PathogenDavid avatar Jun 21 '21 19:06 PathogenDavid