commit | 99fe1dc80f192ed5c01c90ac086e14694d4250fb | [log] [tgz] |
---|---|---|
author | Frank Benkstein <frank@benkstein.net> | Mon Oct 08 23:37:35 2018 +0200 |
committer | Wouter van Oortmerssen <aardappel@gmail.com> | Mon Oct 08 14:37:35 2018 -0700 |
tree | d933299d74535491f1d8405e1ac029ce684d0335 | |
parent | a4f9d1bfcc6f159a921776abf54f4a09ce802be1 [diff] |
don't crash when calling EnumNameXXX on sparse enum (#4982) Make an out-of-bounds check for enum values before using them to index the names array. For consistency with non-sparse enums an empty string is returned. Fixes #4821
FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.
Go to our landing page to browse our documentation.
and more in progress...
flatbuffers
tag for any questions regarding FlatBuffers.To contribute to this project, see CONTRIBUTING.
Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.