ber.go
func invalidLength(offset, length, sliceLength int) bool {
	return offset+length < offset || offset+length > sliceLength
}
func invalidLength(offset, length, sliceLength int) bool {
	return offset+length < offset || offset+length > sliceLength
}
// invalidLength returns true iff offset + length > sliceLength, or if the
// addition would overflow.