[MONGOCRYPT-57] Test different UTF-8 inputs Created: 15/Apr/19  Updated: 30/Mar/22

Status: Backlog
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: testing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

For functions that expect string input, double check that we gracefully handle multi-byte UTF-8 inputs.



 Comments   
Comment by Kevin Albertson [ 30/May/19 ]

There's an example of an invalid utf8 character in test-mongocrypt.c.

 

   /* Malformed UTF8 */
   /* An orphaned UTF-8 continuation byte (10xxxxxx) is malformed UTF-8. */
   tmp = (char) 0x80;

Generated at Thu Feb 08 09:07:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.