Permalink
Browse files

MB-6961 Fix validation of numbers as JSON

Change-Id: Ibe14f516283ccdfd26795a0b9e9659d3b5cf8932
Reviewed-on: http://review.couchbase.org/21901
Reviewed-by: Chris Anderson <jchris@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Reviewed-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
1 parent 0c0cf46 commit f7fa4f21aaaf8d25d490c0291a320331c16431fc @apage43 apage43 committed with steveyen Oct 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/JSON_checker.c
View
@@ -454,7 +454,7 @@ checkUTF8JSON(const unsigned char* data, size_t size) {
//Feed fake space to the validator to force it to finish validating
//numerical values, iff it hasn't marked the current stream as valid
if(jc->state != OK) {
- badjson = JSON_checker_char(jc, 32);
+ badjson = !JSON_checker_char(jc, 32);
}
if(!badjson) {
badjson = !JSON_checker_done(jc);

0 comments on commit f7fa4f2

Please sign in to comment.