Add assertion around buffer processing