Merge "Don't allow using or allocating a buffer after the first state transition" into nyc-dev am: 3294a9fe16 am: b706fb9d69 am: faf128c93d am: 75aa7716c4 am: 06dbccbed1
am: c8f974de4e

Change-Id: Ib8e8136a593f8ea685dce9fb85d0be257b88c6d0