List Info

Thread: Fix a few segfaults and a when() bug




Fix a few segfaults and a when() bug
user name
2007-10-14 23:37:08
The attached patch fixes some bugs I reported earlier today with perlbug and another I didn't get around to. Bug #1: eof() vivifies $ARGV but assumed the scalar existed. It segfaulted when it didn't yet. Bug #2: rx->paren_names doesn't always exist. Iterating over the %+ hash segfaults. Bug #3: Smartmatch context is applied to when() when it should be boolean context. This applied to conditionals with more than two expressions: A and B and C. -- Josh
  Approximate file size 4323 bytes
Re: Fix a few segfaults and a when() bug
user name
2007-10-15 06:02:13
On 10/15/07, josh <twistsgmail.com> wrote:
> The attached patch fixes some bugs I reported earlier
today with
> perlbug and another I didn't get around to.
...
> Bug #2:
> rx->paren_names doesn't always exist. Iterating over
the %+ hash
> segfaults.

Looks like this possibility was overlooked when the code
was
refactored in patch 31341.

Good catch.

Cheers,
Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Re: Fix a few segfaults and a when() bug
user name
2007-10-17 03:17:42
On 15/10/2007, josh <twistsgmail.com> wrote:
> The attached patch fixes some bugs I reported earlier
today with
> perlbug and another I didn't get around to.

Thanks, applied as #32120.

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )