warn if buffer is modified