1. 22 Apr, 2016 1 commit
  2. 20 Apr, 2016 1 commit
  3. 18 Apr, 2016 1 commit
  4. 14 Apr, 2016 2 commits
  5. 13 Apr, 2016 3 commits
    • Wouter van Oortmerssen's avatar
      Merge pull request #3844 from Nnamdi/CreateUninitializedVector_fix · 8d8b7c19
      Wouter van Oortmerssen authored
      Stop CreateUninitializedVector returning a pointer to invalid memory.
      8d8b7c19
    • Nnamdi's avatar
      Stop CreateUninitializedVector returning a pointer to invalid memory. · 039ab48b
      Nnamdi authored
      CreateUninitializedVector was performing the following actions:
          1. call StartVector.
          2. call make_space, and set buf to point to the reserved space.
          3. call EndVector.
      
      The problem is that a call to EndVector can ultimately call make_space, which
      if the buffer is full, will cause a reallocation, invalidating the value stored
      in buf.  So setting buf needs to be delayed until after EndVector.
      
      The following code, when run under valgrind shows a write to free'd memory before
      the change, but no such error after:
      
      int main()
      {
          flatbuffers::FlatBufferBuilder fbb(128);
          char *buf = nullptr;
          fbb.CreateUninitializedVector(128, &buf);
          *buf = 0;
      }
      039ab48b
    • Wouter van Oortmerssen's avatar
      Fixed struct -> class pre-declaration error. · 4a04bac2
      Wouter van Oortmerssen authored
      Change-Id: I3730a6823d603982c4250d514e827e3f93d1f81e
      Tested: on Linux.
      4a04bac2
  6. 12 Apr, 2016 1 commit
  7. 11 Apr, 2016 3 commits
  8. 08 Apr, 2016 4 commits
  9. 07 Apr, 2016 1 commit
  10. 05 Apr, 2016 2 commits
  11. 04 Apr, 2016 8 commits
  12. 03 Apr, 2016 1 commit
  13. 02 Apr, 2016 1 commit
  14. 30 Mar, 2016 2 commits
  15. 29 Mar, 2016 2 commits
    • Nnamdi's avatar
      Added --gen-name-strings command line option. · 35f6bb50
      Nnamdi authored
      To support the use case described in issue google/flatbuffers#3826, a new command line option --gen-name-strings
      has been added, which will cause a static GetFullyQualifiedName function to be added
      to the C++ output for tables/structs.
      35f6bb50
    • Armen Baghumian's avatar
      Implement __vector_as_bytes and methods to get [ubyte] efficiently · 28a3c939
      Armen Baghumian authored
      Currently in order to get a value type of [ubyte] in PHP, iteration is
      necessary which is not efficient. Helper __vector_as_bytes has been
      implemented in order to return the byte arrays in PHP efficiently.
      
      Appropriate methods also been added to use aforementioned method to return
      the byte array. (e.g. get*Bytes()).
      
      The reason the methods are named get*Bytes() and not for instance
      get*ByteArray() is the fact that PHP doesn't support byte arrays and the
      binary safe string implementation in PHP is used to simulate byte arrays
      and since there is chance for PHP users to confuse this with PHP arrays
      the name get*Bytes() has been chosen.
      
      In the future __vector_as_bytebuffer() method can also be implemented to
      return PHP implementation of ByteBuffer.
      28a3c939
  16. 28 Mar, 2016 1 commit
  17. 26 Mar, 2016 1 commit
  18. 25 Mar, 2016 1 commit
  19. 23 Mar, 2016 1 commit
  20. 20 Mar, 2016 1 commit
  21. 14 Mar, 2016 1 commit
  22. 09 Mar, 2016 1 commit