Description
Currently, a negative value for offset is handled as expected, throwing an exception.
In case of offset being more than provided byte array size(for example, Integer.MAX_VALUE or Integer.MIN_VALUE) and also in case of (offset +length) being more than array size, there will be a crash.
It's possible to guard against such cases using information about java byte array size.
In case of offset being more than provided byte array size(for example, Integer.MAX_VALUE or Integer.MIN_VALUE) and also in case of (offset +length) being more than array size, there will be a crash.
It's possible to guard against such cases using information about java byte array size.