Fix a segfault in Data.Binary.Get. "runGet getWord8 empty" segfaulted due to the absence of a length check in getPtr. This patch also forces the evaluation of a possible exceptional value in getBytes.
Fix a segfault in Data.Binary.Get.
"runGet getWord8 empty" segfaulted due to the absence of a length check in
getPtr. This patch also forces the evaluation of a possible exceptional
value in getBytes.

ezyang/binary,x456/binary,beni55/binary,flowbox-public/binary,bergmark/binary,beni55/binary,flowbox-public/binary,fpco/binary,basvandijk/binary