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:41:20 +0000 (11:41 -0700)
commit3604fabbf965139e0064d7beca4dae4dd73f3497
tree087c876e0b93518ca5ea68e467f3a5f60c77079a
parent0af883d0e8d8801a1e98eac960dfb5cfc6ee5e1c
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