specifying an empty attribute name in a document may have led to segmentation faults when the document was unpacked later.