Skip to content

v0.0.5

Choose a tag to compare

@kelindar kelindar released this 19 Jul 20:59
· 4 commits to main since this release
38993eb

This release includes a change to the readUint16s function in codec.go to improve safety and handle edge cases more effectively. The most important changes include ensuring the function handles cases where the input size is zero and replacing unsafe operations with safer alternatives.

Improvements to safety and edge case handling:

  • codec.go: Updated the readUint16s function to handle cases where sizeBytes is zero by returning an empty slice early. Replaced the use of unsafe.Slice for creating a byte buffer with a safer io.ReadFull operation, improving code safety and maintainability.