Specifically, fix checks on the data so then we use the correct sanitised length. From Peter Harris (pharris AT opentext DOT com), an xcb developer, via David Coppa (dcoppa AT gmail DOT com); thanks! requested by deraadt@