Repository navigation
v0.0.5
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 thereadUint16sfunction to handle cases wheresizeBytesis zero by returning an empty slice early. Replaced the use ofunsafe.Slicefor creating abytebuffer with a saferio.ReadFulloperation, improving code safety and maintainability.