1. 22 May, 2018 - 1 commit
  2. 18 May, 2018 - 2 commits
  3. 07 May, 2018 - 4 commits
  4. 22 Mar, 2018 - 3 commits
  5. 20 Mar, 2018 - 1 commit
  6. 11 Mar, 2018 - 11 commits
  7. 07 Mar, 2018 - 1 commit
    • Corey Farrell's avatar
      More test coverage. · 749bef0b
      Corey Farrell authored
      * Add test_load_callback to CMakeList.txt
      * Add json_dump, json_load and json_unpack chaos testing.
      749bef0b
  8. 06 Mar, 2018 - 2 commits
    • Corey Farrell's avatar
      Add warn_unused_result to strbuffer_init. · e37e5254
      Corey Farrell authored
      This adds a compiler warning when strbuffer_init return value is
      ignored.  unpack_object is updated to deal with errors produced
      while building unrecognized_keys.
      e37e5254
    • Corey Farrell's avatar
      Build: Add JANSSON_ATTRS macro. · ea664722
      Corey Farrell authored
      This macro is used to conditionally generate GCC/CLANG __attribute__
      declarations if supported.
      
      This allows the compiler to produce warnings on certain incorrect
      usages.  json_sprintf and json_vsprintf will produce warnings on invalid
      format string.  Many functions will produce a warning if the result is
      unused.  Specifically functions which allocate new objects will warn if
      the result is ignored as this always results in a memory leak.
      ea664722
  9. 20 Feb, 2018 - 3 commits
  10. 15 Feb, 2018 - 1 commit
    • Corey Farrell's avatar
      Improve test coverage. · 73c22de5
      Corey Farrell authored
      * Test equality of different length strings.
      * Add tab to json_pack whitespace test.
      * Test json_sprintf with empty result and invalid UTF.
      * Test json_get_alloc_funcs with NULL arguments.
      * Test invalid arguments.
      * Add test_chaos to test allocation failure code paths.
      * Remove redundant json_is_string checks from json_string_equal and
        json_string_copy.  Both functions are static and can only be called
        with a json string.
      
      Fixes to issues found by test_chaos:
      * Fix crash on OOM in pack_unpack.c:read_string().
      * Unconditionally free string in string_create upon allocation failure.
        Update load.c:parse_value() to reflect this.  This resolves a leak on
        allocation failure for pack_unpack.c:pack_string() and
        value.c:json_sprintf().
      
      Although not visible from CodeCoverage these changes significantly
      increase branch coverage.  Especially in src/value.c where we previously
      covered 67.4% of branches and now cover 96.3% of branches.
      73c22de5
  11. 11 Feb, 2018 - 1 commit
  12. 09 Feb, 2018 - 8 commits
  13. 08 Feb, 2018 - 2 commits