stratosphere/stratosphere — pull request #193 by mleich (2013-10-22 14:17:04+00:00)
Title: PactRecord allocating too few memory when writing UTF encoded strings

PactRecord serializes UTF strings by writing the size of the encoded string (2 bytes) and the actual data.
The current code correctly checks whether size+data actually fit in memory, but it only allocates the memory for the data, not the 2 size bytes.