cro: Fixed a crash when offset was set outside buffer.