couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Masahiro Yamada (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-727) Overlong UTF-8 detection is not correct at couch_js/utf8.js.
Date Tue, 06 Apr 2010 03:02:27 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853709#action_12853709
] 

Masahiro Yamada commented on COUCHDB-727:
-----------------------------------------

Sorry, https://bugzilla.mozilla.org/show_bug.cgi?id=514760 is related but not same.
Same bug is https://bugzilla.mozilla.org/show_bug.cgi?id=511859

> Overlong UTF-8 detection is not correct at couch_js/utf8.js.
> ------------------------------------------------------------
>
>                 Key: COUCHDB-727
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-727
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: Masahiro Yamada
>            Priority: Minor
>
> I found simllar bug of  https://bugzilla.mozilla.org/show_bug.cgi?id=514760 at couchdb.
> https://svn.apache.org/repos/asf/couchdb/trunk/src/couchdb/priv/couch_js/utf8.c
> >
> >static uint32
> >dec_char(const uint8 *utf8Buffer, int utf8Length)
> >{
> >    uint32 ucs4Char;
> >    uint32 minucs4Char;
> >
> >    /* from Unicode 3.1, non-shortest form is illegal */
> >    static const uint32 minucs4Table[] = {
> >        0x00000080, 0x00000800, 0x0001000, 0x0020000, 0x0400000
> >    };
> minucs4Table should be declared as follwiing.(three zeros are missing)
> >    static const uint32 minucs4Table[] = {
> >        0x00000080, 0x00000800, 0x0001000, 0x0020000, 0x0400000
> >    };

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message