Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 57624 invoked from network); 31 Aug 2010 04:33:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Aug 2010 04:33:20 -0000 Received: (qmail 36455 invoked by uid 500); 31 Aug 2010 04:33:20 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 35995 invoked by uid 500); 31 Aug 2010 04:33:19 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 35325 invoked by uid 99); 31 Aug 2010 04:33:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Aug 2010 04:33:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Aug 2010 04:33:15 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7V4Wrg6017448 for ; Tue, 31 Aug 2010 04:32:53 GMT Message-ID: <491462.86141283229173872.JavaMail.jira@thor> Date: Tue, 31 Aug 2010 00:32:53 -0400 (EDT) From: "Adam Kocoloski (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Closed: (COUCHDB-875) mochijson2 does not validate input strings after encountering an escape character In-Reply-To: <9384259.86111283228573072.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-875?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Kocoloski closed COUCHDB-875. ---------------------------------- Resolution: Fixed Fixed and tested in mochijson2. Will submit the patch upstream. > mochijson2 does not validate input strings after encountering an escape c= haracter > -------------------------------------------------------------------------= -------- > > Key: COUCHDB-875 > URL: https://issues.apache.org/jira/browse/COUCHDB-875 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.11.2, 1.0.1 > Reporter: Adam Kocoloski > Assignee: Adam Kocoloski > Fix For: 0.11.3, 1.0.2 > > > This example throws invalid_json (as it should, <<169>> is not a valid UT= F-8 byte sequence) > 1> couch_util:json_decode(<<$", "abc", 169, $">>). = =20 > ** exception throw: {invalid_json,<<"\"abc=C2=A9\"">>} > in function couch_util:json_decode/1 > but this example does not > 2> couch_util:json_decode(<<$", "abc\\n", 169, $">>). > <<"abc\n=C2=A9">> --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.