cognitect-labs / aws-api

AWS, data driven
Apache License 2.0
731 stars 100 forks source link

aws-api assumes ByteBuffer’s backing array represents complete content #238

Closed dchelimsky closed 1 year ago

dchelimsky commented 1 year ago

Problem

Problem: aws-api assumes ByteBuffer’s backing array represents complete content, but there are no such guarantees.

Solution

Check ByteBuffer current position (.remaining) and return content between current position and limit.

dchelimsky commented 1 year ago

Fixed in e9e431778059e5aa185626d434edf32fc4e9dbbb, released in 0.8.664