[CDRIVER-1977] Invalid lengths for old binary format (type 0x02) are ignored Created: 04/Jan/17  Updated: 03/May/17  Resolved: 04/Jan/17

Status: Closed
Project: C Driver
Component/s: libbson
Affects Version/s: 1.5.1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-1876 libbson doesn't validate length insid... Closed
Epic Link: libbson corpus

 Description   

The following [binary type decode error testshttps://github.com/mongodb/specifications/blob/master/source/bson-corpus/tests/binary.json] fail to emit an error:

  • subtype 0x02 length too long
  • subtype 0x02 length too short
  • subtype 0x02 length negative one

Generated at Wed Feb 07 21:13:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.