From f7f5327d28d67931c460290aab49eda4df92c2b4 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 26 Dec 2014 12:41:54 +0100 Subject: [PATCH] Try to reduce the risk of StackOverflow/OOM in junitereport Submitted by: Ryan Bennitt Bugzilla: https://issues.apache.org/bugzilla/show_bug.cgi?id=57341 --- CONTRIBUTORS | 1 + WHATSNEW | 5 +++++ contributors.xml | 4 ++++ src/etc/junit-frames.xsl | 19 ++++++++++++++++++- src/etc/junit-noframes.xsl | 19 ++++++++++++++++++- 5 files changed, 46 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index d83a68389..ea7c3e000 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -330,6 +330,7 @@ Roger Vaughn Roman Ivashin Ronen Mashal Russell Gold +Ryan Bennitt Sam Ruby Sandra Metz Scott Carlson diff --git a/WHATSNEW b/WHATSNEW index e6a0b1b34..ea3f75a0f 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -55,6 +55,11 @@ Fixed bugs: * complete-ant-cmd.pl now also knows about the -file option. Bugzilla Report 57371 + * the br-replace template inside the XSLT stylesheets used by + could cause stack overflows or out-of-memory errors + when applied to big outputs. + Bugzilla Report 57341 + Other changes: -------------- diff --git a/contributors.xml b/contributors.xml index 3ce31a53e..ae1e6fc48 100644 --- a/contributors.xml +++ b/contributors.xml @@ -1333,6 +1333,10 @@ Russell Gold + + Ryan + Bennitt + Sam Ruby diff --git a/src/etc/junit-frames.xsl b/src/etc/junit-frames.xsl index 25fcf1fb3..afea6e015 100644 --- a/src/etc/junit-frames.xsl +++ b/src/etc/junit-frames.xsl @@ -929,7 +929,24 @@ h6 { --> + 32 + + + + + + + + + + + +
+ + + +

@@ -938,7 +955,7 @@ h6 {
- +
diff --git a/src/etc/junit-noframes.xsl b/src/etc/junit-noframes.xsl index ab9e143e0..bd7002a96 100644 --- a/src/etc/junit-noframes.xsl +++ b/src/etc/junit-noframes.xsl @@ -469,7 +469,24 @@ --> + 32 + + + + + + + + + + + +
+ + + +

@@ -478,7 +495,7 @@
- +