libcameraservice: protect against potential previewBuffer overflow

The issue:
  If heap -> base() + offset is less than size,
  we overflow the memcpy src buffer.

The solution:
  Clear the target buffer, then copy only what
  we actually have.