1. 12 Oct, 2017 1 commit
    • Edward Catmur's avatar
      Avoid passing null to memcpy/memcmp/memset · dbc088d1
      Edward Catmur authored
      It is invalid to pass null as a pointer argument to memcpy/memcmp/memset, even if the count argument is zero:
      
      > Where an argument declared as size_t n specifies the length of the array for a
      function, n can have the value zero on a call to that function. Unless explicitly stated
      otherwise in the description of a particular function in this subclause, pointer arguments
      on such a call shall still have valid values [...]
      
      Detected by -fsanitize=nonnull-attribute.
      dbc088d1
  2. 03 Sep, 2017 1 commit
  3. 27 Mar, 2016 1 commit
    • Kenton Varda's avatar
      Allow --packed and --flat to be used together. · 4361912b
      Kenton Varda authored
      In Sandstorm, we are encoding powerbox queries in packed base64 strings which may be placed in URL query parameters or the like. The strings are provided in interfaces called browser-side. We anticipate that some developers will prefer to specify a hardcoded string rather than generate it on-the-fly, since Cap'n Proto is not well-supported in browsers today, and anyway the developer may have no other reason to have a Cap'n Proto dependency at all, and powerbox queries are often static.
      
      In this context, speed is irrelevant, while having a compact encoding is desirable. It felt sad to me to leave in the segment table in this context, adding redundant bytes when we want a compact encoding.
      4361912b
  4. 30 Dec, 2014 1 commit
  5. 29 Nov, 2014 1 commit
  6. 24 Nov, 2014 1 commit
    • Kenton Varda's avatar
      MSVC: All lite-mode tests pass. · ebce4aa6
      Kenton Varda authored
      The project file still only compiles a test binary, but it should be easy to separate out a library project from here.
      
      Thanks again to Bryan Boreham <bjboreham@gmail.com> for much help getting this working.
      ebce4aa6
  7. 20 Jun, 2014 1 commit
    • Kenton Varda's avatar
      Change license to MIT. · 889204fe
      Kenton Varda authored
      For portions currently copyright by Kenton (most of it), transfer copyright to Sandstorm Development Group, Inc. (Kenton's company).
      
      The license change is practically meaningless, as MIT and BSD 2-clause are legally equivalent. However, the BSD 2-clause license is sometimes confused for its ugly siblings, BSD 3-clause and BSD 4-clause. The MIT license is more immediately recognizeable for what it is.
      
      Rémy Blank and Jason Choy (the two non-trivial contributors) are on record as approving this change:
      
      https://groups.google.com/d/msg/capnproto/xXDd2HUOCcc/gbe_COIuXKYJ
      889204fe
  8. 12 Nov, 2013 1 commit
  9. 03 Aug, 2013 1 commit
  10. 24 Jun, 2013 1 commit
  11. 06 Jun, 2013 4 commits
  12. 05 Jun, 2013 1 commit
  13. 04 Jun, 2013 1 commit
  14. 03 Jun, 2013 2 commits
  15. 29 May, 2013 2 commits
  16. 23 May, 2013 1 commit
  17. 15 May, 2013 1 commit
  18. 15 Apr, 2013 1 commit
  19. 04 Apr, 2013 1 commit
    • Kenton Varda's avatar
      Update implemented pointer format to match docs: Don't store field count in… · 95be334d
      Kenton Varda authored
      Update implemented pointer format to match docs:  Don't store field count in struct pointers because it isn't needed.  Instead extend data and pointer section sizes to 16 bits, which should be enough for anyone.  Also, store offsets from the end of the pointer rather than the beginning, because this makes it possible for them to be zero, which compresses better.  In particular, the root reference will always have a zero offset, so this will shave a byte off of very small packed messages.
      95be334d
  20. 28 Mar, 2013 1 commit