Could we add a guard check before we touch data array with start and end indexes? We should throw an error if data doesn't contain requested range. It causes fatal error if data array doesn't contain range.startIndex..<(range.endIndex)
let container = _CBORDecoder.SingleValueContainer(data: self.data[range.startIndex..<(range.endIndex)], codingPath: self.codingPath, userInfo: self.userInfo)
Could we add a guard check before we touch data array with start and end indexes? We should throw an error if
data
doesn't contain requested range. It causes fatal error if data array doesn't containrange.startIndex..<(range.endIndex)