struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject git commit: WW-4383 Clears output to avoid infinitive loops
Date Tue, 16 Sep 2014 06:43:38 GMT
Repository: struts
Updated Branches:
  refs/heads/develop 3826c3098 -> f49b084fb


WW-4383 Clears output to avoid infinitive loops


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/f49b084f
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/f49b084f
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/f49b084f

Branch: refs/heads/develop
Commit: f49b084fbe6b97313ad5f56f448e2fab70371692
Parents: 3826c30
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Tue Sep 16 08:42:11 2014 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Tue Sep 16 08:42:11 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/struts2/util/FastByteArrayOutputStream.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/f49b084f/core/src/main/java/org/apache/struts2/util/FastByteArrayOutputStream.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/struts2/util/FastByteArrayOutputStream.java b/core/src/main/java/org/apache/struts2/util/FastByteArrayOutputStream.java
index b116040..eb07fb1 100644
--- a/core/src/main/java/org/apache/struts2/util/FastByteArrayOutputStream.java
+++ b/core/src/main/java/org/apache/struts2/util/FastByteArrayOutputStream.java
@@ -191,6 +191,8 @@ public class FastByteArrayOutputStream extends OutputStream {
         out.flip();
         // Output
         writer.write(out.toString());
+        // clear output to avoid infinitive loops, see WW-4383
+        out.clear();
         return result;
     }
 


Mime
View raw message