libui: add boundary check to GraphicBuffer::unflatten
am: bf8d7210c4

Change-Id: Ia2ccc52e854e324cebd978ca648de438c23ae660