Re: 1 byte overflow in wordwrap
| From: | Wez Furlong | Date: | Sun, 17 Mar 2002 19:23:18 +0000 |
| Subject: | Re: 1 byte overflow in wordwrap | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-81396@lists.php.net to get a copy of this message | ||
On 18/03/02, "Jim Winstead" <jimw@apache.org> wrote:
> Wez Furlong <wez@thebrainroom.com> wrote:
> > I'll see if I can force it to happen in isolation.
> are you passing a fourth parameter to wordwrap?
Yes; it's always 0.
> the easiest way to track it down would be to insert some debugging
> statements in the wordwrap() function to print out the text being
> wrapped, the newtextlen that gets calculated, and then value of
> newtextlen at the end of the function.
It's quite a rare occurrence; I've only seen it twice in two days,
and I'd estimate that wordwrap gets called around 250-300 times
per day.
I'll see if I get time to reproduce it tonight; I've some things
to do with the streams first.
> (this code is all new since 4.1.x, so this particular bug likely does
> not exist in those versions. the old implementation has an entirely
> different set of bugs. :)
Ah. :-)
--Wez.