On Sat Mar 03 12:50:19 2007, jand@ActiveState.com wrote:
Show quoted text> On Sat, 03 Mar 2007, via RT wrote:
> > I guess this bug was resolved a long time ago. If you still have this
> > problem, then please re-open this bug by replying to this message.
>
> Nope, the error has never been fixed. For example this block:
>
> case SVt_PV:
> total_size += sizeof(XPV);
> total_size += SvLEN(thing);
> break;
>
> really should read like this:
>
> case SVt_PV:
> total_size += sizeof(XPV);
> total_size += SvROK(thing) ? 0 : SvLEN(thing);
> break;
>
> The same change would apply to all other references to SvLEN.
Ok, I will apply such a change to the next release. However, since I
have really no understanding of the Perl core or related things could you:
* maybe send in a patch for this?
* send in a testcase?
* check before I release it?
all the best,
tels