Buffer handling in place

Does not seem to work properly though
Fix access outside jumplist
Fixes invalid reads and writes