Open3DMotionGroup / Open3DMotion

Other
5 stars 2 forks source link

BSONOutputStreamGZ::WriteBinary should support zero-length writes #32

Closed drjrm closed 5 years ago

drjrm commented 5 years ago

Other BSONOutputStream classes allow writes where the size parameter is zero and therefore do nothing, whereas BSONOutputStreamGZ does not, and so can break applications where such behaviour is expected.

BSONOutputStreamGZ should be updated to do nothing at all when size == 0.

drjrm commented 5 years ago

Fixed in 0500af7828597c8957ed290f82ecd9d98359ca36.