compress/qat: fix buffer lengths in offset case