mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-04 17:01:11 +00:00
(fix): #8408 fixes a bug where the capacity of the buffer isnt verified before trying to verify the ID (#8413)
This commit is contained in:
@@ -19,6 +19,8 @@ import Foundation
|
||||
/// Collection of thrown from the Flatbuffer verifier
|
||||
public enum FlatbuffersErrors: Error, Equatable {
|
||||
|
||||
/// Thrown when trying to verify a buffer that doesnt have the length of an ID
|
||||
case bufferDoesntContainID
|
||||
/// Thrown when verifying a file id that doesnt match buffer id
|
||||
case bufferIdDidntMatchPassedId
|
||||
/// Prefixed size doesnt match the current (readable) buffer size
|
||||
|
||||
Reference in New Issue
Block a user