Skip to content

Commit

Permalink
Fixed a serious crashing bug. Fixed a memory leak. Fixed an off by on…
Browse files Browse the repository at this point in the history
…e error. Updated the README.md file. Added CHANGELOG.md
  • Loading branch information
johnezang committed Jan 9, 2011
1 parent c9ffd8f commit 8339b27
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 172 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,20 @@
# JSONKit Changelog

## Version 1.2 2011/01/08

### Bug Fixes

* 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.
* Under some conditions, JSONKit could potentially leak memory.
* 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.

### Other Changes

* 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.
* Various other minor changes such as tightening up numeric literals with `UL` or `L` qualification, assertion check tweaks and additions, etc.
* The README.md file was updated with additional information.

### Version 1.1

No change log information was kept for versions prior to 1.2.

5 changes: 4 additions & 1 deletion JSONKit.h
Expand Up @@ -5,7 +5,7 @@
//

/*
Copyright (c) 2010, John Engelhart
Copyright (c) 2011, John Engelhart
All rights reserved.
Expand Down Expand Up @@ -78,6 +78,9 @@ typedef unsigned int NSUInteger;
#ifndef _JSONKIT_H_
#define _JSONKIT_H_

#define JSONKIT_VERSION_MAJOR 1
#define JSONKIT_VERSION_MINOR 2

typedef NSUInteger JKHash;
typedef NSUInteger JKFlags;
typedef NSUInteger JKTokenType;
Expand Down

0 comments on commit 8339b27

Please sign in to comment.