Skip to content

Commit

Permalink
MB-6961 Fix validation of numbers as JSON
Browse files Browse the repository at this point in the history
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
apage43 authored and steveyen committed Oct 25, 2012
1 parent 0c0cf46 commit f7fa4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/JSON_checker.c
Expand Up @@ -454,7 +454,7 @@ checkUTF8JSON(const unsigned char* data, size_t size) {
//Feed fake space to the validator to force it to finish validating //Feed fake space to the validator to force it to finish validating
//numerical values, iff it hasn't marked the current stream as valid //numerical values, iff it hasn't marked the current stream as valid
if(jc->state != OK) { if(jc->state != OK) {
badjson = JSON_checker_char(jc, 32); badjson = !JSON_checker_char(jc, 32);
} }
if(!badjson) { if(!badjson) {
badjson = !JSON_checker_done(jc); badjson = !JSON_checker_done(jc);
Expand Down

0 comments on commit f7fa4f2

Please sign in to comment.