Fix some possible out-of-bounds access to data

These were found during an external code review.

The reported out-of-bounds access to data could lead to a segmentation
violation if the data (received from the other party) was aligned near the end
of a memory page and the following page is read-protected and the ZRTP packet
is inconsistent.