Bug 2695: String length overflows on append, leading to segfaults
Long-term patch for 3.0. This softens the error, but does not
resolve the issue completely for ESI.
Short-term patch for 3.1. The limit is arbitrary and may be fixed
at some point by a better patch. This one will work however.
} else {
// Create a temporary string and absorb it later.
String snew;
+ assert(len_ + len < 65536); // otherwise snew.len_ overflows below
snew.len_ = len_ + len;
snew.allocBuffer(snew.len_ + 1);