Comment

Comment by RaisingSpear

The '& 0xfff' eliminates the highest byte, so it doesn't matter what it is.

Your code doesn't handle the 'length' parameter, so the problem isn't the highest byte, it's bytes beyond 'length'.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton