3 ms·
Then it’s invalid, same as if it includes unexpected characters or isn’t a multiple of five characters long.
by dullcrisp 3y ago
Then it’s invalid, same as if it includes unexpected characters or isn’t a multiple of five characters long.
- gary_0 3y agoThe "reference implementation" in C seems to just let the int wrap around. It also does an out of bounds array access if the string contains non-ASCII chars.
- dullcrisp 3y agoSounds like the reference implementation only specifies what should be done with valid values then? I’d avoid using it in production without separate validation.