1. 01 Apr, 2016 4 commits
  2. 29 Mar, 2016 2 commits
  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. 26 Mar, 2016 1 commit
    • Matthew Maurer's avatar
      Fix uninitialized members of ListBuilder · 47b92d31
      Matthew Maurer authored
      Adding a `KJ_DASSERT` in the `setListPointer` logic flagged
      non-word-multiple data sections in `INLINE_COMPOSITE` lists, which
      should be impossible. This traced back to uninitialized member variables
      in `ListBuilder` in the case that it was created from a null pointer.
      47b92d31
  5. 25 Mar, 2016 4 commits
  6. 21 Mar, 2016 1 commit
  7. 20 Mar, 2016 1 commit
    • Matthew Maurer's avatar
      Add Canonicalization · 5db2c8f8
      Matthew Maurer authored
      The user facing API is in MessageReader and MessageBuilder
      
      {MessageBuilder,MessageReader}::isCanonical verifies the canonicity of a
      message. This is both useful for debugging and for knowing if a received
      message can be used for hashes, bytewise equality, etc.
      
      MessageBuilder::canonicalRoot(Reader) can be used to write a canonical
      message on a best effort basis, and checks itself using isCanonical.
      It should succeed as long as the MessageBuilder in question:
      * Has a first segment which is long enough to contain the message
      * Has not been used before
      
      Tests have been added in canonicalize-test.c++ which verify that for
      crafted examples of canonicalization errors, isCanonical will reject,
      and for a canonicalized version of the standard test message, it will
      accept.
      5db2c8f8
  8. 04 Mar, 2016 3 commits
  9. 16 Feb, 2016 1 commit
  10. 01 Feb, 2016 1 commit
  11. 13 Jan, 2016 2 commits
    • Kenton Varda's avatar
      ceb38966
    • Kenton Varda's avatar
      Fix message corruption bug introduced in 2c9c5c83. · 4d4f831a
      Kenton Varda authored
      As of that change, adopting an empty struct into a pointer that already had some other value fails to overwrite the upper 32 bits of the pointer, thus resulting in a struct pointer with totally bogus bounds. Normally this will either cause a bounds check exception to be thrown when that pointer is later accessed, or lead to a struct containing bogus data (but if teh struct was expected to be empty, probably that data is never accessed).
      4d4f831a
  12. 07 Jan, 2016 5 commits
  13. 26 Dec, 2015 1 commit
  14. 24 Dec, 2015 1 commit
  15. 16 Dec, 2015 2 commits
  16. 13 Dec, 2015 5 commits
  17. 24 Nov, 2015 1 commit
  18. 20 Nov, 2015 1 commit
  19. 18 Nov, 2015 1 commit
  20. 16 Nov, 2015 2 commits