lz4: ensure length does not wrap
lz4: fix another possible overrun