msgpack-java icon indicating copy to clipboard operation
msgpack-java copied to clipboard

asShort testing for byte range instead of short range

Open surielb opened this issue 2 years ago • 0 comments

https://github.com/msgpack/msgpack-java/blob/60f5aa62ea3e22b1c7964b0221c26e601d956537/msgpack-core/src/main/java/org/msgpack/value/Variable.java#L560

The asShort method validates against the byte range, and not against the short range

surielb avatar Jul 13 '23 06:07 surielb