[GHC] #9696: readRawBufferPtr and writeRawBufferPtr allocate memory