jaideeppyne opened a new pull request, #190:
URL: https://github.com/apache/datasketches-go/pull/190

   ## Summary
   
   - validate the complete byte range before decoding fixed-width long, double, 
and float items
   - return `offset out of bounds` instead of panicking on truncated data or 
invalid offsets
   - avoid item-count multiplication overflow before allocation
   - add regression coverage for truncation, invalid offsets, and oversized 
counts across all three numeric SerDes
   
   Closes #189.
   
   ## Why
   
   These SerDes are used by KLL, frequencies, reservoir sampling, and varopt 
deserializers. Their APIs return errors, but malformed numeric payloads 
currently trigger slice-bounds panics. This makes numeric behavior consistent 
with `ItemSketchStringSerDe`, which already rejects invalid ranges.
   
   ## Validation
   
   - `go test ./...`
   - `go vet ./...`
   - `git diff --check`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to