You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
skyfoxa
changed the title
UnkeyedDecodingContainer - corrupted data causes crashe
UnkeyedDecodingContainer - corrupted data causes crash
Oct 11, 2021
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)
The text was updated successfully, but these errors were encountered: