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:16 +0000 (11:40 -0700)
commit8f163fe09de4afa9f38bba25a57156ffbf14d12c
treec00b4f2880f2ec9a217f9d302aaaa0284a12d992
parentc49ce6d11b59461b5b424e01443847f8e0803741
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