[I should write a proper description here, but there are comments in the source]
Tested with afl! Found stuff
It was an off by one when zero-terminating a buffer! Now it's ok!