Skip to content

Commit 8339b27

Browse files
committed
Fixed a serious crashing bug. Fixed a memory leak. Fixed an off by one error. Updated the README.md file. Added CHANGELOG.md
1 parent c9ffd8f commit 8339b27

4 files changed

Lines changed: 241 additions & 172 deletions

File tree

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# JSONKit Changelog
2+
3+
## Version 1.2 2011/01/08
4+
5+
### Bug Fixes
6+
7+
* When JSONKit attempted to parse and decode JSON that contained `{"key": value}` dictionaries that contained the same key more than once would likely result in a crash. This was a serious bug.
8+
* Under some conditions, JSONKit could potentially leak memory.
9+
* There was an off by one error in the code that checked whether or not the parser was at the end of the UTF8 buffer. This could result in JSONKit reading one by past the buffer bounds in some cases.
10+
11+
### Other Changes
12+
13+
* Some of the methods were missing `NULL` pointer checks for some of their arguments. This was fixed. In generally, when JSONKit encounters invalid arguments, it throws a `NSInvalidArgumentException` exception.
14+
* Various other minor changes such as tightening up numeric literals with `UL` or `L` qualification, assertion check tweaks and additions, etc.
15+
* The README.md file was updated with additional information.
16+
17+
### Version 1.1
18+
19+
No change log information was kept for versions prior to 1.2.
20+

JSONKit.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66

77
/*
8-
Copyright (c) 2010, John Engelhart
8+
Copyright (c) 2011, John Engelhart
99
1010
All rights reserved.
1111
@@ -78,6 +78,9 @@ typedef unsigned int NSUInteger;
7878
#ifndef _JSONKIT_H_
7979
#define _JSONKIT_H_
8080

81+
#define JSONKIT_VERSION_MAJOR 1
82+
#define JSONKIT_VERSION_MINOR 2
83+
8184
typedef NSUInteger JKHash;
8285
typedef NSUInteger JKFlags;
8386
typedef NSUInteger JKTokenType;

0 commit comments

Comments
 (0)