struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suzuki Yoshifumi (JIRA)" <>
Subject [jira] [Created] (WW-4383) An infinite loop occurs in
Date Tue, 05 Aug 2014 05:40:12 GMT
Suzuki Yoshifumi created WW-4383:

             Summary: An infinite loop occurs in 
                 Key: WW-4383
             Project: Struts 2
          Issue Type: Bug
          Components: Core Actions
    Affects Versions:
            Reporter: Suzuki Yoshifumi
            Priority: Minor

An infinite loop occurs in 
The conditions which an infinite loop generates are as follows. 
・The character code of input data is UTF-8. 
・The length of input data is longer than 16 KB. 
・There is a character of a surrogate pair after 16 KB of input data. 

・Example of input data:
The input data to reproduce repeats 3 bytes of character 5462 times, 
and the character of a surrogate pair appears behind that.

Is clean of the out buffer necessary for decodeAndWritw method after the output in an out

    private static CoderResult decodeAndWrite(Writer writer, ByteBuffer in, CharBuffer out,
CharsetDecoder decoder, boolean endOfInput) throws IOException {
        CoderResult result = decoder.decode(in, out, endOfInput);
        // To begin of decoded data
        // Output
        return result;

This message was sent by Atlassian JIRA

View raw message