flatbuffers/tests
carrerasdarren-cell 5761d6e67a
[Swift] Verify size-prefixed roots from reader position (#9196)
* [Swift] Verify size-prefixed roots from reader position

Validate the size prefix before advancing ByteBuffer.reader, then use the active reader position consistently for root, file identifier, and returned-object verification. Cover malformed decoy roots, oversized prefixes, short identifiers, and valid prefixed identifiers.

* Use wrapping arithmetic in Swift verifier

---------

Co-authored-by: Darren Carreras <283775510+carrerasdarren-cell@users.noreply.github.com>
2026-08-11 21:49:44 +02:00
..
64bit
annotated_binary
arrays_test fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
bazel_repository_test_dir
cpp17 Fix missing namespace qualifier in Pack() (#8967) 2026-03-11 22:11:06 -04:00
DictionaryLookup
docker
evolution_test
FlatBuffers.Benchmarks
FlatBuffers.Test fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
flatc
fuzzer
include_test
include_test1 fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
include_test2 fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
key_field
keyword_test Updates Rust codegen to use proper indentation (#8952) 2026-03-05 14:04:55 +00:00
KeywordTest
minified_enums
monster_test fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
monster_test_serialize fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
monster_test_suffix Fix missing namespace qualifier in Pack() (#8967) 2026-03-11 22:11:06 -04:00
more_defaults Updates Rust codegen to use proper indentation (#8952) 2026-03-05 14:04:55 +00:00
MyGame fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
name_clash_test
namespace_test Fix missing namespace qualifier in Pack() (#8967) 2026-03-11 22:11:06 -04:00
nested_namespace_test
nim
optional_scalars Updates Rust codegen to use proper indentation (#8952) 2026-03-05 14:04:55 +00:00
order
private_annotation_test fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
prototest
rust_namer_test fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
rust_no_std_compilation_test
rust_reflection_test
rust_serialize_test
rust_usage_test Add fallible try_* API for rust FlatBufferBuilder (#8918) 2026-04-02 06:49:51 +00:00
swift [Swift] Verify size-prefixed roots from reader position (#9196) 2026-08-11 21:49:44 +02:00
ts [TS] Fixup TS test run at CI (#9004) 2026-03-30 13:32:24 +01:00
type_field_collsion
union_name_test Fix inconsistent Python union creator function naming (#8981) 2026-03-19 12:36:37 +00:00
union_value_collsion
union_vector
vector_table_naked_ptr
.gitignore
Abc.nim
alignment_test.cpp
alignment_test.fbs
alignment_test.h
alignment_test.json
alignment_test_after_fix.afb
alignment_test_after_fix.bin
alignment_test_before_fix.afb
alignment_test_before_fix.bin
arrays_test.bfbs fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
arrays_test.fbs fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
arrays_test.golden
arrays_test.schema.json fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
BUILD.bazel Fix missing namespace qualifier in Pack() (#8967) 2026-03-11 22:11:06 -04:00
cross_namespace_pack_test.fbs Fix missing namespace qualifier in Pack() (#8967) 2026-03-11 22:11:06 -04:00
DartTest.sh
default_vectors_strings_test.cpp
default_vectors_strings_test.fbs
default_vectors_strings_test.h
dictionary_lookup.fbs
even_more_defaults.fbs
evolution_test.cpp
evolution_test.h
flexbuffers_test.cpp [flexbuffers] Add "AlignedBlob", a version of "Blob" with explicit alignment. (#8993) 2026-03-23 10:28:03 -07:00
flexbuffers_test.h
fuzz_test.cpp
fuzz_test.h
go_test.go
gold_flexbuffer_example.bin
GoTest.sh
include_build_test.cc
include_test1_generated.dart
include_test1_generated.rs fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
include_test2_generated.rs fix(flatbuffers): use manual impl Default for struct object types (#8947) 2026-03-06 11:20:32 -08:00
include_test2_my_game.other_name_space_generated.dart
included_test.fbs
includer_test.fbs
is_quiet_nan.h
javatest.bin
json_test.cpp
json_test.h
key_field_test.cpp
key_field_test.h
keyword_test.fbs
KotlinTest.kt
KotlinTest.sh
LobsterTest.bat
lobstertest.lobster
long_namespace.fbs
longer_namespace.fbs
LuaTest.bat
luatest.lua
LuaTest.sh
monster_extra.fbs
monster_extra_generated.h
monster_extra_my_game_generated.dart
monster_test.afb
monster_test.bfbs
monster_test.cpp
monster_test.fbs
monster_test.grpc.fb.cc
monster_test.grpc.fb.h
monster_test.h
monster_test.schema.json
monster_test_bfbs_generated.h
monster_test_callback.grpc.fb.cc
monster_test_callback.grpc.fb.h
monster_test_generated.grpc.fb.cc
monster_test_generated.grpc.fb.h
monster_test_generated.h Fix missing namespace qualifier in Pack() (#8967) 2026-03-11 22:11:06 -04:00
monster_test_generated.lobster
monster_test_generated.py
monster_test_generated.ts
monster_test_my_game.example2_generated.dart
monster_test_my_game.example_generated.dart
monster_test_my_game_generated.dart
monsterdata_extra.json
monsterdata_go_wire.mon.sp
monsterdata_python_wire.mon
monsterdata_test.afb
monsterdata_test.golden
monsterdata_test.json
monsterdata_test.mon
more_defaults.fbs
MoreDefaults.nim
MutatingBool.fbs
nan_inf_test.fbs
native_inline_table_test.fbs
native_inline_table_test_generated.h
native_type_test.fbs
native_type_test_generated.h Fix missing namespace qualifier in Pack() (#8967) 2026-03-11 22:11:06 -04:00
native_type_test_impl.cpp
native_type_test_impl.h
nested_union_test.fbs
non_zero_enum.fbs
optional_scalars.fbs
optional_scalars.json
optional_scalars_defaults.json
optional_scalars_generated.h
optional_scalars_generated.lobster
optional_scalars_generated.ts
optional_scalars_test.cpp
optional_scalars_test.h
parser_test.cpp
parser_test.h
phpTest.php
phpUnionVectorTest.php
phpUnionVectorTest.sh
Pizza.go
private_annotation_test.fbs
Property.nim
proto_test.cpp
proto_test.h
py_flexbuffers_test.py
py_test.py Fix inconsistent Python union creator function naming (#8981) 2026-03-19 12:36:37 +00:00
PythonTest.sh Fix inconsistent Python union creator function naming (#8981) 2026-03-19 12:36:37 +00:00
reflection_test.cpp fix: correct operator precedence in ForAllFields reverse iteration (#8991) 2026-04-02 10:14:27 +00:00
reflection_test.h fix: correct operator precedence in ForAllFields reverse iteration (#8991) 2026-04-02 10:14:27 +00:00
required_strings.fbs
rust_namer_test.fbs
RustTest.bat
RustTest.sh
service_test.fbs
service_test_generated.py
service_test_generated.pyi
service_test_grpc.fb.py
service_test_grpc.fb.pyi
TableA.lua
TableA.nim
TableAT.java
test.cpp fix: correct operator precedence in ForAllFields reverse iteration (#8991) 2026-04-02 10:14:27 +00:00
test.fbs
test_assert.cpp
test_assert.h
test_builder.cpp
test_builder.h
TestAll.sh
TestMutatingBool.nim
type_field_collsion.fbs
unicode_test.json
unicode_test.mon
union_name_test.fbs Fix inconsistent Python union creator function naming (#8981) 2026-03-19 12:36:37 +00:00
union_underlying_type_test.fbs
union_underlying_type_test_generated.h
union_value_collision.fbs
util_test.cpp
util_test.h
vector_has_test.fbs
vector_table_naked_ptr.fbs
vector_table_naked_ptr_test.cpp
vector_table_naked_ptr_test.h