1. 02 10月, 2016 13 次提交
  2. 29 5月, 2016 2 次提交
  3. 20 3月, 2016 4 次提交
  4. 06 3月, 2016 1 次提交
  5. 26 10月, 2015 2 次提交
    • M
      Fix printing of empty string pointers · 8222e9b8
      Max Bruckner 提交于
      Once the check if str is NULL is reached, str has already been
      derereferenced in the for loop, so in the case that the if clause would
      be entered, the program has already crashed due to a null pointer
      dereference.
      
      By checking the content of str before dereferencing, the code in the if
      clause is actually useful.
      
      for (ptr=str;*ptr;ptr++) flag|=((*ptr>0 && *ptr<32)||(*ptr=='\"')||(*ptr=='\\'))?1:0;
      
      ...
      
      if (!str)
      ...
      8222e9b8
    • M
      Fix format problem with empty objects · 9cc37a28
      Max Bruckner 提交于
      When printing empty objects, the closing curly brace was missing one
      indentation level.
      
      Example from the output of test_utils:
      
      BEFORE FIX:
      {
      	"foo":	"bar",
      	"child":	{
      		"grandchild":	{
      	}
      	}
      }
      
      AFTER FIX:
      {
      	"foo":	"bar",
      	"child":	{
      		"grandchild":	{
      		}
      	}
      }
      9cc37a28
  6. 16 10月, 2015 1 次提交
  7. 02 10月, 2015 1 次提交
  8. 01 10月, 2015 1 次提交
    • L
      Handle invalid numbers · e4b96fa8
      Linus Wallgren 提交于
      Previously cJSON generated invalid JSON when a number was infinite or
      similar. This patch changes the behaviour to match javascript, that is
      to render such a number as null.
      e4b96fa8
  9. 15 9月, 2015 1 次提交
  10. 15 6月, 2015 1 次提交
  11. 14 2月, 2015 1 次提交
  12. 11 2月, 2015 2 次提交
  13. 10 2月, 2015 5 次提交
  14. 30 1月, 2015 1 次提交
  15. 19 8月, 2013 1 次提交
  16. 14 8月, 2013 2 次提交
  17. 09 2月, 2013 1 次提交