Project

General

Profile

Actions

Bug #4067

closed

[PATCH] Fix SystemStackError when trying to format a large block of text in REXML

Added by jeremyevans0 (Jeremy Evans) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-openbsd4.8]
Backport:
[ruby-core:33245]

Description

=begin
REXML::Formatters::Pretty#wrap used a recursive method call to format text. This patch switches it to use an iterative approach. It includes a test case exposing the error.

This issue isn't theoretical, it happens when using rcov with Sequel's test suite.

Tested on 1.9.2p0, but patch is against trunk.
=end


Files

rexml_fix.diff (1.83 KB) rexml_fix.diff Patch for REXML::Formatters::Pretty#wrap jeremyevans0 (Jeremy Evans), 11/18/2010 07:46 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0