google / flatbuffers

FlatBuffers: Memory Efficient Serialization Library

Home Page:https://flatbuffers.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnPackTo does not reset stale strings at destination [C++, compiler/platform agnostic, FlatBuffers v23.5.26.0]

kuroneko opened this issue · comments

[edited - misreported] When using the object (-T) API, UnPackTo does not reset strings that have been elided due to being empty, resulting in the stale string values being left behind. This probably also affects absent/elided subobjects.

This behaviour is not documented and means that UnPackTo can only safely be used on default initialised destination objects.

This issue is stale because it has been open 6 months with no activity. Please comment or label not-stale, or this will be closed in 14 days.