json: Fix parsing of strings that end with a backslash.
authorBen Pfaff <blp@nicira.com>
Wed, 25 Jun 2014 18:39:25 +0000 (11:39 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 25 Jun 2014 18:40:53 +0000 (11:40 -0700)
commitbc253fd7c6164132bb69e7ac33625eee715a1b59
tree17ab030cb8b9df09d24ae2b1cabe237d196f4b88
parentf3b4cf5e2235af53b9e1cc4ecce00e265e115ddf
json: Fix parsing of strings that end with a backslash.

json_string_unescape() flagged a backslash at the end of a string as an
error, but of course "\\" is a valid string.  This fixes the problem.

VMware-BZ: #1275208
Reported-by: Michael Hu <mhu@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
lib/json.c
tests/json.at