Closed dewhisna closed 2 years ago
If using a bitset with an even number of bytes, for example bitset<16>, the original code tried to copy 3 bytes instead of 2 and would run off the end of the array.
Hello! Thanks for this PR. Nice catch!
If using a bitset with an even number of bytes, for example bitset<16>, the original code tried to copy 3 bytes instead of 2 and would run off the end of the array.