3 ms·
The "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.
by gary_0 3y ago
The "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.