mitre / hipcheck

Automatically assess and score software repositories for supply chain risk.
https://mitre.github.io/hipcheck/
Apache License 2.0
80 stars 6 forks source link

feat: improve chunking method in sdk #630

Closed j-lanson closed 1 week ago

j-lanson commented 1 week ago

Replace use of drain() with custom drain_at_most_n_bytes() to ensure we don't try to drain from the middle of a multi-char character and cause a panic. Added some test cases.